AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
ASN.1 Codec API for Encryption Key Property Encoding. More...
#include <EncryptionKeyPropertyCodec.h>
Static Public Member Functions | |
static bool | encode (const std::shared_ptr< acsdkCryptoInterfaces::CryptoFactoryInterface > &cryptoFactory, const std::string &mainKeyAlias, const KeyChecksum &mainKeyChecksum, alexaClientSDK::acsdkCryptoInterfaces::AlgorithmType dataKeyAlgorithm, const IV &dataKeyIV, const DataBlock &dataKeyCiphertext, const Tag &dataKeyTag, alexaClientSDK::acsdkCryptoInterfaces::AlgorithmType dataAlgorithm, Bytes &derEncoded) noexcept |
Produces encryption key property in DER form. More... | |
static bool | decode (const std::shared_ptr< acsdkCryptoInterfaces::CryptoFactoryInterface > &cryptoFactory, const Bytes &derEncoded, std::string &mainKeyAlias, KeyChecksum &mainKeyChecksum, alexaClientSDK::acsdkCryptoInterfaces::AlgorithmType &dataKeyAlgorithm, IV &dataKeyIV, DataBlock &dataKeyCiphertext, Tag &dataKeyTag, alexaClientSDK::acsdkCryptoInterfaces::AlgorithmType &dataAlgorithm, DataBlock &digestDecoded, DataBlock &digestActual) noexcept |
Decode encryption key property. More... | |
ASN.1 Codec API for Encryption Key Property Encoding.
This class provides top-level functions to encode encryption key property into DER format or decode it from DER format.
typedef acsdkPropertiesInterfaces::PropertiesInterface::Bytes alexaClientSDK::acsdkProperties::EncryptionKeyPropertyCodec::Bytes |
typedef acsdkCryptoInterfaces::KeyStoreInterface::DataBlock alexaClientSDK::acsdkProperties::EncryptionKeyPropertyCodec::DataBlock |
typedef acsdkCryptoInterfaces::KeyStoreInterface::IV alexaClientSDK::acsdkProperties::EncryptionKeyPropertyCodec::IV |
typedef acsdkCryptoInterfaces::KeyStoreInterface::KeyChecksum alexaClientSDK::acsdkProperties::EncryptionKeyPropertyCodec::KeyChecksum |
typedef acsdkCryptoInterfaces::CryptoCodecInterface::Tag alexaClientSDK::acsdkProperties::EncryptionKeyPropertyCodec::Tag |
|
staticnoexcept |
Decode encryption key property.
This method parses DER input and extracts encoding fields. Method also computes actual digest for digest verification.
[in] | cryptoFactory | Crypto API factory. |
[in] | derEncoded | DER-encoded properties. |
[out] | mainKeyAlias | Parsed main key alias. |
[out] | mainKeyChecksum | Parsed main key checksum. |
[out] | dataKeyAlgorithm | Parsed algorithm for data key unwrapping. |
[out] | dataKeyIV | Parsed initialization vector for data key unwrapping. |
[out] | dataKeyCiphertext | Parsed wrapped data key. |
[out] | dataKeyTag | Parsed data key tag. |
[out] | dataAlgorithm | Parsed algorithm to encrypt/decrypt data. |
[out] | digestDecoded | Parsed digest. |
[out] | digestActual | Actual (recomputed) digest. |
|
staticnoexcept |
Produces encryption key property in DER form.
[in] | cryptoFactory | Crypto API factory. |
[in] | mainKeyAlias | Main key alias. |
[in] | mainKeyChecksum | Main key checksum. |
[in] | dataKeyAlgorithm | Algorithm used to wrap data key. |
[in] | dataKeyIV | Initialization vector used to wrap data key. |
[in] | dataKeyCiphertext | Wrapped data key. |
[in] | dataKeyTag | Data key tag. |
[in] | dataAlgorithm | Algorithm for data encryption. |
[out] | derEncoded | Encoded properties in DER format. |
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0