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

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

    <bug>
          <bug_id>43697</bug_id>
          
          <creation_ts>2022-09-05 15:27:18 +0300</creation_ts>
          <short_desc>Ошибка при использовании rsa_sign в mbedtls-utils</short_desc>
          <delta_ts>2022-09-05 15:27:18 +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>mbedtls-utils</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Alexandr Shashkin">dutyrok</reporter>
          <assigned_to name="Денис Назаров">nenderus</assigned_to>
          <cc>admsasha</cc>
    
    <cc>nenderus</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>214493</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandr Shashkin">dutyrok</who>
    <bug_when>2022-09-05 15:27:18 +0300</bug_when>
    <thetext>Версия программы:
=================
mbedtls-utils-3.2.1-alt1

Шаги, приводящие к ошибке:
==========================
1) Сгенерировать ключевую пару rsa:
   $ /usr/lib/mbedtls/rsa_genkey
2) Создать файл hello:
   $ echo &quot;hello world&quot; &gt; hello
3) Подписать файл rsa ключом:
   $ /usr/lib/mbedtls/rsa_sign hello 

Результат:
==========
Файл не подписан. Вывод следующий:

  . Reading private key from rsa_priv.txt
  . Checking the private key
  . Generating the RSA/SHA-256 signature failed
  ! mbedtls_rsa_pkcs1_sign returned -0x4080


Ожидаемый результат:
====================
Файл подписан. Появился файл hello.sig. Вывод следующий:

  . Reading private key from rsa_priv.txt
  . Checking the private key
  . Generating the RSA/SHA-256 signature
  . Done (created &quot;hello.sig&quot;)


Дополнительно:
==============
В P10 на версии mbedtls-utils-3.0.0-alt1.1 ошибка также воспроизводится. А вот в P9 на версии mbedtls-utils-2.27.0-alt1.1 ошибка не воспроизводится
В Fedora ошибка не воспроизводится.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>