diff options
Diffstat (limited to 'src/lib/libcrypto/dh/dhtest.c')
-rw-r--r-- | src/lib/libcrypto/dh/dhtest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libcrypto/dh/dhtest.c b/src/lib/libcrypto/dh/dhtest.c index d75077f9fa..b76dede771 100644 --- a/src/lib/libcrypto/dh/dhtest.c +++ b/src/lib/libcrypto/dh/dhtest.c | |||
@@ -136,6 +136,10 @@ int main(int argc, char *argv[]) | |||
136 | b->g=BN_dup(a->g); | 136 | b->g=BN_dup(a->g); |
137 | if ((b->p == NULL) || (b->g == NULL)) goto err; | 137 | if ((b->p == NULL) || (b->g == NULL)) goto err; |
138 | 138 | ||
139 | /* Set a to run with normal modexp and b to use constant time */ | ||
140 | a->flags &= ~DH_FLAG_NO_EXP_CONSTTIME; | ||
141 | b->flags |= DH_FLAG_NO_EXP_CONSTTIME; | ||
142 | |||
139 | if (!DH_generate_key(a)) goto err; | 143 | if (!DH_generate_key(a)) goto err; |
140 | BIO_puts(out,"pri 1="); | 144 | BIO_puts(out,"pri 1="); |
141 | BN_print(out,a->priv_key); | 145 | BN_print(out,a->priv_key); |