alonbl / gnupg-pkcs11-scd

PKCS#11 GnuPG SCD
http://gnupg-pkcs11.sourceforge.net/
Other
68 stars 17 forks source link

Added session key padding #19

Closed mnkolev closed 5 years ago

mnkolev commented 5 years ago

We ran into an intermittent issue where the session key generated isn't always 2048b. Normally this isn't an issue but since we store our keys in the Luna CloudHSM, it expects an exact key size and thus rejects the request.

This minor code fix adds padding where needed for all key sizes.

alonbl commented 5 years ago

Thanks! However, I am confused, I guess I understand the format fix, but I do not understand the fix of conflict and then the redo. Please repush with two patches, the format and on top a simple fix of functionality.

alonbl commented 5 years ago

Oh... formatting change is not in master... please have a single perfect commit in pull request. Thanks!

mnkolev commented 5 years ago

Apologies on that, will send that over!

alonbl commented 5 years ago

Dup of #20