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:
Dr. Stephen Henson 2007-02-27 18:42:52 +00:00
parent 5c2fc73e7b
commit 392a0345de

View File

@ -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)