summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2021-09-10 14:33:44 +0000
committertb <>2021-09-10 14:33:44 +0000
commita07cb6e5d5a078c101a9d5592736fec20b083993 (patch)
treed5f09ac5f089e707d9f967f61323c8b728447220 /src/lib
parent3987d8461f5c30d0adcadb5ba2214d2ed1353cec (diff)
downloadopenbsd-a07cb6e5d5a078c101a9d5592736fec20b083993.tar.gz
openbsd-a07cb6e5d5a078c101a9d5592736fec20b083993.tar.bz2
openbsd-a07cb6e5d5a078c101a9d5592736fec20b083993.zip
Expose BN_bn2{,le}binpad() and BN_lebin2bn() in <openssl/bn.h>
ok beck inoguchi
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bn/bn.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index c421e2751a..16751116a1 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn.h,v 1.42 2021/09/10 14:32:05 tb Exp $ */ 1/* $OpenBSD: bn.h,v 1.43 2021/09/10 14:33:44 tb Exp $ */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -437,11 +437,9 @@ BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
437void BN_swap(BIGNUM *a, BIGNUM *b); 437void BN_swap(BIGNUM *a, BIGNUM *b);
438BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret); 438BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);
439int BN_bn2bin(const BIGNUM *a, unsigned char *to); 439int BN_bn2bin(const BIGNUM *a, unsigned char *to);
440#if defined(LIBRESSL_INTERNAL)
441int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen); 440int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen);
442BIGNUM *BN_lebin2bn(const unsigned char *s, int len, BIGNUM *ret); 441BIGNUM *BN_lebin2bn(const unsigned char *s, int len, BIGNUM *ret);
443int BN_bn2lebinpad(const BIGNUM *a, unsigned char *to, int tolen); 442int BN_bn2lebinpad(const BIGNUM *a, unsigned char *to, int tolen);
444#endif
445BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret); 443BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);
446int BN_bn2mpi(const BIGNUM *a, unsigned char *to); 444int BN_bn2mpi(const BIGNUM *a, unsigned char *to);
447int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); 445int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);