AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
ASN.1 Encoder/Decoder for encrypted property value. More...
#include <DataPropertyCodec.h>
Public Types | |
typedef acsdkCryptoInterfaces::CryptoCodecInterface::IV | IV |
Initialization vector data type. More... | |
typedef acsdkCryptoInterfaces::CryptoCodecInterface::DataBlock | DataBlock |
Byte vector data type. More... | |
typedef acsdkCryptoInterfaces::CryptoCodecInterface::Tag | Tag |
Tag data type. More... | |
Static Public Member Functions | |
static bool | encode (const std::shared_ptr< acsdkCryptoInterfaces::CryptoFactoryInterface > &cryptoFactory, const IV &dataIV, const DataBlock &dataCiphertext, const Tag &dataTag, DataBlock &derEncoded) noexcept |
Encodes encrypted property value into DER form. More... | |
static bool | decode (const std::shared_ptr< acsdkCryptoInterfaces::CryptoFactoryInterface > &cryptoFactory, const std::vector< uint8_t > &derEncoded, IV &dataIV, DataBlock &dataCiphertext, Tag &dataTag, DataBlock &digestDecoded, DataBlock &digestActual) noexcept |
Decodes encrypted property value from DER form. More... | |
ASN.1 Encoder/Decoder for encrypted property value.
This class provides top-level functions to encode encryption property value into DER format or decode it from DER format.
typedef acsdkCryptoInterfaces::CryptoCodecInterface::DataBlock alexaClientSDK::acsdkProperties::DataPropertyCodec::DataBlock |
Byte vector data type.
typedef acsdkCryptoInterfaces::CryptoCodecInterface::IV alexaClientSDK::acsdkProperties::DataPropertyCodec::IV |
Initialization vector data type.
typedef acsdkCryptoInterfaces::CryptoCodecInterface::Tag alexaClientSDK::acsdkProperties::DataPropertyCodec::Tag |
Tag data type.
|
staticnoexcept |
Decodes encrypted property value from DER form.
[in] | cryptoFactory | Crypto factory for digest operations. Must not be nullptr. |
[in] | derEncoded | DER-encoded property value. |
[out] | dataIV | Reference to container for initialization vector of encrypted data. |
[out] | dataCiphertext | Reference to container for encrypted data. |
[out] | dataTag | Reference to container for data tag. |
[out] | digestDecoded | Reference to container for decoded digest (from the DER message). |
[out] | digestActual | Reference to container for actual (recomputed) digest. |
|
staticnoexcept |
Encodes encrypted property value into DER form.
[in] | cryptoFactory | Crypto factory for digest operations. Must not be nullptr. |
[in] | dataIV | Initialization vector for encrypted data. |
[in] | dataCiphertext | Encrypted data. |
[in] | dataTag | Data tag. |
[out] | derEncoded | Reference to output data buffer. |
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0