From: Mark Andrews Date: Wed, 29 May 2019 03:22:02 +0000 (+1000) Subject: fix Ed448 length values for precomputed ASN.1 prefix blobs X-Git-Tag: v9.15.1~27^2~2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5da97eeea694a4495e3ec74474544e198f3f0c22;p=thirdparty%2Fbind9.git fix Ed448 length values for precomputed ASN.1 prefix blobs --- diff --git a/lib/dns/openssleddsa_link.c b/lib/dns/openssleddsa_link.c index ab8bd3b1b6c..0a48db5b60a 100644 --- a/lib/dns/openssleddsa_link.c +++ b/lib/dns/openssleddsa_link.c @@ -162,8 +162,8 @@ priv_ed25519_from_ossl(EVP_PKEY *pkey, unsigned char *key) { #endif 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) @@ -198,8 +198,8 @@ static isc_result_t pub_ed448_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)