Latest update.
This commit is contained in:
+4
-4
@@ -12,7 +12,7 @@
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include "internal/cryptlib.h"
|
||||
#include "bn_lcl.h"
|
||||
#include "bn_local.h"
|
||||
|
||||
#ifndef OPENSSL_NO_EC2M
|
||||
|
||||
@@ -297,7 +297,7 @@ int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[])
|
||||
|
||||
bn_check_top(a);
|
||||
|
||||
if (!p[0]) {
|
||||
if (p[0] == 0) {
|
||||
/* reduction mod 1 => return 0 */
|
||||
BN_zero(r);
|
||||
return 1;
|
||||
@@ -929,7 +929,7 @@ int BN_GF2m_mod_sqrt_arr(BIGNUM *r, const BIGNUM *a, const int p[],
|
||||
|
||||
bn_check_top(a);
|
||||
|
||||
if (!p[0]) {
|
||||
if (p[0] == 0) {
|
||||
/* reduction mod 1 => return 0 */
|
||||
BN_zero(r);
|
||||
return 1;
|
||||
@@ -988,7 +988,7 @@ int BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a_, const int p[],
|
||||
|
||||
bn_check_top(a_);
|
||||
|
||||
if (!p[0]) {
|
||||
if (p[0] == 0) {
|
||||
/* reduction mod 1 => return 0 */
|
||||
BN_zero(r);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user