Helper class to map SDK types into types from OpenSSL EVP API.
More...
#include <OpenSslTypeMapper.h>
Helper class to map SDK types into types from OpenSSL EVP API.
◆ 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] | type | Encryption algorithm. |
- Returns
- OpenSSL algorithm reference or nullptr on error.
◆ mapAlgorithmToPadding()
Determine padding mode for an encryption algorithm,.
Finds OpenSSL padding mode for a given encryption algorithm.
- Parameters
-
[in] | type | Encryption Algorithm. |
[out] | mode | Padding 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] | type | Encryption algorithm. |
[out] | tagSize | Tag 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] | type | Digest 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