提交 e6e7b4e8 编写于 作者: D Dr. Stephen Henson

CMAC FIPS prototypes.

上级 f41154b2
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册