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

@@ -148,6 +148,7 @@ static int generate_key(DH *dh)
if ((dh->flags & DH_FLAG_NO_EXP_CONSTTIME) == 0)
{
BN_init(&local_prk);
prk = &local_prk;
BN_with_flags(prk, priv_key, BN_FLG_EXP_CONSTTIME);
}