fix Ed448 length values for precomputed ASN.1 prefix blobs

(cherry picked from commit 5da97eeea6)
This commit is contained in:
Mark Andrews
2019-05-30 22:51:04 +10:00
parent 9ed43f8b47
commit 9618d822ab
+4 -4
View File
@@ -85,8 +85,8 @@ static isc_result_t pub_ed25519_from_ossl(EVP_PKEY *pkey,
}
static const unsigned char ed448_pub_prefix[] = {
0x30, 0x2a, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65,
0x71, 0x03, 0x21, 0x00
0x30, 0x43, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65,
0x71, 0x03, 0x3a, 0x00
};
static EVP_PKEY *pub_ed448_to_ossl(const unsigned char *key)
@@ -160,8 +160,8 @@ static isc_result_t priv_ed25519_from_ossl(EVP_PKEY *pkey,
}
static const unsigned char ed448_priv_prefix[] = {
0x30, 0x2e, 0x02, 0x01, 0x00, 0x30, 0x05, 0x06,
0x03, 0x2b, 0x65, 0x71, 0x04, 0x22, 0x04, 0x20
0x30, 0x47, 0x02, 0x01, 0x00, 0x30, 0x05, 0x06,
0x03, 0x2b, 0x65, 0x71, 0x04, 0x3b, 0x04, 0x39
};
static EVP_PKEY *priv_ed448_to_ossl(const unsigned char *key)