EVP_CIPHER_CTX_key_length() should return the set key length in the
EVP_CIPHER_CTX structure which may not be the same as the underlying cipher key length for variable length ciphers.
This commit is contained in:
@@ -225,7 +225,7 @@ int EVP_CIPHER_key_length(const EVP_CIPHER *cipher)
|
|||||||
|
|
||||||
int EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx)
|
int EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx)
|
||||||
{
|
{
|
||||||
return ctx->cipher->key_len;
|
return ctx->key_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
int EVP_CIPHER_nid(const EVP_CIPHER *cipher)
|
int EVP_CIPHER_nid(const EVP_CIPHER *cipher)
|
||||||
|
Reference in New Issue
Block a user