diff options
author | Matt Caswell <matt@openssl.org> | 2020-02-17 16:37:24 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-03-09 07:59:05 +0000 |
commit | af6d8dd30ff48046f5af7d84095f30356c33264a (patch) | |
tree | 43451d25c812819adbb683ea50aa997d646799b4 /include | |
parent | db4b3d8392fc1c3a1033045efdda222fd76c26b2 (diff) |
Add Key Management support for EdDSA keys
Support added for Ed25519 and Ed448
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11261)
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/ecx.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/include/crypto/ecx.h b/include/crypto/ecx.h index e179db1b53..6753e14cb2 100644 --- a/include/crypto/ecx.h +++ b/include/crypto/ecx.h @@ -19,23 +19,28 @@ # include <openssl/crypto.h> # include "internal/refcount.h" -# define X25519_KEYLEN 32 -# define X448_KEYLEN 56 -# define ED25519_KEYLEN 32 -# define ED448_KEYLEN 57 +# define X25519_KEYLEN 32 +# define X448_KEYLEN 56 +# define ED25519_KEYLEN 32 +# define ED448_KEYLEN 57 # define MAX_KEYLEN ED448_KEYLEN -# define X25519_BITS 253 -# define X25519_SECURITY_BITS 128 +# define X25519_BITS 253 +# define X25519_SECURITY_BITS 128 -# define ED25519_SIGSIZE 64 +# define X448_BITS 448 +# define X448_SECURITY_BITS 224 -# define X448_BITS 448 -# define ED448_BITS 456 -# define X448_SECURITY_BITS 224 +# define ED25519_BITS 256 +/* RFC8032 Section 8.5 */ +# define ED25519_SECURITY_BITS 128 +# define ED25519_SIGSIZE 64 -# define ED448_SIGSIZE 114 +# define ED448_BITS 456 +/* RFC8032 Section 8.5 */ +# define ED448_SECURITY_BITS 224 +# define ED448_SIGSIZE 114 struct ecx_key_st { unsigned int haspubkey:1; |