// Copyright 2014 Google LLC. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd // // RSA test data generated using fake_prng for purposes of testing. #ifndef PACKAGER_MEDIA_BASE_RSA_TEST_DATA_H_ #define PACKAGER_MEDIA_BASE_RSA_TEST_DATA_H_ #include #include "packager/macros.h" namespace shaka { namespace media { /// Self generated test vector to verify algorithm stability. struct RsaTestSet { RsaTestSet(); ~RsaTestSet(); std::string public_key; std::string private_key; std::string test_message; std::string encrypted_message; std::string signature; }; /// Collection of test sets. class RsaTestData { public: RsaTestData(); ~RsaTestData(); const RsaTestSet& test_set_3072_bits() const { return test_set_3072_bits_; } const RsaTestSet& test_set_2048_bits() const { return test_set_2048_bits_; } private: RsaTestSet test_set_3072_bits_; RsaTestSet test_set_2048_bits_; DISALLOW_COPY_AND_ASSIGN(RsaTestData); }; } // namespace media } // namespace shaka #endif // PACKAGER_MEDIA_BASE_RSA_TEST_DATA_H_