AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <gtest/gtest.h>
#include <acsdk/CodecUtils/Hex.h>
#include <acsdk/Crypto/private/OpenSslDigest.h>
Namespaces | |
alexaClientSDK | |
Whether or not curl logs should be emitted. | |
alexaClientSDK::crypto | |
OpenSSL-based implementation. | |
alexaClientSDK::crypto::test | |
Test cases for Cryptographic Functions Implementation. | |
Functions | |
alexaClientSDK::crypto::test::TEST_P (OpenSslDigestCreateFixture, test_create) | |
alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestCreateFixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, ""), OpenSslDigestTestData(DigestType::MD5, ""))) | |
alexaClientSDK::crypto::test::TEST (OpenSslDigestTest, test_createInvalid) | |
alexaClientSDK::crypto::test::TEST_P (OpenSslDigestEmptyFixture, test_emptyDigest) | |
alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestEmptyFixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_EMPTY_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_EMPTY_HEX))) | |
alexaClientSDK::crypto::test::TEST_P (OpenSslDigestTestDataFixture, test_digest) | |
alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestTestDataFixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_TEST_DATA_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_TEST_DATA_HEX))) | |
alexaClientSDK::crypto::test::TEST_P (OpenSslDigestUInt8Fixture, test_digestUInt8) | |
alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestUInt8Fixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT8_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT8_HEX))) | |
alexaClientSDK::crypto::test::TEST_P (OpenSslDigestUInt16Fixture, test_digestUInt16) | |
alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestUInt16Fixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UNT16_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UNT16_HEX))) | |
alexaClientSDK::crypto::test::TEST_P (OpenSslDigestUInt32Fixture, test_digestUInt32) | |
alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestUInt32Fixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT32_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT32_HEX))) | |
alexaClientSDK::crypto::test::TEST_P (OpenSslDigestUInt64Fixture, test_digestUInt64) | |
alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestUInt64Fixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT64_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT64_HEX))) | |
Variables | |
static const char | alexaClientSDK::crypto::test::TEST_STR [] = "The quick brown fox jumps over the lazy dog" |
static const std::vector< unsigned char > | alexaClientSDK::crypto::test::TEST_DATA {TEST_STR, TEST_STR + sizeof(TEST_STR) - 1} |
static const uint8_t | alexaClientSDK::crypto::test::TEST_UINT8 = 1 |
static const uint16_t | alexaClientSDK::crypto::test::TEST_UINT16 = 1 |
static const uint32_t | alexaClientSDK::crypto::test::TEST_UINT32 = 1 |
static const uint64_t | alexaClientSDK::crypto::test::TEST_UINT64 = 1 |
static const std::string | alexaClientSDK::crypto::test::SHA256_EMPTY_HEX {"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"} |
static const std::string | alexaClientSDK::crypto::test::SHA256_TEST_DATA_HEX {"d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592"} |
static const std::string | alexaClientSDK::crypto::test::SHA256_UINT8_HEX {"4bf5122f344554c53bde2ebb8cd2b7e3d1600ad631c385a5d7cce23c7785459a"} |
static const std::string | alexaClientSDK::crypto::test::SHA256_UNT16_HEX {"b413f47d13ee2fe6c845b2ee141af81de858df4ec549a58b7970bb96645bc8d2"} |
static const std::string | alexaClientSDK::crypto::test::SHA256_UINT32_HEX {"b40711a88c7039756fb8a73827eabe2c0fe5a0346ca7e0a104adc0fc764f528d"} |
static const std::string | alexaClientSDK::crypto::test::SHA256_UINT64_HEX {"cd2662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a50"} |
static const std::string | alexaClientSDK::crypto::test::MD5_EMPTY_HEX {"d41d8cd98f00b204e9800998ecf8427e"} |
static const std::string | alexaClientSDK::crypto::test::MD5_TEST_DATA_HEX {"9e107d9d372bb6826bd81d3542a419d6"} |
static const std::string | alexaClientSDK::crypto::test::MD5_UINT8_HEX {"55a54008ad1ba589aa210d2629c1df41"} |
static const std::string | alexaClientSDK::crypto::test::MD5_UNT16_HEX {"441077cc9e57554dd476bdfb8b8b8102"} |
static const std::string | alexaClientSDK::crypto::test::MD5_UINT32_HEX {"f1450306517624a57eafbbf8ed995985"} |
static const std::string | alexaClientSDK::crypto::test::MD5_UINT64_HEX {"fa5ad9a8557e5a84cf23e52d3d3adf77"} |
static constexpr DigestType | alexaClientSDK::crypto::test::BAD_DIGEST_TYPE = static_cast<DigestType>(0) |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0