summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/bn/general/bntest.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/regress/lib/libcrypto/bn/general/bntest.c b/src/regress/lib/libcrypto/bn/general/bntest.c
index 6a9c2e8a53..8ef3d475a2 100644
--- a/src/regress/lib/libcrypto/bn/general/bntest.c
+++ b/src/regress/lib/libcrypto/bn/general/bntest.c
@@ -800,7 +800,7 @@ test_mont(BIO *bp, BN_CTX *ctx)
800 if (bits == 0) 800 if (bits == 0)
801 continue; 801 continue;
802 BN_bntest_rand(&n, bits, 0, 1); 802 BN_bntest_rand(&n, bits, 0, 1);
803 BN_MONT_CTX_set(mont, &n, ctx); 803 (void)BN_MONT_CTX_set(mont, &n, ctx);
804 804
805 BN_nnmod(&a, &a, &n, ctx); 805 BN_nnmod(&a, &a, &n, ctx);
806 BN_nnmod(&b, &b, &n, ctx); 806 BN_nnmod(&b, &b, &n, ctx);
@@ -1864,11 +1864,11 @@ test_lshift(BIO *bp, BN_CTX *ctx, BIGNUM *a_)
1864 a = a_; 1864 a = a_;
1865 else { 1865 else {
1866 a = BN_new(); 1866 a = BN_new();
1867 BN_bntest_rand(a,200,0,0); /**/ 1867 BN_bntest_rand(a,200,0,0); /**/
1868 a->neg = rand_neg(); 1868 a->neg = rand_neg();
1869 } 1869 }
1870 for (i = 0; i < num0; i++) { 1870 for (i = 0; i < num0; i++) {
1871 BN_lshift(b, a, i + 1); 1871 (void)BN_lshift(b, a, i + 1);
1872 BN_add(c, c, c); 1872 BN_add(c, c, c);
1873 if (bp != NULL) { 1873 if (bp != NULL) {
1874 if (!results) { 1874 if (!results) {
@@ -1918,7 +1918,7 @@ test_lshift1(BIO *bp)
1918 BN_bntest_rand(a,200,0,0); /**/ 1918 BN_bntest_rand(a,200,0,0); /**/
1919 a->neg = rand_neg(); 1919 a->neg = rand_neg();
1920 for (i = 0; i < num0; i++) { 1920 for (i = 0; i < num0; i++) {
1921 BN_lshift1(b, a); 1921 (void)BN_lshift1(b, a);
1922 if (bp != NULL) { 1922 if (bp != NULL) {
1923 if (!results) { 1923 if (!results) {
1924 BN_print(bp, a); 1924 BN_print(bp, a);
@@ -1961,7 +1961,7 @@ test_rshift(BIO *bp, BN_CTX *ctx)
1961 BN_bntest_rand(a,200,0,0); /**/ 1961 BN_bntest_rand(a,200,0,0); /**/
1962 a->neg = rand_neg(); 1962 a->neg = rand_neg();
1963 for (i = 0; i < num0; i++) { 1963 for (i = 0; i < num0; i++) {
1964 BN_rshift(b, a, i + 1); 1964 (void)BN_rshift(b, a, i + 1);
1965 BN_add(c, c, c); 1965 BN_add(c, c, c);
1966 if (bp != NULL) { 1966 if (bp != NULL) {
1967 if (!results) { 1967 if (!results) {
@@ -2003,7 +2003,7 @@ test_rshift1(BIO *bp)
2003 BN_bntest_rand(a,200,0,0); /**/ 2003 BN_bntest_rand(a,200,0,0); /**/
2004 a->neg = rand_neg(); 2004 a->neg = rand_neg();
2005 for (i = 0; i < num0; i++) { 2005 for (i = 0; i < num0; i++) {
2006 BN_rshift1(b, a); 2006 (void)BN_rshift1(b, a);
2007 if (bp != NULL) { 2007 if (bp != NULL) {
2008 if (!results) { 2008 if (!results) {
2009 BN_print(bp, a); 2009 BN_print(bp, a);