[原]替换OpenSSL Engine为硬件加密卡之替换EVP_CIPHER结构
摘要:
定义: static const EVP_CIPHER FMC_ENG_evp_cipher= { NID_aes_128_cbc, /*nid*/ 16, /*block_size*/ 16, /*key_len*/ 16, /*iv_len*/ EVP_CIPH_CBC_MODE, /*Various flags*/ FMC_ENG_evp_cipher_init, /*init*/ FMC_ENG_evp_cipher_do_cipher, /*do_cipher*/ FMC_ENG_evp_cipher_cleanup, /*cleanup*/ sizeof(AES_KEY) + 16 阅读全文
posted @ 2013-01-19 16:15 CrunchYou 阅读(5752) 评论(2) 推荐(1) 编辑