![]()  | 
  
    AlexaClientSDK
    3.0.0
    
   A cross-platform, modular SDK for interacting with the Alexa Voice Service 
   | 
 
Test cases for Cryptographic Functions Implementation. More...
Classes | |
| class | MapCipher | 
| class | MapDigest | 
Typedefs | |
| typedef std::tuple< AlgorithmType, const OpenSslCryptoCodec::Key &, const std::string &, const std::string & > | TestParams | 
Functions | |
| static std::vector< unsigned char > | hexStringToBytes (const std::string &hex) | 
| static std::string | bytesToHexString (const std::vector< unsigned char > &bytes) | 
| static std::vector< unsigned char > | stringToBytes (const std::string &str) | 
| static std::string | bytesToString (const std::vector< unsigned char > &bytes) | 
| TEST_P (AeAdCodecTest, test_encodeNoInit) | |
| TEST_P (AeAdCodecTest, test_decodeNoInit) | |
| TEST_P (AeAdCodecTest, test_encodeFinalizeNoInit) | |
| TEST_P (AeAdCodecTest, test_decodeFinalizeNoInit) | |
| TEST_P (AeAdCodecTest, test_encodeDecodeEmpty) | |
| TEST_P (AeAdCodecTest, test_encodeDecodeNonEmpty) | |
| TEST_P (AeAdCodecTest, test_encodeAadAfterProcess) | |
| TEST_P (AeAdCodecTest, test_decodeAadAfterProcess) | |
| TEST_P (AeAdCodecTest, test_encodeTestData) | |
| TEST_P (AeAdCodecTest, test_decodeTestData) | |
| TEST_P (AeAdCodecTest, test_decodeStringWrongTag) | |
| TEST_P (AeAdCodecTest, test_decodeStringNoTag) | |
| INSTANTIATE_TEST_CASE_P (OpenSslCryptoCodecAEADTest, AeAdCodecTest, Values(TestParams{AlgorithmType::AES_256_GCM, TEST_KEY256, TEST_TAG256, TEST_CIPHERTEXT256}, TestParams{AlgorithmType::AES_128_GCM, TEST_KEY128, TEST_TAG128, TEST_CIPHERTEXT128})) | |
| static std::vector< unsigned char > | hexStringToBytes (const std::string &hex) | 
| static std::string | bytesToHexString (const std::vector< unsigned char > &bytes) | 
| static std::vector< unsigned char > | stringToBytes (const std::string &str) | 
| static std::string | bytesToString (const std::vector< unsigned char > &bytes) | 
| TEST (OpenSslCryptoCodecTest, test_badAlgorithmEncoder) | |
| TEST (OpenSslCryptoCodecTest, test_badAlgorithmDecoder) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcEncoder) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcPadEncoder) | |
| TEST_P (GenericCodecTest, test_encodeNoInit) | |
| TEST_P (GenericCodecTest, test_decodeNoInit) | |
| TEST_P (GenericCodecTest, test_encodeFinalizeNoInit) | |
| TEST_P (GenericCodecTest, test_decodeFinalizeNoInit) | |
| TEST_P (GenericCodecTest, test_encoderInitBadIV) | |
| TEST_P (GenericCodecTest, test_decoderInitBadIV) | |
| TEST_P (GenericCodecTest, test_encoderInitBadKey) | |
| TEST_P (GenericCodecTest, test_decoderInitBadKey) | |
| TEST_P (GenericCodecTest, test_encodeDecodeEmpty) | |
| TEST_P (GenericCodecTest, test_encodeDecodeNonEmpty) | |
| TEST_P (GenericCodecTest, test_decodeEmptyError) | |
| INSTANTIATE_TEST_CASE_P (OpenSslCryptoCodecTest, GenericCodecTest, Values(AlgorithmType::AES_256_CBC, AlgorithmType::AES_256_CBC_PAD, AlgorithmType::AES_128_CBC, AlgorithmType::AES_128_CBC_PAD)) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcPadEncodeEmpty) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcEncodeZeroIV) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcPadEncodeZeroIV) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcEncodeNonEmptyIV) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcPadEncodeNonEmptyIV) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcPadDecodeEmptyError) | |
| TEST (OpenSslCryptoCodecTest, test_aes256CbcDecodeString) | |
| TEST (OpenSslCryptoFactoryTest, test_createNotNull) | |
| TEST (OpenSslCryptoFactoryTest, test_createTools) | |
| TEST (OpenSslCryptoFactoryTest, test_createUnknownTools) | |
| TEST (OpenSslCryptoFactoryTest, test_encryptDecrypt) | |
| TEST_P (OpenSslDigestCreateFixture, test_create) | |
| INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestCreateFixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, ""), OpenSslDigestTestData(DigestType::MD5, ""))) | |
| TEST (OpenSslDigestTest, test_createInvalid) | |
| TEST_P (OpenSslDigestEmptyFixture, test_emptyDigest) | |
| INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestEmptyFixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_EMPTY_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_EMPTY_HEX))) | |
| TEST_P (OpenSslDigestTestDataFixture, test_digest) | |
| INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestTestDataFixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_TEST_DATA_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_TEST_DATA_HEX))) | |
| TEST_P (OpenSslDigestUInt8Fixture, test_digestUInt8) | |
| INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestUInt8Fixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT8_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT8_HEX))) | |
| TEST_P (OpenSslDigestUInt16Fixture, test_digestUInt16) | |
| INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestUInt16Fixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UNT16_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UNT16_HEX))) | |
| TEST_P (OpenSslDigestUInt32Fixture, test_digestUInt32) | |
| INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestUInt32Fixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT32_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT32_HEX))) | |
| TEST_P (OpenSslDigestUInt64Fixture, test_digestUInt64) | |
| INSTANTIATE_TEST_CASE_P (Parameterized, OpenSslDigestUInt64Fixture, ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT64_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT64_HEX))) | |
| TEST_P (KeyFactoryTest, testCreateUniqueKeys) | |
| TEST_P (KeyFactoryTest, testCreateUniqueIVs) | |
| TEST_F (KeyFactoryTest, test_createKeyUnknown) | |
| TEST_F (KeyFactoryTest, test_createIvUnknown) | |
| INSTANTIATE_TEST_CASE_P (OpenSslKeyFactoryTest, KeyFactoryTest, Values(AlgorithmType::AES_256_CBC, AlgorithmType::AES_256_CBC_PAD, AlgorithmType::AES_128_CBC, AlgorithmType::AES_128_CBC_PAD, AlgorithmType::AES_128_GCM, AlgorithmType::AES_256_GCM)) | |
| TEST_P (MapDigest, testMapDigest) | |
| INSTANTIATE_TEST_CASE_P (OpenSslTypeMapperTest, MapDigest, Values(std::pair< DigestType, const EVP_MD *>{DigestType::SHA_256, EVP_sha256()})) | |
| TEST (OpenSslTypeMapperTest, test_unknownDigest) | |
| TEST_P (MapCipher, testCipherMap) | |
| INSTANTIATE_TEST_CASE_P (OpenSslTypeMapperTest, MapCipher, Values(std::pair< AlgorithmType, const EVP_CIPHER *>{AlgorithmType::AES_256_CBC, EVP_aes_256_cbc()}, std::pair< AlgorithmType, const EVP_CIPHER *>{AlgorithmType::AES_256_CBC_PAD, EVP_aes_256_cbc()}, std::pair< AlgorithmType, const EVP_CIPHER *>{AlgorithmType::AES_128_CBC, EVP_aes_128_cbc()}, std::pair< AlgorithmType, const EVP_CIPHER *>{AlgorithmType::AES_128_CBC_PAD, EVP_aes_128_cbc()})) | |
| TEST (OpenSslTypeMapperTest, test_unknownAlgorithm) | |
Variables | |
| static const std::string | TEST_STR {"The quick brown fox jumps over the lazy dog"} | 
| Test string for encryption and decryption.  More... | |
| static const std::string | TEST_AD {"Authentication data"} | 
| Test authentication data for encryption and decryption.  More... | |
| const OpenSslCryptoCodec::IV | TEST_IV = hexStringToBytes("0EB033BB783123FBA5391E94") | 
| Initialization vector.  More... | |
| const OpenSslCryptoCodec::Key | TEST_KEY128 = hexStringToBytes("3595292D00F5F379C231DD785609C3F1") | 
| AES-128 bit key.  More... | |
| const OpenSslCryptoCodec::Key | TEST_KEY256 | 
| AES-256 bit key.  More... | |
| const std::string | TEST_TAG128 {"0554a0cb6e9d120b041a246c0376b02b"} | 
| MAC for encrypting TEST_STR with TEST_KEY128 and TEST_IV.  More... | |
| const std::string | TEST_TAG256 {"d79fbdd28e70ff74f267301f51c2471e"} | 
| MAC for encrypting TEST_STR with TEST_KEY256 and TEST_IV.  More... | |
| const std::string | TEST_TAGBAD {"00000000000000000000000000000000"} | 
| Random MAC code.  More... | |
| const std::string | TEST_CIPHERTEXT128 | 
| Ciphertext from encrypting TEST_STR with TEST_KEY128 and TEST_IV.  More... | |
| const std::string | TEST_CIPHERTEXT256 | 
| Ciphertext from encrypting TEST_STR with TEST_KEY256 and TEST_IV.  More... | |
| const std::string | TEST_STR2 = "The quick brown fox jumps over the lazy dog....." | 
| const OpenSslCryptoCodec::Key | ZERO_KEY | 
| const OpenSslCryptoCodec::IV | IV0 = hexStringToBytes("00000000000000000000000000000000") | 
| Zero IV.  More... | |
| const OpenSslCryptoCodec::IV | IVR = hexStringToBytes("0123456789abcdef0123456789abcdef") | 
| Random IV.  More... | |
| const OpenSslCryptoCodec::IV | IVB = hexStringToBytes("0123456789") | 
| Bad IV.  More... | |
| const std::string | AES256CBCPAD_CIPHERTEXT_IVR | 
| Test string encrypted with AES-256-CBC-PAD with IVR.  More... | |
| const std::string | AES256CBCPAD_CIPHERTEXT_IV0 | 
| Test string encrypted with AES-256-CBC-PAD with IV0.  More... | |
| const std::string | AES256CBC_CIPHERTEXT_IVR | 
| Test string 2 encrypted with AES-256-CBC with IVR.  More... | |
| const std::string | AES256CBC_CIPHERTEXT_IV0 | 
| Test string 2 encrypted with AES-256-CBC with IV0.  More... | |
| static const char | TEST_STR [] = "The quick brown fox jumps over the lazy dog" | 
| static const std::vector< unsigned char > | TEST_DATA {TEST_STR, TEST_STR + sizeof(TEST_STR) - 1} | 
| static const uint8_t | TEST_UINT8 = 1 | 
| static const uint16_t | TEST_UINT16 = 1 | 
| static const uint32_t | TEST_UINT32 = 1 | 
| static const uint64_t | TEST_UINT64 = 1 | 
| static const std::string | SHA256_EMPTY_HEX {"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"} | 
| static const std::string | SHA256_TEST_DATA_HEX {"d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592"} | 
| static const std::string | SHA256_UINT8_HEX {"4bf5122f344554c53bde2ebb8cd2b7e3d1600ad631c385a5d7cce23c7785459a"} | 
| static const std::string | SHA256_UNT16_HEX {"b413f47d13ee2fe6c845b2ee141af81de858df4ec549a58b7970bb96645bc8d2"} | 
| static const std::string | SHA256_UINT32_HEX {"b40711a88c7039756fb8a73827eabe2c0fe5a0346ca7e0a104adc0fc764f528d"} | 
| static const std::string | SHA256_UINT64_HEX {"cd2662154e6d76b2b2b92e70c0cac3ccf534f9b74eb5b89819ec509083d00a50"} | 
| static const std::string | MD5_EMPTY_HEX {"d41d8cd98f00b204e9800998ecf8427e"} | 
| static const std::string | MD5_TEST_DATA_HEX {"9e107d9d372bb6826bd81d3542a419d6"} | 
| static const std::string | MD5_UINT8_HEX {"55a54008ad1ba589aa210d2629c1df41"} | 
| static const std::string | MD5_UNT16_HEX {"441077cc9e57554dd476bdfb8b8b8102"} | 
| static const std::string | MD5_UINT32_HEX {"f1450306517624a57eafbbf8ed995985"} | 
| static const std::string | MD5_UINT64_HEX {"fa5ad9a8557e5a84cf23e52d3d3adf77"} | 
| static constexpr DigestType | BAD_DIGEST_TYPE = static_cast<DigestType>(0) | 
| static constexpr size_t | AES_256_KEY_SIZE = 32u | 
| static constexpr size_t | AES_128_KEY_SIZE = 16u | 
| static constexpr size_t | AES_CBC_IV_SIZE = 16u | 
| static constexpr size_t | AES_GCM_IV_SIZE = 12u | 
| static constexpr AlgorithmType | BAD_ALGORITHM_TYPE = static_cast<AlgorithmType>(0) | 
Test cases for Cryptographic Functions Implementation.
| typedef std::tuple<AlgorithmType, const OpenSslCryptoCodec::Key&, const std::string&, const std::string&> alexaClientSDK::crypto::test::TestParams | 
Test parameter type.
Tests take algorithm type, key, tag, and ciphertext as input.
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P | ( | OpenSslTypeMapperTest | , | 
| MapDigest | , | ||
| Values(std::pair< DigestType, const EVP_MD * >{DigestType::SHA_256, EVP_sha256()}) | |||
| ) | 
| alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P | ( | OpenSslTypeMapperTest | , | 
| MapCipher | , | ||
| Values(std::pair< AlgorithmType, const EVP_CIPHER * >{AlgorithmType::AES_256_CBC, EVP_aes_256_cbc()}, std::pair< AlgorithmType, const EVP_CIPHER * >{AlgorithmType::AES_256_CBC_PAD, EVP_aes_256_cbc()}, std::pair< AlgorithmType, const EVP_CIPHER * >{AlgorithmType::AES_128_CBC, EVP_aes_128_cbc()}, std::pair< AlgorithmType, const EVP_CIPHER * >{AlgorithmType::AES_128_CBC_PAD, EVP_aes_128_cbc()}) | |||
| ) | 
| alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P | ( | Parameterized | , | 
| OpenSslDigestCreateFixture | , | ||
| ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, ""), OpenSslDigestTestData(DigestType::MD5, "")) | |||
| ) | 
| alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P | ( | OpenSslKeyFactoryTest | , | 
| KeyFactoryTest | , | ||
| Values(AlgorithmType::AES_256_CBC, AlgorithmType::AES_256_CBC_PAD, AlgorithmType::AES_128_CBC, AlgorithmType::AES_128_CBC_PAD, AlgorithmType::AES_128_GCM, AlgorithmType::AES_256_GCM) | |||
| ) | 
| 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::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::INSTANTIATE_TEST_CASE_P | ( | Parameterized | , | 
| OpenSslDigestUInt8Fixture | , | ||
| ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT8_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT8_HEX)) | |||
| ) | 
| 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::INSTANTIATE_TEST_CASE_P | ( | Parameterized | , | 
| OpenSslDigestUInt32Fixture | , | ||
| ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT32_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT32_HEX)) | |||
| ) | 
| alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P | ( | Parameterized | , | 
| OpenSslDigestUInt64Fixture | , | ||
| ::testing::Values(OpenSslDigestTestData(DigestType::SHA_256, SHA256_UINT64_HEX), OpenSslDigestTestData(DigestType::MD5, MD5_UINT64_HEX)) | |||
| ) | 
| alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P | ( | OpenSslCryptoCodecTest | , | 
| GenericCodecTest | , | ||
| Values(AlgorithmType::AES_256_CBC, AlgorithmType::AES_256_CBC_PAD, AlgorithmType::AES_128_CBC, AlgorithmType::AES_128_CBC_PAD) | |||
| ) | 
| alexaClientSDK::crypto::test::INSTANTIATE_TEST_CASE_P | ( | OpenSslCryptoCodecAEADTest | , | 
| AeAdCodecTest | , | ||
| Values(TestParams{AlgorithmType::AES_256_GCM, TEST_KEY256, TEST_TAG256, TEST_CIPHERTEXT256}, TestParams{AlgorithmType::AES_128_GCM, TEST_KEY128, TEST_TAG128, TEST_CIPHERTEXT128}) | |||
| ) | 
      
  | 
  static | 
      
  | 
  static | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslTypeMapperTest | , | 
