summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/engine/eng_rsax.c10
-rw-r--r--src/lib/libssl/src/crypto/engine/eng_rsax.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/libcrypto/engine/eng_rsax.c b/src/lib/libcrypto/engine/eng_rsax.c
index ee18439070..090ff3dfda 100644
--- a/src/lib/libcrypto/engine/eng_rsax.c
+++ b/src/lib/libcrypto/engine/eng_rsax.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: eng_rsax.c,v 1.7 2014/06/22 12:05:09 jsing Exp $ */ 1/* $OpenBSD: eng_rsax.c,v 1.8 2014/06/22 12:18:33 jsing Exp $ */
2/* Copyright (c) 2010-2010 Intel Corp. 2/* Copyright (c) 2010-2010 Intel Corp.
3 * Author: Vinodh.Gopal@intel.com 3 * Author: Vinodh.Gopal@intel.com
4 * Jim Guilford 4 * Jim Guilford
@@ -573,10 +573,10 @@ e_rsax_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
573 if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) { 573 if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) {
574 c = &local_c; 574 c = &local_c;
575 BN_with_flags(c, I, BN_FLG_CONSTTIME); 575 BN_with_flags(c, I, BN_FLG_CONSTTIME);
576 if (!BN_mod(r1, c,rsa->q, ctx)) 576 if (!BN_mod(r1, c, rsa->q, ctx))
577 goto err; 577 goto err;
578 } else { 578 } else {
579 if (!BN_mod(r1, I,rsa->q, ctx)) 579 if (!BN_mod(r1, I, rsa->q, ctx))
580 goto err; 580 goto err;
581 } 581 }
582 582
@@ -595,10 +595,10 @@ e_rsax_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
595 if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) { 595 if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) {
596 c = &local_c; 596 c = &local_c;
597 BN_with_flags(c, I, BN_FLG_CONSTTIME); 597 BN_with_flags(c, I, BN_FLG_CONSTTIME);
598 if (!BN_mod(r1, c,rsa->p, ctx)) 598 if (!BN_mod(r1, c, rsa->p, ctx))
599 goto err; 599 goto err;
600 } else { 600 } else {
601 if (!BN_mod(r1, I,rsa->p, ctx)) 601 if (!BN_mod(r1, I, rsa->p, ctx))
602 goto err; 602 goto err;
603 } 603 }
604 604
diff --git a/src/lib/libssl/src/crypto/engine/eng_rsax.c b/src/lib/libssl/src/crypto/engine/eng_rsax.c
index ee18439070..090ff3dfda 100644
--- a/src/lib/libssl/src/crypto/engine/eng_rsax.c
+++ b/src/lib/libssl/src/crypto/engine/eng_rsax.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: eng_rsax.c,v 1.7 2014/06/22 12:05:09 jsing Exp $ */ 1/* $OpenBSD: eng_rsax.c,v 1.8 2014/06/22 12:18:33 jsing Exp $ */
2/* Copyright (c) 2010-2010 Intel Corp. 2/* Copyright (c) 2010-2010 Intel Corp.
3 * Author: Vinodh.Gopal@intel.com 3 * Author: Vinodh.Gopal@intel.com
4 * Jim Guilford 4 * Jim Guilford
@@ -573,10 +573,10 @@ e_rsax_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
573 if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) { 573 if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) {
574 c = &local_c; 574 c = &local_c;
575 BN_with_flags(c, I, BN_FLG_CONSTTIME); 575 BN_with_flags(c, I, BN_FLG_CONSTTIME);
576 if (!BN_mod(r1, c,rsa->q, ctx)) 576 if (!BN_mod(r1, c, rsa->q, ctx))
577 goto err; 577 goto err;
578 } else { 578 } else {
579 if (!BN_mod(r1, I,rsa->q, ctx)) 579 if (!BN_mod(r1, I, rsa->q, ctx))
580 goto err; 580 goto err;
581 } 581 }
582 582
@@ -595,10 +595,10 @@ e_rsax_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
595 if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) { 595 if (!(rsa->flags & RSA_FLAG_NO_CONSTTIME)) {
596 c = &local_c; 596 c = &local_c;
597 BN_with_flags(c, I, BN_FLG_CONSTTIME); 597 BN_with_flags(c, I, BN_FLG_CONSTTIME);
598 if (!BN_mod(r1, c,rsa->p, ctx)) 598 if (!BN_mod(r1, c, rsa->p, ctx))
599 goto err; 599 goto err;
600 } else { 600 } else {
601 if (!BN_mod(r1, I,rsa->p, ctx)) 601 if (!BN_mod(r1, I, rsa->p, ctx))
602 goto err; 602 goto err;
603 } 603 }
604 604