SET(TZ_BACKEND_SOURCES
${KEY_MANAGER_PATH}/crypto/tz-backend/internals.cpp
${KEY_MANAGER_PATH}/crypto/tz-backend/obj.cpp
+ ${KEY_MANAGER_PATH}/crypto/tz-backend/ctx.cpp
${KEY_MANAGER_PATH}/crypto/tz-backend/store.cpp
${KEY_MANAGER_PATH}/crypto/tz-backend/tz-context.cpp
${KEY_MANAGER_PATH}/crypto/tz-backend/tz-memory.cpp
namespace CKM {
namespace Crypto {
+namespace TZ {
void CipherCtx::customize(const CryptoAlgorithm& algo)
{
RawBuffer CipherCtx::update(const RawBuffer& input)
{
- return Internals::updateCipher(input);
+ return Internals::updateCipher(m_opId, input);
}
RawBuffer CipherCtx::finalize(const RawBuffer& input)
* It is assumed that finalize for GCM encryption will return the GCM tag only.
* In case of GCM decryption the tag will be passed as finalizeCipher argument.
*/
- return Internals::finalizeCipher(input);
+ return Internals::finalizeCipher(m_opId, input);
}
+} // namespace TZ
} // namespace Crypto
} // namespace CKM