31 return doSign(digestAlgorithm,
bufs);
36 span<const uint8_t>
sig)
const
38 return doVerify(digestAlgorithm,
bufs,
sig);
44 return doDecrypt(cipherText);
50 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.
std::shared_ptr< const Buffer > ConstBufferPtr
span< const uint8_t > sig