|
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
16 #ifndef ACSDKCRYPTO_PRIVATE_OPENSSLDIGEST_H_
17 #define ACSDKCRYPTO_PRIVATE_OPENSSLDIGEST_H_
21 #include <openssl/evp.h>
27 namespace acsdkCrypto {
52 bool process(DataBlock::const_iterator begin, DataBlock::const_iterator end) noexcept
override;
53 bool processByte(
unsigned char value) noexcept
override;
58 bool processString(
const std::string& value) noexcept
override;
60 bool reset() noexcept
override;
85 #endif // ACSDKCRYPTO_PRIVATE_OPENSSLDIGEST_H_
Digest implementation based on OpenSSL.
Definition: OpenSslDigest.h:37
~OpenSslDigest() noexcept override
Definition: OpenSslDigest.cpp:57
bool reset() noexcept override
Resets the digest.
Definition: OpenSslDigest.cpp:129
bool finalize(DataBlock &digest) noexcept override
Finishes digest computation and produces the result.
Definition: OpenSslDigest.cpp:120
bool processUInt8(uint8_t value) noexcept override
Updates digest with uint8_t value.
Definition: OpenSslDigest.cpp:86
Digest computation interface.
Definition: DigestInterface.h:52
DigestType
Enumeration of all supported digest algorithms.
Definition: DigestType.h:31
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::vector< unsigned char > DataBlock
Data block type. This type represents a byte array.
Definition: DigestInterface.h:56
bool processUInt32(uint32_t value) noexcept override
Updates digest with uint32_t integer value.
Definition: OpenSslDigest.cpp:96
static std::unique_ptr< OpenSslDigest > create(DigestType type) noexcept
Creates a new digest instance.
Definition: OpenSslDigest.cpp:37
bool process(const DataBlock &data_in) noexcept override
Updates digest with a data block.
Definition: OpenSslDigest.cpp:71
bool processUInt64(uint64_t value) noexcept override
Updates digest with uint64_t integer value.
Definition: OpenSslDigest.cpp:104
bool processUInt16(uint16_t value) noexcept override
Updates digest with uint16_t integer value.
Definition: OpenSslDigest.cpp:91
bool processByte(unsigned char value) noexcept override
Updates digest with a byte value.
Definition: OpenSslDigest.cpp:81
bool processString(const std::string &value) noexcept override
Updates digest with string value.
Definition: OpenSslDigest.cpp:116
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0