summaryrefslogtreecommitdiff
path: root/src/g10lib.h
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2021-11-26 11:45:19 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2021-11-30 18:52:50 +0900
commit3d38968f4b751c5561679040c055c34a690bed75 (patch)
treedad7c5aebfccfcca873601c001cd8571a8fb60d3 /src/g10lib.h
parent40ab39966650489449bee3e2a68f43a9d38c4dd4 (diff)
downloadlibgcrypt-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/g10lib.h')
-rw-r--r--src/g10lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/g10lib.h b/src/g10lib.h
index 0f827074..d2e718a5 100644
--- a/src/g10lib.h
+++ b/src/g10lib.h
@@ -453,6 +453,8 @@ void _gcry_fips_signal_error (const char *srcfile,
_gcry_fips_signal_error (__FILE__, __LINE__, NULL, 1, (a))
#endif
+int _gcry_fips_indicator (va_list arg_ptr);
+
int _gcry_fips_is_operational (void);
/* Return true if the library is in the operational state. */