Loading crypto/bn/bn_kron.c +5 −3 Original line number Original line Diff line number Diff line Loading @@ -53,9 +53,9 @@ * * */ */ #include "cryptlib.h" #include "bn_lcl.h" #include "bn_lcl.h" /* least significant word */ /* least significant word */ #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0]) #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0]) Loading @@ -74,6 +74,9 @@ int BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) */ */ static const int tab[8] = {0, 1, 0, -1, 0, -1, 0, 1}; static const int tab[8] = {0, 1, 0, -1, 0, -1, 0, 1}; bn_check_top(a); bn_check_top(b); BN_CTX_start(ctx); BN_CTX_start(ctx); A = BN_CTX_get(ctx); A = BN_CTX_get(ctx); B = BN_CTX_get(ctx); B = BN_CTX_get(ctx); Loading Loading @@ -172,7 +175,6 @@ int BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) tmp = A; A = B; B = tmp; tmp = A; A = B; B = tmp; tmp->neg = 0; tmp->neg = 0; } } end: end: BN_CTX_end(ctx); BN_CTX_end(ctx); if (err) if (err) Loading Loading
crypto/bn/bn_kron.c +5 −3 Original line number Original line Diff line number Diff line Loading @@ -53,9 +53,9 @@ * * */ */ #include "cryptlib.h" #include "bn_lcl.h" #include "bn_lcl.h" /* least significant word */ /* least significant word */ #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0]) #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0]) Loading @@ -74,6 +74,9 @@ int BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) */ */ static const int tab[8] = {0, 1, 0, -1, 0, -1, 0, 1}; static const int tab[8] = {0, 1, 0, -1, 0, -1, 0, 1}; bn_check_top(a); bn_check_top(b); BN_CTX_start(ctx); BN_CTX_start(ctx); A = BN_CTX_get(ctx); A = BN_CTX_get(ctx); B = BN_CTX_get(ctx); B = BN_CTX_get(ctx); Loading Loading @@ -172,7 +175,6 @@ int BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) tmp = A; A = B; B = tmp; tmp = A; A = B; B = tmp; tmp->neg = 0; tmp->neg = 0; } } end: end: BN_CTX_end(ctx); BN_CTX_end(ctx); if (err) if (err) Loading