33 return doSign(digestAlgorithm,
bufs);
38 span<const uint8_t>
sig)
const
40 return doVerify(digestAlgorithm,
bufs,
sig);
46 return doDecrypt(cipherText);
52 return doDerivePublicKey();
ConstBufferPtr derivePublicKey() const
ConstBufferPtr decrypt(span< const uint8_t > cipherText) const
Return plain text content decrypted from cipherText using this key.
bool verify(DigestAlgorithm digestAlgorithm, const InputBuffers &bufs, span< const uint8_t > sig) const
Verify the signature sig over bufs using this key and digestAlgorithm.
ConstBufferPtr sign(DigestAlgorithm digestAlgorithm, const InputBuffers &bufs) const
Generate a digital signature for bufs using this key with digestAlgorithm.
shared_ptr< const Buffer > ConstBufferPtr
span< const uint8_t > sig