Added support code for RSA and EC key encoding (including reconstruction of all publi...
authorThomas Pornin <pornin@bolet.org>
Sun, 5 Aug 2018 22:02:36 +0000 (00:02 +0200)
committerThomas Pornin <pornin@bolet.org>
Sun, 5 Aug 2018 22:02:36 +0000 (00:02 +0200)
commitd8fa415fcabecb7d7c8461d8edbe2f265911e72c
tree0f9d0a7df6ba713ea13d385a36961f00f0262811
parentcfbc702d3d64c209784b664eeab8867b603f4d4c
Added support code for RSA and EC key encoding (including reconstruction of all public and private key elements from the private key structure), with raw and PKCS#8 formats, both in DER and PEM.
32 files changed:
inc/bearssl_ec.h
inc/bearssl_pem.h
inc/bearssl_rsa.h
inc/bearssl_x509.h
mk/Rules.mk
mk/mkrules.sh
src/codec/pemenc.c [new file with mode: 0644]
src/ec/ec_keygen.c [new file with mode: 0644]
src/ec/ec_pubkey.c [new file with mode: 0644]
src/inner.h
src/rsa/rsa_default_modulus.c [new file with mode: 0644]
src/rsa/rsa_default_privexp.c [new file with mode: 0644]
src/rsa/rsa_default_pubexp.c [new file with mode: 0644]
src/rsa/rsa_i15_keygen.c
src/rsa/rsa_i15_modulus.c [new file with mode: 0644]
src/rsa/rsa_i15_privexp.c [new file with mode: 0644]
src/rsa/rsa_i15_pubexp.c [new file with mode: 0644]
src/rsa/rsa_i31_keygen.c
src/rsa/rsa_i31_keygen_inner.c
src/rsa/rsa_i31_modulus.c [new file with mode: 0644]
src/rsa/rsa_i31_privexp.c [new file with mode: 0644]
src/rsa/rsa_i31_pubexp.c [new file with mode: 0644]
src/rsa/rsa_i62_keygen.c
src/x509/asn1enc.c [new file with mode: 0644]
src/x509/encode_ec_pk8der.c [new file with mode: 0644]
src/x509/encode_ec_rawder.c [new file with mode: 0644]
src/x509/encode_rsa_pk8der.c [new file with mode: 0644]
src/x509/encode_rsa_rawder.c [new file with mode: 0644]
test/test_crypto.c
tools/brssl.h
tools/names.c
tools/skey.c