Skip to content

Commit

Permalink
Disable some ciphers
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlautner committed Oct 30, 2023
1 parent 661dd13 commit db320cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CryptoPkg/Library/OpensslLib/OpensslStub/uefiprov.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static const OSSL_ALGORITHM deflt_digests[] = {
{ NULL, NULL, NULL }
};
// MU_CHANGE START
static const OSSL_ALGORITHM_CAPABLE deflt_ciphers[] = {
/*static const OSSL_ALGORITHM_CAPABLE deflt_ciphers[] = {
ALG(PROV_NAMES_NULL, ossl_null_functions),
ALG(PROV_NAMES_AES_256_ECB, ossl_aes256ecb_functions),
ALG(PROV_NAMES_AES_192_ECB, ossl_aes192ecb_functions),
Expand All @@ -147,7 +147,7 @@ static const OSSL_ALGORITHM_CAPABLE deflt_ciphers[] = {
{ { NULL, NULL, NULL }, NULL }
};
static OSSL_ALGORITHM exported_ciphers[OSSL_NELEM(deflt_ciphers)];
static OSSL_ALGORITHM exported_ciphers[OSSL_NELEM(deflt_ciphers)];*/
// MU_CHANGE END

static const OSSL_ALGORITHM deflt_macs[] = {
Expand Down Expand Up @@ -242,8 +242,8 @@ static const OSSL_ALGORITHM *deflt_query(void *provctx, int operation_id,
return deflt_digests;
case OSSL_OP_CIPHER:
// MU_CHANGE START
return exported_ciphers;
//return NULL;
//return exported_ciphers;
return NULL;
// MU_CHANGE END
case OSSL_OP_MAC:
return deflt_macs;
Expand Down Expand Up @@ -337,7 +337,7 @@ int ossl_uefi_provider_init(const OSSL_CORE_HANDLE *handle,

*out = deflt_dispatch_table;
// MU_CHANGE START
ossl_prov_cache_exported_algorithms(deflt_ciphers, exported_ciphers);
//ossl_prov_cache_exported_algorithms(deflt_ciphers, exported_ciphers);
// MU_CHANGE END

return 1;
Expand Down

0 comments on commit db320cb

Please sign in to comment.