From: Doug E. <no...@gi...> - 2025-06-06 09:11:46
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 72125917695362de3306ebfeb06ce518b6fc42e6 https://github.com/OpenSC/OpenSC/commit/72125917695362de3306ebfeb06ce518b6fc42e6 Author: Doug Engert <dee...@gm...> Date: 2025-06-06 (Fri, 06 Jun 2025) Changed paths: M src/libopensc/pkcs15-pubkey.c M src/pkcs11/framework-pkcs15.c M src/tools/pkcs11-tool.c M src/tools/pkcs15-init.c Log Message: ----------- Fix Edwards and Montgomery "field_length" The Edwards and Montgomery "field_length" is changed from 255 to 256 and for Ed448, 448 is changed to 456 as it needs an extra byte. The field_length in bits, and is used to caculate number of bytes. The BYTES4BITS(255) returns 32 and happens to work but should be BTYES4BITS(256) so the 25519 curves have been working but not as expected. But BYTES4BITS(448) returns 56, but Ed448 needed an extra byte so will use BYTES4BITS(456) to return 57 as required in the RFCs. On branch ED448-X448-fix Changes to be committed: modified: src/libopensc/pkcs15-pubkey.c modified: src/pkcs11/framework-pkcs15.c modified: src/tools/pkcs11-tool.c modified: src/tools/pkcs15-init.c To unsubscribe from these emails, change your notification settings at https://github.com/OpenSC/OpenSC/settings/notifications |