AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Key factory interface. More...
#include <KeyFactoryInterface.h>
Public Types | |
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... | |
Public Member Functions | |
virtual | ~KeyFactoryInterface () noexcept=default |
Default destructor. More... | |
virtual bool | generateKey (AlgorithmType type, Key &key) noexcept=0 |
Generates a new key. More... | |
virtual bool | generateIV (AlgorithmType type, IV &iv) noexcept=0 |
Generates a new initialization vector. More... | |
Key factory interface.
This interface allows construction of new keys and initialization vectors.
This interface is thread safe and can be used concurrently by different threads.
typedef std::vector<unsigned char> alexaClientSDK::cryptoInterfaces::KeyFactoryInterface::IV |
Initialization vector type. IV is a sequence of bytes, and the size depends on a encryption algorithm.
typedef std::vector<unsigned char> alexaClientSDK::cryptoInterfaces::KeyFactoryInterface::Key |
Key data. Key is a sequence of bytes, and the size depends on an encryption algorithm.
|
virtualdefaultnoexcept |
Default destructor.
|
pure virtualnoexcept |
Generates a new initialization vector.
Generate random initialization vector.
[in] | type | Algorithm type. |
[out] | iv | Initialization vector. |
|
pure virtualnoexcept |
Generates a new key.
Generates a new key for a given algorithm.
[in] | type | Encryption algorithm type. |
[out] | key | Key data. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0