Skip to content

Commit 3286105

Browse files
committed
add documentation to ecdsa constructor
1 parent e262fb4 commit 3286105

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/jwt-cpp/jwt.h

+8
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,14 @@ namespace jwt {
15701570
throw error::ecdsa_exception(error::ecdsa_error::invalid_key_size);
15711571
}
15721572

1573+
/**
1574+
* Construct new ecdsa algorithm
1575+
*
1576+
* \param key_pair openssl EVP_PKEY structure containing ECDSA key pair. The private part is optional.
1577+
* \param md Pointer to hash function
1578+
* \param name Name of the algorithm
1579+
* \param siglen The bit length of the signature
1580+
*/
15731581
ecdsa(helper::evp_pkey_handle key_pair, const EVP_MD* (*md)(), std::string name, size_t siglen)
15741582
: pkey(std::move(key_pair)), md(md), alg_name(std::move(name)), signature_length(siglen) {
15751583
if (!pkey) {

0 commit comments

Comments
 (0)