aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/pq-crypto/bike_r2/openssl_utils.c
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-05-10 22:16:03 +0300
committerthegeorg <thegeorg@yandex-team.ru>2022-05-10 22:16:03 +0300
commit09c71d918d4d0b0ebf67e1ab41aa90ddf587a3f2 (patch)
treedd44d2cb68e2845c2d4c367b66893f3e043a6e8e /contrib/restricted/aws/s2n/pq-crypto/bike_r2/openssl_utils.c
parent5eb4a8a2d487411924e1d1b27c454223dcf35005 (diff)
downloadydb-09c71d918d4d0b0ebf67e1ab41aa90ddf587a3f2.tar.gz
Update contrib/restricted/aws/s2n to 1.3.12
ref:f8279d764b4c00974a63543a1364c91e2b81b7a6
Diffstat (limited to 'contrib/restricted/aws/s2n/pq-crypto/bike_r2/openssl_utils.c')
-rw-r--r--contrib/restricted/aws/s2n/pq-crypto/bike_r2/openssl_utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/restricted/aws/s2n/pq-crypto/bike_r2/openssl_utils.c b/contrib/restricted/aws/s2n/pq-crypto/bike_r2/openssl_utils.c
index 09e0af3fde..c80d3365cb 100644
--- a/contrib/restricted/aws/s2n/pq-crypto/bike_r2/openssl_utils.c
+++ b/contrib/restricted/aws/s2n/pq-crypto/bike_r2/openssl_utils.c
@@ -108,15 +108,15 @@ ossl_add(OUT uint8_t res_bin[R_SIZE],
BIKE_ERROR(EXTERNAL_LIB_ERROR_OPENSSL);
}
- GUARD(ossl_bin2bn(a, a_bin, R_SIZE));
- GUARD(ossl_bin2bn(b, b_bin, R_SIZE));
+ POSIX_GUARD(ossl_bin2bn(a, a_bin, R_SIZE));
+ POSIX_GUARD(ossl_bin2bn(b, b_bin, R_SIZE));
if(BN_GF2m_add(r, a, b) == 0)
{
BIKE_ERROR(EXTERNAL_LIB_ERROR_OPENSSL);
}
- GUARD(ossl_bn2bin(res_bin, r, R_SIZE));
+ POSIX_GUARD(ossl_bn2bin(res_bin, r, R_SIZE));
return SUCCESS;
}
@@ -176,10 +176,10 @@ cyclic_product(OUT uint8_t res_bin[R_SIZE],
BIKE_ERROR(EXTERNAL_LIB_ERROR_OPENSSL);
}
- GUARD(ossl_bin2bn(a, a_bin, R_SIZE));
- GUARD(ossl_bin2bn(b, b_bin, R_SIZE));
- GUARD(ossl_cyclic_product(r, a, b, bn_ctx));
- GUARD(ossl_bn2bin(res_bin, r, R_SIZE));
+ POSIX_GUARD(ossl_bin2bn(a, a_bin, R_SIZE));
+ POSIX_GUARD(ossl_bin2bn(b, b_bin, R_SIZE));
+ POSIX_GUARD(ossl_cyclic_product(r, a, b, bn_ctx));
+ POSIX_GUARD(ossl_bn2bin(res_bin, r, R_SIZE));
return SUCCESS;
}