From: Dr. Stephen Henson Date: Sun, 12 Jun 2011 14:11:57 +0000 (+0000) Subject: CMAC FIPS prototypes. X-Git-Tag: OpenSSL-fips-2_0-rc1~327 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e6e7b4e82593d4bca7b0970b0ab7dabcf8fe8009;p=oweals%2Fopenssl.git CMAC FIPS prototypes. --- 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 */