projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Key Management support for EdDSA keys
[openssl.git]
/
include
/
crypto
/
ecx.h
diff --git
a/include/crypto/ecx.h
b/include/crypto/ecx.h
index e179db1b535cd7a47038ddc4bd56d8d819f9fd01..6753e14cb2edb6331c334a03452c6c802b2a3699 100644
(file)
--- a/
include/crypto/ecx.h
+++ b/
include/crypto/ecx.h
@@
-19,23
+19,28
@@
# include <openssl/crypto.h>
# include "internal/refcount.h"
# 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 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;
struct ecx_key_st {
unsigned int haspubkey:1;