diff options
author | Richard Levitte <levitte@openssl.org> | 2021-02-23 22:41:04 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-02-27 16:14:09 +0100 |
commit | c8182743a7764ba8c9e61665722cae06fa8edb62 (patch) | |
tree | f11882aa74aa71be4593a59e7e15724ba85cd32f /providers/encoders.inc | |
parent | 8ab9c4ddc41830a9bd1be36a8e37ee2abc57e886 (diff) | |
download | openssl-new-c8182743a7764ba8c9e61665722cae06fa8edb62.tar.gz |
PROV: Implement an EC key -> blob encoder, to get the public key
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/14291)
Diffstat (limited to 'providers/encoders.inc')
-rw-r--r-- | providers/encoders.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/providers/encoders.inc b/providers/encoders.inc index e7d11c731b..71f4f13848 100644 --- a/providers/encoders.inc +++ b/providers/encoders.inc @@ -104,12 +104,15 @@ ENCODER_w_structure("DSA", dsa, yes, der, type_specific), ENCODER_w_structure("DSA", dsa, yes, pem, type_specific), #endif #ifndef OPENSSL_NO_EC -/* EC only supports keypair and parameters output. */ +/* EC only supports keypair and parameters DER and PEM output. */ ENCODER_w_structure("EC", ec, yes, der, type_specific_no_pub), ENCODER_w_structure("EC", ec, yes, pem, type_specific_no_pub), +/* EC supports blob output for the public key */ +ENCODER("EC", ec, yes, blob), # ifndef OPENSSL_NO_SM2 ENCODER_w_structure("SM2", sm2, yes, der, type_specific_no_pub), ENCODER_w_structure("SM2", sm2, yes, pem, type_specific_no_pub), +ENCODER("SM2", sm2, yes, blob), # endif #endif |