diff options
author | bcook <> | 2015-07-18 17:36:50 +0000 |
---|---|---|
committer | bcook <> | 2015-07-18 17:36:50 +0000 |
commit | cdc6d7e16d216fefca241ecf91490a6ca83d80b8 (patch) | |
tree | c5f6c6b163c97f4782dc6a03e58befc87cb1abc5 | |
parent | edc98a514b3cdc21cc17029a1050f6d147472ae4 (diff) | |
download | openbsd-cdc6d7e16d216fefca241ecf91490a6ca83d80b8.tar.gz openbsd-cdc6d7e16d216fefca241ecf91490a6ca83d80b8.tar.bz2 openbsd-cdc6d7e16d216fefca241ecf91490a6ca83d80b8.zip |
remove mysterious, decorative comment blocklets
-rw-r--r-- | src/regress/lib/libcrypto/bn/general/bntest.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/regress/lib/libcrypto/bn/general/bntest.c b/src/regress/lib/libcrypto/bn/general/bntest.c index 8ef3d475a2..892206f462 100644 --- a/src/regress/lib/libcrypto/bn/general/bntest.c +++ b/src/regress/lib/libcrypto/bn/general/bntest.c | |||
@@ -329,7 +329,7 @@ main(int argc, char *argv[]) | |||
329 | BN_CTX_free(ctx); | 329 | BN_CTX_free(ctx); |
330 | BIO_free(out); | 330 | BIO_free(out); |
331 | 331 | ||
332 | /**/ | 332 | |
333 | exit(0); | 333 | exit(0); |
334 | err: | 334 | err: |
335 | BIO_puts(out,"1\n"); /* make sure the Perl script fed by bc notices | 335 | BIO_puts(out,"1\n"); /* make sure the Perl script fed by bc notices |
@@ -792,8 +792,8 @@ test_mont(BIO *bp, BN_CTX *ctx) | |||
792 | BN_init(&B); | 792 | BN_init(&B); |
793 | BN_init(&n); | 793 | BN_init(&n); |
794 | 794 | ||
795 | BN_bntest_rand(&a,100,0,0); /**/ | 795 | BN_bntest_rand(&a,100,0,0); |
796 | BN_bntest_rand(&b,100,0,0); /**/ | 796 | BN_bntest_rand(&b,100,0,0); |
797 | for (i = 0; i < num2; i++) { | 797 | for (i = 0; i < num2; i++) { |
798 | int bits = (200*(i + 1))/num2; | 798 | int bits = (200*(i + 1))/num2; |
799 | 799 | ||
@@ -808,8 +808,8 @@ test_mont(BIO *bp, BN_CTX *ctx) | |||
808 | BN_to_montgomery(&A, &a, mont, ctx); | 808 | BN_to_montgomery(&A, &a, mont, ctx); |
809 | BN_to_montgomery(&B, &b, mont, ctx); | 809 | BN_to_montgomery(&B, &b, mont, ctx); |
810 | 810 | ||
811 | BN_mod_mul_montgomery(&c,&A,&B,mont,ctx);/**/ | 811 | BN_mod_mul_montgomery(&c,&A,&B,mont,ctx); |
812 | BN_from_montgomery(&A,&c,mont,ctx);/**/ | 812 | BN_from_montgomery(&A,&c,mont,ctx); |
813 | if (bp != NULL) { | 813 | if (bp != NULL) { |
814 | if (!results) { | 814 | if (!results) { |
815 | BN_print(bp, &a); | 815 | BN_print(bp, &a); |
@@ -854,12 +854,12 @@ test_mod(BIO *bp, BN_CTX *ctx) | |||
854 | d = BN_new(); | 854 | d = BN_new(); |
855 | e = BN_new(); | 855 | e = BN_new(); |
856 | 856 | ||
857 | BN_bntest_rand(a,1024,0,0); /**/ | 857 | BN_bntest_rand(a,1024,0,0); |
858 | for (i = 0; i < num0; i++) { | 858 | for (i = 0; i < num0; i++) { |
859 | BN_bntest_rand(b,450+i*10,0,0); /**/ | 859 | BN_bntest_rand(b,450+i*10,0,0); |
860 | a->neg = rand_neg(); | 860 | a->neg = rand_neg(); |
861 | b->neg = rand_neg(); | 861 | b->neg = rand_neg(); |
862 | BN_mod(c,a,b,ctx);/**/ | 862 | BN_mod(c,a,b,ctx); |
863 | if (bp != NULL) { | 863 | if (bp != NULL) { |
864 | if (!results) { | 864 | if (!results) { |
865 | BN_print(bp, a); | 865 | BN_print(bp, a); |
@@ -900,10 +900,10 @@ test_mod_mul(BIO *bp, BN_CTX *ctx) | |||
900 | e = BN_new(); | 900 | e = BN_new(); |
901 | 901 | ||
902 | for (j = 0; j < 3; j++) { | 902 | for (j = 0; j < 3; j++) { |
903 | BN_bntest_rand(c,1024,0,0); /**/ | 903 | BN_bntest_rand(c,1024,0,0); |
904 | for (i = 0; i < num0; i++) { | 904 | for (i = 0; i < num0; i++) { |
905 | BN_bntest_rand(a,475+i*10,0,0); /**/ | 905 | BN_bntest_rand(a,475+i*10,0,0); |
906 | BN_bntest_rand(b,425+i*11,0,0); /**/ | 906 | BN_bntest_rand(b,425+i*11,0,0); |
907 | a->neg = rand_neg(); | 907 | a->neg = rand_neg(); |
908 | b->neg = rand_neg(); | 908 | b->neg = rand_neg(); |
909 | if (!BN_mod_mul(e, a,b, c, ctx)) { | 909 | if (!BN_mod_mul(e, a,b, c, ctx)) { |
@@ -970,8 +970,8 @@ test_mod_exp(BIO *bp, BN_CTX *ctx) | |||
970 | 970 | ||
971 | BN_bntest_rand(c,30,0,1); /* must be odd for montgomery */ | 971 | BN_bntest_rand(c,30,0,1); /* must be odd for montgomery */ |
972 | for (i = 0; i < num2; i++) { | 972 | for (i = 0; i < num2; i++) { |
973 | BN_bntest_rand(a,20+i*5,0,0); /**/ | 973 | BN_bntest_rand(a,20+i*5,0,0); |
974 | BN_bntest_rand(b,2+i,0,0); /**/ | 974 | BN_bntest_rand(b,2+i,0,0); |
975 | 975 | ||
976 | if (!BN_mod_exp(d, a,b, c, ctx)) { | 976 | if (!BN_mod_exp(d, a,b, c, ctx)) { |
977 | rc = 0; | 977 | rc = 0; |
@@ -1022,8 +1022,8 @@ test_mod_exp_mont_consttime(BIO *bp, BN_CTX *ctx) | |||
1022 | 1022 | ||
1023 | BN_bntest_rand(c,30,0,1); /* must be odd for montgomery */ | 1023 | BN_bntest_rand(c,30,0,1); /* must be odd for montgomery */ |
1024 | for (i = 0; i < num2; i++) { | 1024 | for (i = 0; i < num2; i++) { |
1025 | BN_bntest_rand(a,20+i*5,0,0); /**/ | 1025 | BN_bntest_rand(a,20+i*5,0,0); |
1026 | BN_bntest_rand(b,2+i,0,0); /**/ | 1026 | BN_bntest_rand(b,2+i,0,0); |
1027 | 1027 | ||
1028 | if (!BN_mod_exp_mont_consttime(d, a,b, c,ctx, NULL)) { | 1028 | if (!BN_mod_exp_mont_consttime(d, a,b, c,ctx, NULL)) { |
1029 | rc = 0; | 1029 | rc = 0; |
@@ -1074,8 +1074,8 @@ test_exp(BIO *bp, BN_CTX *ctx) | |||
1074 | BN_one(one); | 1074 | BN_one(one); |
1075 | 1075 | ||
1076 | for (i = 0; i < num2; i++) { | 1076 | for (i = 0; i < num2; i++) { |
1077 | BN_bntest_rand(a,20+i*5,0,0); /**/ | 1077 | BN_bntest_rand(a,20+i*5,0,0); |
1078 | BN_bntest_rand(b,2+i,0,0); /**/ | 1078 | BN_bntest_rand(b,2+i,0,0); |
1079 | 1079 | ||
1080 | if (BN_exp(d, a,b, ctx) <= 0) { | 1080 | if (BN_exp(d, a,b, ctx) <= 0) { |
1081 | rc = 0; | 1081 | rc = 0; |
@@ -1864,7 +1864,7 @@ 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++) { |
@@ -1915,7 +1915,7 @@ test_lshift1(BIO *bp) | |||
1915 | b = BN_new(); | 1915 | b = BN_new(); |
1916 | c = BN_new(); | 1916 | c = BN_new(); |
1917 | 1917 | ||
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 | (void)BN_lshift1(b, a); | 1921 | (void)BN_lshift1(b, a); |
@@ -1958,7 +1958,7 @@ test_rshift(BIO *bp, BN_CTX *ctx) | |||
1958 | e = BN_new(); | 1958 | e = BN_new(); |
1959 | BN_one(c); | 1959 | BN_one(c); |
1960 | 1960 | ||
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 | (void)BN_rshift(b, a, i + 1); | 1964 | (void)BN_rshift(b, a, i + 1); |
@@ -2000,7 +2000,7 @@ test_rshift1(BIO *bp) | |||
2000 | b = BN_new(); | 2000 | b = BN_new(); |
2001 | c = BN_new(); | 2001 | c = BN_new(); |
2002 | 2002 | ||
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 | (void)BN_rshift1(b, a); | 2006 | (void)BN_rshift1(b, a); |