Use BN_with_flags() in a cleaner way.

This commit is contained in:
Bodo Möller
2005-05-27 15:39:24 +00:00
parent 69f6a9f007
commit cad811fc41
4 changed files with 5 additions and 0 deletions

View File

@@ -383,6 +383,7 @@ static int RSA_eay_private_encrypt(int flen, const unsigned char *from,
if (!(rsa->flags & RSA_FLAG_NO_EXP_CONSTTIME))
{
BN_init(&local_d);
d = &local_d;
BN_with_flags(d, rsa->d, BN_FLG_EXP_CONSTTIME);
}