forked from wolfSSL/wolfssl
Rename to MAX_KEY_TO_DER_SZ, set to 130. Remove Curve448 changes.
This commit is contained in:
@ -347,7 +347,7 @@ int test_wc_Curve448PrivateKeyToDer(void)
|
||||
EXPECT_DECLS;
|
||||
#if defined(HAVE_CURVE448) && defined(HAVE_CURVE448_KEY_EXPORT) && \
|
||||
(defined(WOLFSSL_CERT_GEN) || defined(WOLFSSL_KEY_GEN))
|
||||
byte output[CURVE448_BUFSIZE];
|
||||
byte output[ONEK_BUF];
|
||||
curve448_key curve448PrivKey;
|
||||
WC_RNG rng;
|
||||
word32 inLen;
|
||||
|
@ -35544,7 +35544,7 @@ static wc_test_ret_t curve255519_der_test(void)
|
||||
0xA2, 0x5B, 0x38, 0xFD, 0x96, 0xDB, 0x2A, 0x26
|
||||
};
|
||||
curve25519_key key;
|
||||
byte output[CURVE25519_BUFSIZE];
|
||||
byte output[CURVE25519_MAX_KEY_TO_DER_SZ];
|
||||
word32 outputSz = (word32)sizeof(output);
|
||||
word32 idx;
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
#define CURVE25519_PUB_KEY_SIZE 32
|
||||
|
||||
enum {
|
||||
CURVE25519_BUFSIZE = 128, /* for exported DER keys temp buffer */
|
||||
CURVE25519_MAX_KEY_TO_DER_SZ = 82, /* for exported DER keys temp buffer */
|
||||
|
||||
WOLF_ENUM_DUMMY_LAST_ELEMENT(CURVE25519)
|
||||
};
|
||||
|
@ -43,12 +43,6 @@
|
||||
#define CURVE448_KEY_SIZE 56
|
||||
#define CURVE448_PUB_KEY_SIZE 56
|
||||
|
||||
enum {
|
||||
CURVE448_BUFSIZE = 256, /* for DER exported keys temp buffer */
|
||||
|
||||
WOLF_ENUM_DUMMY_LAST_ELEMENT(CURVE448)
|
||||
};
|
||||
|
||||
#ifndef WC_CURVE448KEY_TYPE_DEFINED
|
||||
typedef struct curve448_key curve448_key;
|
||||
#define WC_CURVE448KEY_TYPE_DEFINED
|
||||
|
Reference in New Issue
Block a user