AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Key factory implementation based on OpenSSL. More...
#include <OpenSslKeyFactory.h>
Public Member Functions | |
KeyFactoryInterface methods. | |
bool | generateKey (AlgorithmType type, Key &key) noexcept override |
Generates a new key. More... | |
bool | generateIV (AlgorithmType type, IV &iv) noexcept override |
Generates a new initialization vector. More... | |
Public Member Functions inherited from alexaClientSDK::acsdkCryptoInterfaces::KeyFactoryInterface | |
virtual | ~KeyFactoryInterface () noexcept=default |
Default destructor. More... | |
Static Public Member Functions | |
static std::shared_ptr< KeyFactoryInterface > | create () noexcept |
Factory method. 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... | |
Key factory implementation based on OpenSSL.
|
staticnoexcept |
Factory method.
|
overridevirtualnoexcept |
Generates a new initialization vector.
Generate random initialization vector.
[in] | type | Algorithm type. |
[out] | iv | Initialization vector. |
Implements alexaClientSDK::acsdkCryptoInterfaces::KeyFactoryInterface.
|
overridevirtualnoexcept |
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 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0