Skip to content

Commit

Permalink
EVP_CIPHER_CTX_key_length() should return the set key length in the
Browse files Browse the repository at this point in the history
EVP_CIPHER_CTX structure which may not be the same as the underlying
cipher key length for variable length ciphers.
  • Loading branch information
snhenson committed Feb 27, 2007
1 parent 5c2fc73 commit 392a034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/evp/evp_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ int EVP_CIPHER_key_length(const EVP_CIPHER *cipher)

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)
Expand Down

0 comments on commit 392a034

Please sign in to comment.