diff options
author | Jakub Jelen <jjelen@redhat.com> | 2021-11-26 11:45:19 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-11-30 18:52:50 +0900 |
commit | 3d38968f4b751c5561679040c055c34a690bed75 (patch) | |
tree | dad7c5aebfccfcca873601c001cd8571a8fb60d3 /src/gcrypt.h.in | |
parent | 40ab39966650489449bee3e2a68f43a9d38c4dd4 (diff) | |
download | libgcrypt-3d38968f4b751c5561679040c055c34a690bed75.tar.gz |
Implement explicit FIPS indicators for cipher modes
* src/fips.c (_gcry_fips_indicator): New.
* src/g10lib.h (_gcry_fips_indicator): New declaration.
* src/gcrypt.h.in (gcry_ctl_cmds): New GCRYCTL_FIPS_SERVICE_INDICATOR
* src/global.c (_gcry_vcontrol): Handle GCRYCTL_FIPS_SERVICE_INDICATOR
* tests/basic.c (do_check_ocb_cipher): Check excplicit FIPS indicator
(check_ocb_cipher_largebuf_split): Ditto.
(check_ocb_cipher_checksum): Ditto.
(check_ocb_cipher_splitaad): Ditto.
(check_bulk_cipher_modes): Ditto.
--
Add GCRYCTL_FIPS_SERVICE_INDICATOR to handle explicit FIPS indicators
for cipher modes.
GnuPG-bug-id: 5512
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src/gcrypt.h.in')
-rw-r--r-- | src/gcrypt.h.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in index 403c8fe1..ec06b72a 100644 --- a/src/gcrypt.h.in +++ b/src/gcrypt.h.in @@ -326,7 +326,8 @@ enum gcry_ctl_cmds GCRYCTL_REINIT_SYSCALL_CLAMP = 77, GCRYCTL_AUTO_EXPAND_SECMEM = 78, GCRYCTL_SET_ALLOW_WEAK_KEY = 79, - GCRYCTL_SET_DECRYPTION_TAG = 80 + GCRYCTL_SET_DECRYPTION_TAG = 80, + GCRYCTL_FIPS_SERVICE_INDICATOR = 81 }; /* Perform various operations defined by CMD. */ |