提交 03af8430 编写于 作者: E Emilia Kasper

Add a comment noting the padding oracle.

Reviewed-by: NAndy Polyakov <appro@openssl.org>
上级 4ad2d3ac
......@@ -524,6 +524,11 @@ int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
return(0);
}
OPENSSL_assert(b <= sizeof ctx->final);
/*
* The following assumes that the ciphertext has been authenticated.
* Otherwise it provides a padding oracle.
*/
n=ctx->final[b-1];
if (n == 0 || n > (int)b)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册