summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4ad2d3a)
Reviewed-by: Andy Polyakov <appro@openssl.org>
return(0);
}
OPENSSL_assert(b <= sizeof ctx->final);
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)
{
n=ctx->final[b-1];
if (n == 0 || n > (int)b)
{