| test_unknownDigest | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoFactoryTest | , | 
| test_createNotNull | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoFactoryTest | , | 
| test_createTools | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslTypeMapperTest | , | 
| test_unknownAlgorithm | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoFactoryTest | , | 
| test_createUnknownTools | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_badAlgorithmEncoder | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoFactoryTest | , | 
| test_encryptDecrypt | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_badAlgorithmDecoder | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcEncoder | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslDigestTest | , | 
| test_createInvalid | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcPadEncoder | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcPadEncodeEmpty | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcEncodeZeroIV | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcPadEncodeZeroIV | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcEncodeNonEmptyIV | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcPadEncodeNonEmptyIV | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcPadDecodeEmptyError | |||
| ) | 
| alexaClientSDK::crypto::test::TEST | ( | OpenSslCryptoCodecTest | , | 
| test_aes256CbcDecodeString | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_F | ( | KeyFactoryTest | , | 
| test_createKeyUnknown | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_F | ( | KeyFactoryTest | , | 
| test_createIvUnknown | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | MapDigest | , | 
| testMapDigest | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | KeyFactoryTest | , | 
| testCreateUniqueKeys | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | MapCipher | , | 
| testCipherMap | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | KeyFactoryTest | , | 
| testCreateUniqueIVs | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | OpenSslDigestCreateFixture | , | 
| test_create | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | OpenSslDigestEmptyFixture | , | 
| test_emptyDigest | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_encodeNoInit | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_encodeNoInit | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_decodeNoInit | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_decodeNoInit | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | OpenSslDigestTestDataFixture | , | 
| test_digest | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_encodeFinalizeNoInit | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_encodeFinalizeNoInit | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_decodeFinalizeNoInit | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_decodeFinalizeNoInit | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_encoderInitBadIV | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_encodeDecodeEmpty | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | OpenSslDigestUInt8Fixture | , | 
| test_digestUInt8 | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_decoderInitBadIV | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_encoderInitBadKey | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_decoderInitBadKey | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | OpenSslDigestUInt16Fixture | , | 
| test_digestUInt16 | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_encodeDecodeEmpty | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_encodeDecodeNonEmpty | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | OpenSslDigestUInt32Fixture | , | 
| test_digestUInt32 | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_encodeDecodeNonEmpty | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_encodeAadAfterProcess | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | OpenSslDigestUInt64Fixture | , | 
| test_digestUInt64 | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_decodeAadAfterProcess | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | GenericCodecTest | , | 
| test_decodeEmptyError | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_encodeTestData | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_decodeTestData | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_decodeStringWrongTag | |||
| ) | 
| alexaClientSDK::crypto::test::TEST_P | ( | AeAdCodecTest | , | 
| test_decodeStringNoTag | |||
| ) | 
| const std::string alexaClientSDK::crypto::test::AES256CBC_CIPHERTEXT_IV0 | 
Test string 2 encrypted with AES-256-CBC with IV0.
| const std::string alexaClientSDK::crypto::test::AES256CBC_CIPHERTEXT_IVR | 
Test string 2 encrypted with AES-256-CBC with IVR.
| const std::string alexaClientSDK::crypto::test::AES256CBCPAD_CIPHERTEXT_IV0 | 
Test string encrypted with AES-256-CBC-PAD with IV0.
| const std::string alexaClientSDK::crypto::test::AES256CBCPAD_CIPHERTEXT_IVR | 
Test string encrypted with AES-256-CBC-PAD with IVR.
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| const OpenSslCryptoCodec::IV alexaClientSDK::crypto::test::IV0 = hexStringToBytes("00000000000000000000000000000000") | 
Zero IV.
| const OpenSslCryptoCodec::IV alexaClientSDK::crypto::test::IVB = hexStringToBytes("0123456789") | 
Bad IV.
| const OpenSslCryptoCodec::IV alexaClientSDK::crypto::test::IVR = hexStringToBytes("0123456789abcdef0123456789abcdef") | 
Random IV.
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
Test authentication data for encryption and decryption.
| const std::string alexaClientSDK::crypto::test::TEST_CIPHERTEXT128 | 
Ciphertext from encrypting TEST_STR with TEST_KEY128 and TEST_IV.
| const std::string alexaClientSDK::crypto::test::TEST_CIPHERTEXT256 | 
Ciphertext from encrypting TEST_STR with TEST_KEY256 and TEST_IV.
      
  | 
  static | 
| const OpenSslCryptoCodec::IV alexaClientSDK::crypto::test::TEST_IV = hexStringToBytes("0EB033BB783123FBA5391E94") | 
Initialization vector.
| const OpenSslCryptoCodec::Key alexaClientSDK::crypto::test::TEST_KEY128 = hexStringToBytes("3595292D00F5F379C231DD785609C3F1") | 
AES-128 bit key.
| const OpenSslCryptoCodec::Key alexaClientSDK::crypto::test::TEST_KEY256 | 
AES-256 bit key.
      
  | 
  static | 
      
  | 
  static | 
Test string for encryption and decryption.
| const std::string alexaClientSDK::crypto::test::TEST_STR2 = "The quick brown fox jumps over the lazy dog....." | 
| const std::string alexaClientSDK::crypto::test::TEST_TAG128 {"0554a0cb6e9d120b041a246c0376b02b"} | 
MAC for encrypting TEST_STR with TEST_KEY128 and TEST_IV.
| const std::string alexaClientSDK::crypto::test::TEST_TAG256 {"d79fbdd28e70ff74f267301f51c2471e"} | 
MAC for encrypting TEST_STR with TEST_KEY256 and TEST_IV.
| const std::string alexaClientSDK::crypto::test::TEST_TAGBAD {"00000000000000000000000000000000"} | 
Random MAC code.
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| const OpenSslCryptoCodec::Key alexaClientSDK::crypto::test::ZERO_KEY | 
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0