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::OpenSslCryptoFactory Class Reference

Cryptography factory implementation based on OpenSSL. More...

#include <OpenSslCryptoFactory.h>

Inheritance diagram for alexaClientSDK::acsdkCrypto::OpenSslCryptoFactory:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkCrypto::OpenSslCryptoFactory:
Collaboration graph
[legend]

Public Member Functions

CryptoCodecInterface methods.
std::unique_ptr< alexaClientSDK::acsdkCryptoInterfaces::CryptoCodecInterfacecreateEncoder (alexaClientSDK::acsdkCryptoInterfaces::AlgorithmType type) noexcept override
 Create new encoder cipher. More...
 
std::unique_ptr< alexaClientSDK::acsdkCryptoInterfaces::CryptoCodecInterfacecreateDecoder (alexaClientSDK::acsdkCryptoInterfaces::AlgorithmType type) noexcept override
 Create new decodec cipher. More...
 
std::unique_ptr< alexaClientSDK::acsdkCryptoInterfaces::DigestInterfacecreateDigest (alexaClientSDK::acsdkCryptoInterfaces::DigestType type) noexcept override
 Create new hash function. More...
 
std::shared_ptr< alexaClientSDK::acsdkCryptoInterfaces::KeyFactoryInterfacegetKeyFactory () noexcept override
 Provides key factory. More...
 
- Public Member Functions inherited from alexaClientSDK::acsdkCryptoInterfaces::CryptoFactoryInterface
virtual ~CryptoFactoryInterface () noexcept=default
 Default destructor. More...
 

Static Public Member Functions

static std::shared_ptr< CryptoFactoryInterfacecreate () noexcept
 Initializes OpenSSL library and returns factory interface. More...
 

Detailed Description

Cryptography factory implementation based on OpenSSL.

Member Function Documentation

◆ create()

std::shared_ptr< CryptoFactoryInterface > alexaClientSDK::acsdkCrypto::OpenSslCryptoFactory::create ( )
staticnoexcept

Initializes OpenSSL library and returns factory interface.

Returns
Factory reference or nullptr on error.

◆ createDecoder()

std::unique_ptr< CryptoCodecInterface > alexaClientSDK::acsdkCrypto::OpenSslCryptoFactory::createDecoder ( alexaClientSDK::acsdkCryptoInterfaces::AlgorithmType  type)
overridevirtualnoexcept

Create new decodec cipher.

Creates a new decoder instance for a given algorithm type to decrypt data.

Parameters
[in]typeDecryption algorithm type.
Returns
Decoder reference or nullptr on error.

Implements alexaClientSDK::acsdkCryptoInterfaces::CryptoFactoryInterface.

◆ createDigest()

std::unique_ptr< DigestInterface > alexaClientSDK::acsdkCrypto::OpenSslCryptoFactory::createDigest ( alexaClientSDK::acsdkCryptoInterfaces::DigestType  type)
overridevirtualnoexcept

Create new hash function.

Creates a new digest instance for a given digest type.

Parameters
[in]typeDigest type.
Returns
Digest reference or nullptr on error.

Implements alexaClientSDK::acsdkCryptoInterfaces::CryptoFactoryInterface.

◆ createEncoder()

std::unique_ptr< CryptoCodecInterface > alexaClientSDK::acsdkCrypto::OpenSslCryptoFactory::createEncoder ( alexaClientSDK::acsdkCryptoInterfaces::AlgorithmType  type)
overridevirtualnoexcept

Create new encoder cipher.

Creates a new encoder instance for a given algorithm type to encrypt data.

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

Implements alexaClientSDK::acsdkCryptoInterfaces::CryptoFactoryInterface.

◆ getKeyFactory()

std::shared_ptr< KeyFactoryInterface > alexaClientSDK::acsdkCrypto::OpenSslCryptoFactory::getKeyFactory ( )
overridevirtualnoexcept

Provides key factory.

Provides a key factory interface. Key factory allows creation of random keys and initialization vectors.

Returns
Key factory reference or nullptr on error.

Implements alexaClientSDK::acsdkCryptoInterfaces::CryptoFactoryInterface.


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