Implement serializers for ED25519 and ED448
authorMatt Caswell <matt@openssl.org>
Tue, 17 Mar 2020 22:40:33 +0000 (08:40 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Tue, 17 Mar 2020 22:40:33 +0000 (08:40 +1000)
commit244bc29746c83e76e2fba542ca87552b8aef5c5f
tree5e2391571abf8ea2d69d8f8c14c49ff044f49b7f
parentb3e6d666e351d45e93d29fe3813245b92a0f5815
Implement serializers for ED25519 and ED448

This is largely based on the existing X25519 and X448 serializers - but
a few adjustments were necessary so that we can identify what type of key
we are using. Previously we used the keylen for this but X25519 and
ED25519 have the same keylen.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11272)
24 files changed:
crypto/ec/ecx_key.c
crypto/ec/ecx_meth.c
include/crypto/ecx.h
providers/defltprov.c
providers/implementations/include/prov/implementations.h
providers/implementations/keymgmt/ecx_kmgmt.c
providers/implementations/serializers/serializer_common.c
providers/implementations/serializers/serializer_ecx.c
providers/implementations/serializers/serializer_ecx_priv.c
providers/implementations/serializers/serializer_ecx_pub.c
providers/implementations/serializers/serializer_local.h
test/evp_pkey_provided_test.c
test/recipes/30-test_evp_pkey_provided/ED25519.priv.der [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED25519.priv.pem [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED25519.priv.txt [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED25519.pub.der [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED25519.pub.pem [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED25519.pub.txt [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED448.priv.der [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED448.priv.pem [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED448.priv.txt [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED448.pub.der [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED448.pub.pem [new file with mode: 0644]
test/recipes/30-test_evp_pkey_provided/ED448.pub.txt [new file with mode: 0644]