AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Static Public Member Functions | List of all members
alexaClientSDK::acsdkCrypto::OpenSslTypeMapper Class Reference

Helper class to map SDK types into types from OpenSSL EVP API. More...

#include <OpenSslTypeMapper.h>

Static Public Member Functions

static const EVP_CIPHER * mapAlgorithmToEvpCipher (AlgorithmType type) noexcept
 Find OpenSSL codec implementation. More...
 
static bool mapAlgorithmToPadding (AlgorithmType type, PaddingMode &mode) noexcept
 Determine padding mode for an encryption algorithm,. More...
 
static bool mapAlgorithmToTagSize (AlgorithmType type, size_t &tagSize) noexcept
 Maps algorithm to tag size for AEAD algorithms. More...
 
static const EVP_MD * mapDigestToEvpMd (DigestType type) noexcept
 Find OpenSSL digest implementation. More...
 

Detailed Description

Helper class to map SDK types into types from OpenSSL EVP API.

Member Function Documentation

◆ mapAlgorithmToEvpCipher()

const EVP_CIPHER * alexaClientSDK::acsdkCrypto::OpenSslTypeMapper::mapAlgorithmToEvpCipher ( AlgorithmType  type)
staticnoexcept

Find OpenSSL codec implementation.

Finds OpenSSL codec implementation for a given encryption algorithm.

Parameters
[in]typeEncryption algorithm.
Returns
OpenSSL algorithm reference or nullptr on error.

◆ mapAlgorithmToPadding()

bool alexaClientSDK::acsdkCrypto::OpenSslTypeMapper::mapAlgorithmToPadding ( AlgorithmType  type,
PaddingMode mode 
)
staticnoexcept

Determine padding mode for an encryption algorithm,.

Finds OpenSSL padding mode for a given encryption algorithm.

Parameters
[in]typeEncryption Algorithm.
[out]modePadding mode.
Returns
Boolean indicating success.

◆ mapAlgorithmToTagSize()

bool alexaClientSDK::acsdkCrypto::OpenSslTypeMapper::mapAlgorithmToTagSize ( AlgorithmType  type,
size_t &  tagSize 
)
staticnoexcept

Maps algorithm to tag size for AEAD algorithms.

Parameters
[in]typeEncryption algorithm.
[out]tagSizeTag size or 0 if algorithm doesn't support tags.
Returns
Boolean indicating success.

◆ mapDigestToEvpMd()

const EVP_MD * alexaClientSDK::acsdkCrypto::OpenSslTypeMapper::mapDigestToEvpMd ( DigestType  type)
staticnoexcept

Find OpenSSL digest implementation.

Finds OpenSSL digest implementation for a given digest algorithm.

Parameters
[in]typeDigest algorithm.
Returns
OpenSSL algorithm reference or nullptr on error.

The documentation for this class was generated from the following files:

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0