16 #ifndef ACSDK_CRYPTOINTERFACES_TEST_MOCKKEYSTORE_H_ 17 #define ACSDK_CRYPTOINTERFACES_TEST_MOCKKEYSTORE_H_ 23 namespace cryptoInterfaces {
78 #endif // ACSDK_CRYPTOINTERFACES_TEST_MOCKKEYSTORE_H_ virtual bool encryptAE(const std::string &keyAlias, AlgorithmType type, const IV &iv, const DataBlock &aad, const DataBlock &plaintext, KeyChecksum &checksum, DataBlock &ciphertext, Tag &tag) noexcept=0
Encrypts data block using authenticated encryption algorithm.
std::vector< unsigned char > Tag
Data type for tag. Tag (known as Message Authentication Code) is used with AEAD mode of operation lik...
Definition: KeyStoreInterface.h:60
MOCK_NOEXCEPT_METHOD8(encryptAE, bool(const std::string &keyAlias, AlgorithmType type, const IV &iv, const DataBlock &aad, const DataBlock &plaintext, KeyChecksum &checksum, DataBlock &ciphertext, DataBlock &tag))
Definition: AmdMetricWrapperTest.cpp:24
::std::string string
Definition: gtest-port.h:1097
std::vector< unsigned char > KeyChecksum
Data type for key checksum.
Definition: KeyStoreInterface.h:56
virtual bool getDefaultKeyAlias(std::string &keyAlias) noexcept=0
Returns default key alias.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Key Store Interface.
Definition: KeyStoreInterface.h:47
virtual bool decryptAD(const std::string &keyAlias, AlgorithmType type, const KeyChecksum &checksum, const IV &iv, const DataBlock &aad, const DataBlock &ciphertext, const Tag &tag, DataBlock &plaintext) noexcept=0
Decrypts data block using authenticated decryption algorithm.
type
Definition: upload.py:443
Definition: MockKeyStore.h:29
virtual bool decrypt(const std::string &keyAlias, AlgorithmType type, const KeyChecksum &checksum, const IV &iv, const DataBlock &ciphertext, DataBlock &plaintext) noexcept=0
Decrypts data block.
AlgorithmType
Enumeration of all supported encryption protocols.
Definition: AlgorithmType.h:31
std::vector< unsigned char > DataBlock
Data type for data block (encrypted or unencrypted).
Definition: KeyStoreInterface.h:50
std::vector< unsigned char > IV
Data type for initialization vector data.
Definition: KeyStoreInterface.h:53
MOCK_NOEXCEPT_METHOD6(encrypt, bool(const std::string &keyAlias, AlgorithmType type, const IV &iv, const DataBlock &plaintext, KeyChecksum &checksum, DataBlock &ciphertext))
MOCK_NOEXCEPT_METHOD1(getDefaultKeyAlias, bool(std::string &))
virtual bool encrypt(const std::string &keyAlias, AlgorithmType type, const IV &iv, const DataBlock &plaintext, KeyChecksum &checksum, DataBlock &ciphertext) noexcept=0
Encrypts data block.