AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
ContentDecrypterTest.cpp File Reference
#include <string>
#include <gtest/gtest.h>
#include "PlaylistParser/ContentDecrypter.h"
Include dependency graph for ContentDecrypterTest.cpp:

Classes

class  alexaClientSDK::playlistParser::test::ContentDecrypterTest
 Test class for ContentDecrypter class. More...
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::playlistParser
 
 alexaClientSDK::playlistParser::test
 

Functions

static const ByteVector alexaClientSDK::playlistParser::test::KEY (16, 0x61)
 Test key: aaaaaaaaaaaaaaaa. More...
 
 alexaClientSDK::playlistParser::test::TEST_F (ContentDecrypterTest, test_unsupportedEncryption)
 
 alexaClientSDK::playlistParser::test::TEST_F (ContentDecrypterTest, test_invalidKeyEncryption)
 
 alexaClientSDK::playlistParser::test::TEST_F (ContentDecrypterTest, test_invalidIVEncryption)
 
 alexaClientSDK::playlistParser::test::TEST_F (ContentDecrypterTest, test_aESDecryption)
 
 alexaClientSDK::playlistParser::test::TEST_F (ContentDecrypterTest, test_convertIVNullByteArray)
 
 alexaClientSDK::playlistParser::test::TEST_F (ContentDecrypterTest, test_convertIVIncorrectLength)
 
 alexaClientSDK::playlistParser::test::TEST_F (ContentDecrypterTest, test_convertIVNotHex)
 
 alexaClientSDK::playlistParser::test::TEST_F (ContentDecrypterTest, test_convertIV)
 

Variables

static const std::string alexaClientSDK::playlistParser::test::DECRYPTED_STRING = "HelloWorld!\n"
 Excepted decrypted content. More...
 
static const ByteVector alexaClientSDK::playlistParser::test::AES_ENCRYPTED_CONTENT
 HelloWorld!
encrypted with below key and iv. More...
 
static const std::string alexaClientSDK::playlistParser::test::HEX_IV = "0x41414141414141414141414141414141"
 Test initialization vector: AAAAAAAAAAAAAAAA. More...
 
static const auto alexaClientSDK::playlistParser::test::AES_ENCRYPTION_INFO
 AES-128 EncryptionInfo with above key and iv. More...
 

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0