Commit 392a0345 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

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.
parent 5c2fc73e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)