crypto: ecrdsa - add EC-RDSA (GOST 34.10) algorithm
Add Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012, RFC 7091, ISO/IEC 14888-3) is one of the Russian (and since 2018 the CIS countries) cryptographic standard algorithms (called GOST algorithms). Only signature verification is supported, with intent to be used in the IMA. Summary of the changes: * crypto/Kconfig: - EC-RDSA is added into Public-key cryptography section. * crypto/Makefile: - ecrdsa objects are added. * crypto/asymmetric_keys/x509_cert_parser.c: - Recognize EC-RDSA and Streebog OIDs. * include/linux/oid_registry.h: - EC-RDSA OIDs are added to the enum. Also, a two currently not implemented curve OIDs are added for possible extension later (to not change numbering and grouping). * crypto/ecc.c: - Kenneth MacKay copyright date is updated to 2014, because vli_mmod_slow, ecc_point_add, ecc_point_mult_shamir are based on his code from micro-ecc. - Functions needed for ecrdsa are EXPORT_SYM...
Showing
- crypto/Kconfig 11 additions, 0 deletionscrypto/Kconfig
- crypto/Makefile 8 additions, 0 deletionscrypto/Makefile
- crypto/asymmetric_keys/x509_cert_parser.c 22 additions, 4 deletionscrypto/asymmetric_keys/x509_cert_parser.c
- crypto/ecc.c 384 additions, 8 deletionscrypto/ecc.c
- crypto/ecc.h 53 additions, 1 deletioncrypto/ecc.h
- crypto/ecrdsa.c 296 additions, 0 deletionscrypto/ecrdsa.c
- crypto/ecrdsa_defs.h 225 additions, 0 deletionscrypto/ecrdsa_defs.h
- crypto/ecrdsa_params.asn1 4 additions, 0 deletionscrypto/ecrdsa_params.asn1
- crypto/ecrdsa_pub_key.asn1 1 addition, 0 deletionscrypto/ecrdsa_pub_key.asn1
- include/linux/oid_registry.h 18 additions, 0 deletionsinclude/linux/oid_registry.h
Please register or sign in to comment