diff options
| author | tb <> | 2021-09-10 14:33:44 +0000 |
|---|---|---|
| committer | tb <> | 2021-09-10 14:33:44 +0000 |
| commit | 9c7f18263be772997a3fc69b29db311365ee986a (patch) | |
| tree | d5f09ac5f089e707d9f967f61323c8b728447220 /src | |
| parent | a7a8157da1afa7599cecd9217d06cce21e3ad67f (diff) | |
| download | openbsd-9c7f18263be772997a3fc69b29db311365ee986a.tar.gz openbsd-9c7f18263be772997a3fc69b29db311365ee986a.tar.bz2 openbsd-9c7f18263be772997a3fc69b29db311365ee986a.zip | |
Expose BN_bn2{,le}binpad() and BN_lebin2bn() in <openssl/bn.h>
ok beck inoguchi
Diffstat (limited to 'src')
| -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); |
