diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/ecdsa/ecdsa.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecdsa.h b/src/lib/libcrypto/ecdsa/ecdsa.h index 530ab265bb..9c53230a88 100644 --- a/src/lib/libcrypto/ecdsa/ecdsa.h +++ b/src/lib/libcrypto/ecdsa/ecdsa.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecdsa.h,v 1.4 2015/02/08 13:35:06 jsing Exp $ */ | 1 | /* $OpenBSD: ecdsa.h,v 1.5 2018/03/17 15:24:44 tb Exp $ */ |
| 2 | /** | 2 | /** |
| 3 | * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions | 3 | * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions |
| 4 | * \author Written by Nils Larsch for the OpenSSL project | 4 | * \author Written by Nils Larsch for the OpenSSL project |
| @@ -133,6 +133,20 @@ int i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp); | |||
| 133 | */ | 133 | */ |
| 134 | ECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len); | 134 | ECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len); |
| 135 | 135 | ||
| 136 | /** Accessor for r and s fields of ECDSA_SIG | ||
| 137 | * \param sig pointer to ECDSA_SIG pointer | ||
| 138 | * \param pr pointer to BIGNUM pointer for r (may be NULL) | ||
| 139 | * \param ps pointer to BIGNUM pointer for s (may be NULL) | ||
| 140 | */ | ||
| 141 | void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps); | ||
| 142 | |||
| 143 | /** Setter for r and s fields of ECDSA_SIG | ||
| 144 | * \param sig pointer to ECDSA_SIG pointer | ||
| 145 | * \param r pointer to BIGNUM for r (may be NULL) | ||
| 146 | * \param s pointer to BIGNUM for s (may be NULL) | ||
| 147 | */ | ||
| 148 | int ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s); | ||
| 149 | |||
| 136 | /** Computes the ECDSA signature of the given hash value using | 150 | /** Computes the ECDSA signature of the given hash value using |
| 137 | * the supplied private key and returns the created signature. | 151 | * the supplied private key and returns the created signature. |
| 138 | * \param dgst pointer to the hash value | 152 | * \param dgst pointer to the hash value |
