[gnutls-devel] GnuTLS | xts: check key block according to FIPS-140-2 IG A.9 (!1233)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Apr 14 13:27:13 CEST 2020
Dmitry Baryshkov started a new discussion on lib/nettle/cipher.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1233#note_323440649
> length, dst, src);
> }
>
> +static void
> +_xts_aes128_set_encrypt_key(struct xts_aes128_key *xts_key,
> + const uint8_t *key)
> +{
> + if (safe_memcmp(key, key + AES128_KEY_SIZE, AES128_KEY_SIZE) == 0)
> + _gnutls_switch_lib_state(LIB_STATE_ERROR);
> + else
> + xts_aes128_set_encrypt_key(xts_key, key);
This will result in an error even in non-FIPS-enabled case. Is this expected?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1233#note_323440649
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200414/e30b27fd/attachment-0001.html>
More information about the Gnutls-devel
mailing list