diff options
author | tb <> | 2021-09-10 14:33:44 +0000 |
---|---|---|
committer | tb <> | 2021-09-10 14:33:44 +0000 |
commit | a07cb6e5d5a078c101a9d5592736fec20b083993 (patch) | |
tree | d5f09ac5f089e707d9f967f61323c8b728447220 /src/lib | |
parent | 3987d8461f5c30d0adcadb5ba2214d2ed1353cec (diff) | |
download | openbsd-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.h | 4 |
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); | |||
437 | void BN_swap(BIGNUM *a, BIGNUM *b); | 437 | void BN_swap(BIGNUM *a, BIGNUM *b); |
438 | BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret); | 438 | BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret); |
439 | int BN_bn2bin(const BIGNUM *a, unsigned char *to); | 439 | int BN_bn2bin(const BIGNUM *a, unsigned char *to); |
440 | #if defined(LIBRESSL_INTERNAL) | ||
441 | int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen); | 440 | int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen); |
442 | BIGNUM *BN_lebin2bn(const unsigned char *s, int len, BIGNUM *ret); | 441 | BIGNUM *BN_lebin2bn(const unsigned char *s, int len, BIGNUM *ret); |
443 | int BN_bn2lebinpad(const BIGNUM *a, unsigned char *to, int tolen); | 442 | int BN_bn2lebinpad(const BIGNUM *a, unsigned char *to, int tolen); |
444 | #endif | ||
445 | BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret); | 443 | BIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret); |
446 | int BN_bn2mpi(const BIGNUM *a, unsigned char *to); | 444 | int BN_bn2mpi(const BIGNUM *a, unsigned char *to); |
447 | int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); | 445 | int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b); |