CMAC FIPS prototypes.
[openssl.git] / fips / fips.h
index 5659fec15e2d6d5378f5f52fcf26f825f18184eb..86985c27ca1f75ea0b0fc732b2d7231061225dfd 100644 (file)
@@ -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 */