mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Add small test
This commit is contained in:
@@ -43343,6 +43343,8 @@ static int test_wolfSSL_EVP_Cipher_extra(void)
|
|||||||
AssertNotNull(evp = EVP_CIPHER_CTX_new());
|
AssertNotNull(evp = EVP_CIPHER_CTX_new());
|
||||||
AssertIntNE((ret = EVP_CipherInit(evp, type, NULL, iv, 0)), 0);
|
AssertIntNE((ret = EVP_CipherInit(evp, type, NULL, iv, 0)), 0);
|
||||||
|
|
||||||
|
AssertIntEQ(EVP_CIPHER_CTX_nid(evp), NID_aes_128_cbc);
|
||||||
|
|
||||||
klen = EVP_CIPHER_CTX_key_length(evp);
|
klen = EVP_CIPHER_CTX_key_length(evp);
|
||||||
if (klen > 0 && keylen != klen) {
|
if (klen > 0 && keylen != klen) {
|
||||||
AssertIntNE(EVP_CIPHER_CTX_set_key_length(evp, keylen), 0);
|
AssertIntNE(EVP_CIPHER_CTX_set_key_length(evp, keylen), 0);
|
||||||
|
Reference in New Issue
Block a user