summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecdsa.h
diff options
context:
space:
mode:
authortb <>2018-03-17 15:24:44 +0000
committertb <>2018-03-17 15:24:44 +0000
commit2650ae604a4290c33d7b66ac010a0704ba8e4bff (patch)
tree619e213ed501025640361aa63c9bad7b54e56e64 /src/lib/libcrypto/ecdsa/ecdsa.h
parentff154a0391cfcee220c90f520739c6f08f97c2aa (diff)
downloadopenbsd-2650ae604a4290c33d7b66ac010a0704ba8e4bff.tar.gz
openbsd-2650ae604a4290c33d7b66ac010a0704ba8e4bff.tar.bz2
openbsd-2650ae604a4290c33d7b66ac010a0704ba8e4bff.zip
Provide ECDSA_SIG_{g,s}et0().
ok jsing
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecdsa.h')
-rw-r--r--src/lib/libcrypto/ecdsa/ecdsa.h16
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 */
134ECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len); 134ECDSA_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 */
141void 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 */
148int 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