Skip to content
Snippets Groups Projects
Commit 9ca2cc78 authored by Emilia Kasper's avatar Emilia Kasper
Browse files

Add a comment noting the padding oracle.


Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
(cherry picked from commit 03af8430)
parent 0cf55223
No related branches found
No related tags found
No related merge requests found
......@@ -549,6 +549,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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment