We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e262fb4 commit 3286105Copy full SHA for 3286105
include/jwt-cpp/jwt.h
@@ -1570,6 +1570,14 @@ namespace jwt {
1570
throw error::ecdsa_exception(error::ecdsa_error::invalid_key_size);
1571
}
1572
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
+ */
1581
ecdsa(helper::evp_pkey_handle key_pair, const EVP_MD* (*md)(), std::string name, size_t siglen)
1582
: pkey(std::move(key_pair)), md(md), alg_name(std::move(name)), signature_length(siglen) {
1583
if (!pkey) {
0 commit comments