From e6e7b4e82593d4bca7b0970b0ab7dabcf8fe8009 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 12 Jun 2011 14:11:57 +0000 Subject: [PATCH] CMAC FIPS prototypes. --- fips/fips.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fips/fips.h b/fips/fips.h index 5659fec15e..86985c27ca 100644 --- a/fips/fips.h +++ b/fips/fips.h @@ -75,6 +75,7 @@ struct evp_cipher_ctx_st; struct ec_method_st; struct ecdsa_method; struct dh_method; +struct CMAC_CTX_st; int FIPS_module_mode_set(int onoff); int FIPS_module_mode(void); @@ -301,6 +302,13 @@ const struct dh_method *FIPS_dh_openssl(void); int FIPS_dh_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb); +int FIPS_cmac_init(struct CMAC_CTX_st *ctx, const void *key, size_t keylen, + const EVP_CIPHER *cipher, ENGINE *impl); +int FIPS_cmac_update(struct CMAC_CTX_st *ctx, const void *in, size_t dlen); +int FIPS_cmac_final(struct CMAC_CTX_st *ctx, unsigned char *out, + size_t *poutlen); +void FIPS_cmac_ctx_cleanup(struct CMAC_CTX_st *ctx); + #endif /* Where necessary redirect standard OpenSSL APIs to FIPS versions */ -- 2.40.0