error of rsa_sign_hash with RSA keys of 3072bit and higher #495

Closed
opened 2019-09-05 09:00:09 -05:00 by hekiko · 0 comments
hekiko commented 2019-09-05 09:00:09 -05:00 (Migrated from github.com)

Prerequisites

Description

[Description of the issue]

  1. make RSA Keys used rsa_make_key(). key size is 3072bit.
    2.rsa_sign_hash() is errored. but if key size is 2048 bit and less,OK.
    and rsa_verify_hash() is not errored.
    and rsa_encrypt by private key(3072bit) is errored.
    but used public key(3072bit) OK.

pls,teach me how to resolve it.

Steps to Reproduce

Version

You can get this information from the define SCRYPT in src/include/tomcrypt.h or your local git repository by running git describe --always --tags --dirty.
Also, please include the compiler, the compiler version, the architecture and (if applicable) the MPI provider, the OS and what version of the OS you're experiencing the issue.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

<!-- Do you want to ask a question? Are you looking for support? The Mailing list is the best place for getting support: https://groups.google.com/forum/#!forum/libtom This is a very generic template, remove items that do not apply. For completed items, change [ ] to [x]. --> ### Prerequisites * [*] Checked the developer manual * [ ] Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=repo%3Alibtom%2Flibtomcrypt * [ ] Checked that your issue isn't related to TomsFastMath's limitation that PK operations can by default only be done with max. 2048bit keys ### Description [Description of the issue] 1. make RSA Keys used rsa_make_key(). key size is 3072bit. 2.rsa_sign_hash() is errored. but if key size is 2048 bit and less,OK. and rsa_verify_hash() is not errored. and rsa_encrypt by private key(3072bit) is errored. but used public key(3072bit) OK. pls,teach me how to resolve it. ### Steps to Reproduce <!-- Please either describe your issue or even better, provide a functional code example reproducing your issue. --> ### Version You can get this information from the define `SCRYPT` in `src/include/tomcrypt.h` or your local git repository by running `git describe --always --tags --dirty`. Also, please include the compiler, the compiler version, the architecture and (if applicable) the MPI provider, the OS and what version of the OS you're experiencing the issue. ### Additional Information Any additional information, configuration or data that might be necessary to reproduce the issue.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libtom/libtomcrypt#495
No description provided.