<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>51890</bug_id>
          
          <creation_ts>2024-10-30 14:49:17 +0300</creation_ts>
          <short_desc>Захардкожен устаревший шифр aes-cbc-essiv:sha256</short_desc>
          <delta_ts>2024-12-24 02:16:13 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>evms</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Андрей">i.not.student</reporter>
          <assigned_to name="Олег Соловьев">mcpain</assigned_to>
          <cc>egori</cc>
    
    <cc>mcpain</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>253658</commentid>
    <comment_count>0</comment_count>
    <who name="Андрей">i.not.student</who>
    <bug_when>2024-10-30 14:49:17 +0300</bug_when>
    <thetext>При установке ALT при создании зашифрованного раздела устанавливается устаревший шифр aes-cbc-essiv, из-за этого если конвертировать этот раздел в luks2 с 4k секторами, grub с ним не может работать. Этот шифр не используется по умолчанию в cryptsetup с версии 1.6.0, рекомендуется использовать aes-xts-plain64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254099</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-11-07 16:45:16 +0300</bug_when>
    <thetext>evms-2.5.5-alt83 -&gt; sisyphus:

 Wed Nov 06 2024 Oleg Solovyov &lt;mcpain@altlinux&gt; 2.5.5-alt83
 - custom error messages:
   + LVM: volume group name is in use
   + DOS: no acceptable objects given (Closes: #51897)
 - LUKS: change default cypher to cryptsetup default (Closes: #51890)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254433</commentid>
    <comment_count>2</comment_count>
    <who name="Андрей">i.not.student</who>
    <bug_when>2024-11-13 15:21:02 +0300</bug_when>
    <thetext>Был использовал в исправлении не тот шифр, нужно использовать шифр без hash sha256 в названии шифра (т.е. просто aes-xts-plain64), вот отрывок из man страницы cryptsetup:

If a hash is part of the cipher specification, then it is used as part of the IV generation. For example, ESSIV needs a hash function, while &quot;plain 64&quot; does not and hence none</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>256504</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-12-24 02:16:13 +0300</bug_when>
    <thetext>evms-2.5.5-alt85 -&gt; sisyphus:

 Mon Dec 16 2024 Oleg Solovyov &lt;mcpain@altlinux&gt; 2.5.5-alt85
 - LUKS: fix cypher spec (Closes: #51890)
 - GPT: full support for 4k-disks
 - GPT: round up correctly
 - Disk: fix debug message with missing string parameter
 - FAT: replace hardcoded sector size when looking for filesystem limits</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>