// Copyright 2020 Google LLC. All Rights Reserved. #ifndef WHITEBOX_API_TEST_DATA_H_ #define WHITEBOX_API_TEST_DATA_H_ #include #include // Returns init data that the aead white-box will accept. std::vector GetValidAeadInitData(); // Returns init data that the aead white-box will reject. std::vector GetInvalidAeadInitData(); // Returns valid init_data needed by the license whitebox tests when calling // WB_License_Create(). std::vector GetLicenseInitData(); // Returns the matching public key for the data returned by // GetLicenseInitData(). The format is a DER encoded PKCS#1 RSAPublicKey. std::vector GetMatchingLicensePublicKey(); // Returns invalid non-empty init_data that should be rejected by // WB_License_Create(). std::vector GetInvalidLicenseInitData(); #endif // WHITEBOX_API_TEST_DATA_H_