33 return doSign(digestAlgorithm, bufs);
39 return doSign(digestAlgorithm, {{buf, size}});
46 return doVerify(digestAlgorithm, bufs, sig, sigLen);
53 return doVerify(digestAlgorithm, {{buf, bufLen}},
sig,
sigLen);
59 return doDecrypt(cipherText, cipherTextLen);
65 return doDerivePublicKey();
ConstBufferPtr sign(DigestAlgorithm digestAlgorithm, const InputBuffers &bufs) const
Generate a digital signature for bufs using this key with digestAlgorithm.
ConstBufferPtr derivePublicKey() const
ConstBufferPtr decrypt(const uint8_t *cipherText, size_t cipherTextLen) const
Return plain text content decrypted from cipherText using this key.
bool verify(DigestAlgorithm digestAlgorithm, const InputBuffers &bufs, const uint8_t *sig, size_t sigLen) const
Verify the signature sig for bufs using this key and digestAlgorithm.
shared_ptr< const Buffer > ConstBufferPtr