Skip to content

Commit aa72b5e

Browse files
committed
Infrastructure for returning additional fields in crypto:supports/0, /1
fips_forbidden_* impl for digests fips_forbidden_* impl for public keys fips_forbidden_* impl for ciphers fips_forbidden_* impl for MACs fips_forbidden_* impl for KEM fips_forbidden_* impl for curves Use stdint/stdbool types already available FIPS doc page updated
1 parent 7feb978 commit aa72b5e

File tree

18 files changed

+964
-451
lines changed

18 files changed

+964
-451
lines changed

lib/crypto/c_src/aead.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ ERL_NIF_TERM aead_cipher_init_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM a
111111
{ret = EXCP_BADARG_N(env, 0, "Bad cipher"); goto done;}
112112
if (! (ctx_res->cipherp->flags & AEAD_CIPHER) )
113113
{ret = EXCP_BADARG_N(env, 0, "Not aead cipher"); goto done;}
114-
if (CIPHER_FORBIDDEN_IN_FIPS(ctx_res->cipherp))
114+
if (IS_CIPHER_FORBIDDEN_IN_FIPS(ctx_res->cipherp))
115115
{ret = EXCP_NOTSUP_N(env, 0, "Forbidden in FIPS"); goto done;}
116116

117117
#if defined(HAVE_GCM_EVP_DECRYPT_BUG)
@@ -210,7 +210,7 @@ ERL_NIF_TERM aead_cipher_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]
210210
{ret = EXCP_BADARG_N(env, 0, "Bad cipher"); goto done;}
211211
if (! (cipherp->flags & AEAD_CIPHER) )
212212
{ret = EXCP_BADARG_N(env, 0, "Not aead cipher"); goto done;}
213-
if (CIPHER_FORBIDDEN_IN_FIPS(cipherp))
213+
if (IS_CIPHER_FORBIDDEN_IN_FIPS(cipherp))
214214
{ret = EXCP_NOTSUP_N(env, 0, "Forbidden in FIPS"); goto done;}
215215

216216
#if defined(HAVE_GCM_EVP_DECRYPT_BUG)

0 commit comments

Comments
 (0)