AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Class to identify key object in HSM. More...
#include <PKCS11KeyDescriptor.h>
Public Member Functions | |
PKCS11KeyDescriptor (PKCS11KeyDescriptor &&arg) noexcept=default | |
Default move constructor. More... | |
PKCS11KeyDescriptor (const std::string &objectLabel, acsdkCryptoInterfaces::AlgorithmType algorithmType) noexcept | |
Create object with alias and encryption algorithm. More... | |
PKCS11KeyDescriptor (const std::string &objectLabel, CK_KEY_TYPE keyType, CK_ULONG keyLen) noexcept | |
Create object with given parameters. More... | |
Static Public Member Functions | |
static bool | mapAlgorithmToKeyParams (acsdkCryptoInterfaces::AlgorithmType algorithmType, CK_KEY_TYPE &keyType, CK_ULONG &keyLen) |
Maps algorithm type into key type and length. More... | |
Public Attributes | |
std::string | objectLabel |
Key object label. More... | |
CK_KEY_TYPE | keyType |
Key object type. More... | |
CK_ULONG | keyLen |
Key length in bytes. More... | |
Class to identify key object in HSM.
HSM objects do not have unique parameters other than object ID. So several HSM objects may have the same label, but different types or the same label and type, and different size.
This object provides criteria for looking up key objects in HSM.
|
defaultnoexcept |
Default move constructor.
[in] | arg | Object to move values from. |
|
noexcept |
Create object with alias and encryption algorithm.
[in] | objectLabel | Object label. |
[in] | algorithmType | Algorithm type. |
|
noexcept |
Create object with given parameters.
[in] | objectLabel | Object label. |
[in] | keyType | PKCS#11 key type. |
[in] | keyLen | PKCS#11 key size. |
|
static |
Maps algorithm type into key type and length.
[in] | algorithmType | Algorithm type. |
[out] | keyType | Key type |
[out] | keyLen | Key length. |
CK_ULONG alexaClientSDK::acsdkPkcs11::PKCS11KeyDescriptor::keyLen |
Key length in bytes.
CK_KEY_TYPE alexaClientSDK::acsdkPkcs11::PKCS11KeyDescriptor::keyType |
Key object type.
AES ciphers use CKK_AES. HMAC-SHA-256 digest may use CKK_GENERIC_SECRET or CKK_SHA256_HMAC.
std::string alexaClientSDK::acsdkPkcs11::PKCS11KeyDescriptor::objectLabel |
Key object label.
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0