34 BOOST_THROW_EXCEPTION(
Error(
"key is not set"));
38 KeyHandleOsx::doSign(
DigestAlgorithm digestAlgorithm,
const uint8_t* buf,
size_t size)
const
40 return m_impl.
sign(m_key, digestAlgorithm, buf, size);
44 KeyHandleOsx::doDecrypt(
const uint8_t* cipherText,
size_t cipherTextLen)
const
46 return m_impl.
decrypt(m_key, cipherText, cipherTextLen);
50 KeyHandleOsx::doDerivePublicKey()
const
Copyright (c) 2013-2016 Regents of the University of California.
The back-end implementation of TPM based on macOS Keychain Services.
ConstBufferPtr sign(const KeyRefOsx &key, DigestAlgorithm digestAlgorithm, const uint8_t *buf, size_t size) const
Sign buf with key using digestAlgorithm.
ConstBufferPtr derivePublicKey(const KeyRefOsx &key) const
ConstBufferPtr decrypt(const KeyRefOsx &key, const uint8_t *cipherText, size_t cipherSize) const
KeyHandleOsx(const BackEndOsx &impl, const KeyRefOsx &key)
shared_ptr< const Buffer > ConstBufferPtr