Oops, moved too much.
This commit is contained in:
parent
167d2a1411
commit
5e4c2225ed
1 changed files with 4 additions and 4 deletions
|
@ -52,6 +52,10 @@ int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
to[0] = 0;
|
||||||
|
seed = to + 1;
|
||||||
|
db = to + SHA_DIGEST_LENGTH + 1;
|
||||||
|
|
||||||
EVP_Digest((void *)param, plen, db, NULL, EVP_sha1(), NULL);
|
EVP_Digest((void *)param, plen, db, NULL, EVP_sha1(), NULL);
|
||||||
memset(db + SHA_DIGEST_LENGTH, 0,
|
memset(db + SHA_DIGEST_LENGTH, 0,
|
||||||
emlen - flen - 2 * SHA_DIGEST_LENGTH - 1);
|
emlen - flen - 2 * SHA_DIGEST_LENGTH - 1);
|
||||||
|
@ -65,10 +69,6 @@ int RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
|
||||||
20);
|
20);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
to[0] = 0;
|
|
||||||
seed = to + 1;
|
|
||||||
db = to + SHA_DIGEST_LENGTH + 1;
|
|
||||||
|
|
||||||
dbmask = OPENSSL_malloc(emlen - SHA_DIGEST_LENGTH);
|
dbmask = OPENSSL_malloc(emlen - SHA_DIGEST_LENGTH);
|
||||||
if (dbmask == NULL)
|
if (dbmask == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue