{
CRYPTO_AES_CBC, NID_aes_256_cbc, 16, 32,
},
-# ifdef CRYPTO_AES_CTR
{
CRYPTO_AES_CTR, NID_aes_128_ctr, 14, 16,
},
{
CRYPTO_AES_CTR, NID_aes_256_ctr, 14, 32,
},
-# endif
{
CRYPTO_BLF_CBC, NID_bf_cbc, 8, 16,
},
return aes_256_cbc_cipher;
}
-# ifdef CRYPTO_AES_CTR
static EVP_CIPHER *aes_ctr_cipher = NULL;
static const EVP_CIPHER *cryptodev_aes_ctr(void)
{
}
aes_ecb_cipher = cipher;
}
-# endif
return aes_ecb_cipher;
}
case NID_aes_256_cbc:
*cipher = cryptodev_aes_256_cbc();
break;
-# ifdef CRYPTO_AES_CTR
case NID_aes_128_ctr:
*cipher = cryptodev_aes_ctr();
break;
case NID_aes_256_ecb:
*cipher = cryptodev_aes_256_ecb();
break;
-# endif
default:
*cipher = NULL;
break;
aes_192_cbc_cipher = NULL;
EVP_CIPHER_meth_free(aes_256_cbc_cipher);
aes_256_cbc_cipher = NULL;
-# ifdef CRYPTO_AES_CTR
EVP_CIPHER_meth_free(aes_ctr_cipher);
aes_ctr_cipher = NULL;
EVP_CIPHER_meth_free(aes_192_ctr_cipher);
aes_192_ecb_cipher = NULL;
EVP_CIPHER_meth_free(aes_256_ecb_cipher);
aes_256_ecb_cipher = NULL;
-# endif
# ifdef USE_CRYPTODEV_DIGESTS
EVP_MD_meth_free(sha1_md);
sha1_md = NULL;