AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MockKeyFactory.h>
Public Member Functions | |
MOCK_METHOD2 (_generateKey, bool(AlgorithmType type, Key &key)) | |
MOCK_METHOD2 (_generateIV, bool(AlgorithmType type, IV &iv)) | |
bool | generateIV (AlgorithmType type, IV &iv) noexcept override |
Generates a new initialization vector. More... | |
bool | generateKey (AlgorithmType type, Key &key) noexcept override |
Generates a new key. More... | |
Public Member Functions inherited from alexaClientSDK::acsdkCryptoInterfaces::KeyFactoryInterface | |
virtual | ~KeyFactoryInterface () noexcept=default |
Default destructor. More... | |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::acsdkCryptoInterfaces::KeyFactoryInterface | |
typedef std::vector< unsigned char > | Key |
Key data. Key is a sequence of bytes, and the size depends on an encryption algorithm. More... | |
typedef std::vector< unsigned char > | IV |
Initialization vector type. IV is a sequence of bytes, and the size depends on a encryption algorithm. More... | |
Mock class for KeyFactoryInterface
.
|
inlineoverridevirtualnoexcept |
Generates a new initialization vector.
Generate random initialization vector.
[in] | type | Algorithm type. |
[out] | iv | Initialization vector. |
Implements alexaClientSDK::acsdkCryptoInterfaces::KeyFactoryInterface.
|
inlineoverridevirtualnoexcept |
Generates a new key.
Generates a new key for a given algorithm.
[in] | type | Encryption algorithm type. |
[out] | key | Key data. |
Implements alexaClientSDK::acsdkCryptoInterfaces::KeyFactoryInterface.
alexaClientSDK::acsdkCryptoInterfaces::test::MockKeyFactory::MOCK_METHOD2 | ( | _generateIV | , |
bool(AlgorithmType type, IV &iv) | |||
) |
alexaClientSDK::acsdkCryptoInterfaces::test::MockKeyFactory::MOCK_METHOD2 | ( | _generateKey | , |
bool(AlgorithmType type, Key &key) | |||
) |
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0