openssl: DHX DER keys failing to load (OpenSSL 3.0.0-beta1)
In OpenSSL 3.0.0-beta1 the following code fails to load:
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <openssl/bio.h>
#include <openssl/dh.h>
#include <openssl/pem.h>
#include <openssl/provider.h>
int main() {
char der[] = {0x30, 0x82, 0x03, 0x44, 0x30, 0x82, 0x02, 0x36, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3e, 0x02, 0x01, 0x30, 0x82, 0x02, 0x29, 0x02, 0x82, 0x01, 0x01, 0x00, 0xad, 0x10, 0x7e, 0x1e, 0x91, 0x23, 0xa9, 0xd0, 0xd6, 0x60, 0xfa, 0xa7, 0x95, 0x59, 0xc5, 0x1f, 0xa2, 0x0d, 0x64, 0xe5, 0x68, 0x3b, 0x9f, 0xd1, 0xb5, 0x4b, 0x15, 0x97, 0xb6, 0x1d, 0x0a, 0x75, 0xe6, 0xfa, 0x14, 0x1d, 0xf9, 0x5a, 0x56, 0xdb, 0xaf, 0x9a, 0x3c, 0x40, 0x7b, 0xa1, 0xdf, 0x15, 0xeb, 0x3d, 0x68, 0x8a, 0x30, 0x9c, 0x18, 0x0e, 0x1d, 0xe6, 0xb8, 0x5a, 0x12, 0x74, 0xa0, 0xa6, 0x6d, 0x3f, 0x81, 0x52, 0xad, 0x6a, 0xc2, 0x12, 0x90, 0x37, 0xc9, 0xed, 0xef, 0xda, 0x4d, 0xf8, 0xd9, 0x1e, 0x8f, 0xef, 0x55, 0xb7, 0x39, 0x4b, 0x7a, 0xd5, 0xb7, 0xd0, 0xb6, 0xc1, 0x22, 0x07, 0xc9, 0xf9, 0x8d, 0x11, 0xed, 0x34, 0xdb, 0xf6, 0xc6, 0xba, 0x0b, 0x2c, 0x8b, 0xbc, 0x27, 0xbe, 0x6a, 0x00, 0xe0, 0xa0, 0xb9, 0xc4, 0x97, 0x08, 0xb3, 0xbf, 0x8a, 0x31, 0x70, 0x91, 0x88, 0x36, 0x81, 0x28, 0x61, 0x30, 0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x15, 0x8c, 0x1b, 0x70, 0x35, 0xe9, 0xfe, 0x39, 0x36, 0x6e, 0xce, 0xcb, 0x90, 0xd2, 0x89, 0x6b, 0x78, 0xc5, 0x23, 0xc4, 0xa5, 0x77, 0x28, 0x7e, 0xf5, 0xba, 0x7a, 0x26, 0x63, 0xed, 0x58, 0xaa, 0x20, 0xb5, 0xec, 0x66, 0xe3, 0x0f, 0x31, 0x66, 0x10, 0xdf, 0xaa, 0x38, 0x58, 0x3e, 0x49, 0x5a, 0xb6, 0xaf, 0x77, 0x1c, 0x28, 0x43, 0x87, 0xe6, 0x60, 0xed, 0xbe, 0xf4, 0xed, 0xb8, 0x72, 0xe2, 0xe8, 0x0e, 0x1d, 0x24, 0x4e, 0xe9, 0x56, 0x22, 0xe7, 0x6d, 0x02, 0x8e, 0x61, 0xc1, 0xe8, 0x87, 0xc2, 0xaa, 0x79, 0x27, 0x17, 0x36, 0x21, 0x39, 0xf4, 0xdd, 0x26, 0xea, 0xfd, 0x49, 0xb2, 0x36, 0x6e, 0xeb, 0x23, 0x50, 0xb0, 0x1f, 0xe1, 0xb5, 0x60, 0x22, 0xa2, 0x80, 0x9e, 0x37, 0x95, 0x59, 0xc3, 0x7b, 0x37, 0x5b, 0xa0, 0x1c, 0x4e, 0xaa, 0xcc, 0x14, 0xfd, 0x1b, 0x24, 0x78, 0x37};
BIO *bio = BIO_new_mem_buf(der, 840);
EVP_PKEY *pkey = d2i_PUBKEY_bio(bio, NULL);
if (pkey == NULL) {
printf("failed to load\n");
return 1;
}
return 0;
}
This exact same key loaded via the PEM path loads without issue. However, to thicken the plot if you load the default provider explicitly the error goes away. This code will not fail:
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <openssl/bio.h>
#include <openssl/dh.h>
#include <openssl/pem.h>
#include <openssl/provider.h>
int main() {
OSSL_PROVIDER_load(NULL, "default");
char der[] = {0x30, 0x82, 0x03, 0x44, 0x30, 0x82, 0x02, 0x36, 0x06, 0x07, 0x2a, 0x86, 0x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66, 0x10, 0xdf, 0xaa, 0x38, 0x58, 0x3e, 0x49, 0x5a, 0xb6, 0xaf, 0x77, 0x1c, 0x28, 0x43, 0x87, 0xe6, 0x60, 0xed, 0xbe, 0xf4, 0xed, 0xb8, 0x72, 0xe2, 0xe8, 0x0e, 0x1d, 0x24, 0x4e, 0xe9, 0x56, 0x22, 0xe7, 0x6d, 0x02, 0x8e, 0x61, 0xc1, 0xe8, 0x87, 0xc2, 0xaa, 0x79, 0x27, 0x17, 0x36, 0x21, 0x39, 0xf4, 0xdd, 0x26, 0xea, 0xfd, 0x49, 0xb2, 0x36, 0x6e, 0xeb, 0x23, 0x50, 0xb0, 0x1f, 0xe1, 0xb5, 0x60, 0x22, 0xa2, 0x80, 0x9e, 0x37, 0x95, 0x59, 0xc3, 0x7b, 0x37, 0x5b, 0xa0, 0x1c, 0x4e, 0xaa, 0xcc, 0x14, 0xfd, 0x1b, 0x24, 0x78, 0x37};
BIO *bio = BIO_new_mem_buf(der, 840);
EVP_PKEY *pkey = d2i_PUBKEY_bio(bio, NULL);
if (pkey == NULL) {
printf("failed to load\n");
return 1;
}
return 0;
}
Loading the FIPS provider similarly leaves DER failing (but the same key as a PEM, again, works):
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <openssl/bio.h>
#include <openssl/dh.h>
#include <openssl/pem.h>
#include <openssl/provider.h>
int main() {
OSSL_PROVIDER_load(NULL, "fips");
int res = EVP_default_properties_enable_fips(NULL, 1);
assert(res == 1);
char der[] = {0x30, 0x82, 0x03, 0x44, 0x30, 0x82, 0x02, 0x36, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3e, 0x02, 0x01, 0x30, 0x82, 0x02, 0x29, 0x02, 0x82, 0x01, 0x01, 0x00, 0xad, 0x10, 0x7e, 0x1e, 0x91, 0x23, 0xa9, 0xd0, 0xd6, 0x60, 0xfa, 0xa7, 0x95, 0x59, 0xc5, 0x1f, 0xa2, 0x0d, 0x64, 0xe5, 0x68, 0x3b, 0x9f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 0x8e, 0x61, 0xc1, 0xe8, 0x87, 0xc2, 0xaa, 0x79, 0x27, 0x17, 0x36, 0x21, 0x39, 0xf4, 0xdd, 0x26, 0xea, 0xfd, 0x49, 0xb2, 0x36, 0x6e, 0xeb, 0x23, 0x50, 0xb0, 0x1f, 0xe1, 0xb5, 0x60, 0x22, 0xa2, 0x80, 0x9e, 0x37, 0x95, 0x59, 0xc3, 0x7b, 0x37, 0x5b, 0xa0, 0x1c, 0x4e, 0xaa, 0xcc, 0x14, 0xfd, 0x1b, 0x24, 0x78, 0x37};
BIO *bio = BIO_new_mem_buf(der, 840);
EVP_PKEY *pkey = d2i_PUBKEY_bio(bio, NULL);
if (pkey == NULL) {
printf("failed to load\n");
return 1;
}
return 0;
}
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 23 (23 by maintainers)
I don’t think the base provider should always be loaded. The performance penalty for moving keys from the default to the base will hurt and fixing this is beyond the scope of the beta period.
The question to me is: why the default isn’t auto-loading?