Merge oemcrypto fuzz tests to sc-widevine-release branch
Merge from Widevine repo of http://go/wvgerrit/131308 These tests will be released on the sc-widevine-release branch, but not as part of the initial Android S release. Change-Id: I6dae85fe72c6d09759e43c5e40bbc0776b57b089
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
#ifndef OEMCRYPTO_FUZZ_STRUCTS_H_
|
||||
#define OEMCRYPTO_FUZZ_STRUCTS_H_
|
||||
|
||||
#include "core_message_types.h"
|
||||
#include "odk.h"
|
||||
|
||||
namespace wvoec {
|
||||
struct OEMCrypto_Renewal_Response_Fuzz {
|
||||
// Timer limits in core license response needs to be fuzzed as load renewal
|
||||
@@ -37,6 +40,34 @@ struct OEMCrypto_Decrypt_Cenc_Fuzz {
|
||||
// Sample data and subsample data are of variable length and not included in
|
||||
// this structure.
|
||||
};
|
||||
|
||||
struct OEMCrypto_Generic_Api_Fuzz {
|
||||
// Corpus format is as below, let | be separator.
|
||||
// cipher_mode + algorithm + iv | buffer with actual data
|
||||
OEMCryptoCipherMode cipher_mode;
|
||||
OEMCrypto_Algorithm algorithm;
|
||||
// iv and buffer data are of variable length and not included in
|
||||
// this structure.
|
||||
};
|
||||
|
||||
struct OEMCrypto_Generic_Verify_Fuzz {
|
||||
// Corpus format is as belowr.
|
||||
// cipher_mode + algorithm + signature_length + buffer with actual data
|
||||
OEMCryptoCipherMode cipher_mode;
|
||||
OEMCrypto_Algorithm algorithm;
|
||||
size_t signature_length;
|
||||
// Buffer data is of variable length and not included in
|
||||
// this structure.
|
||||
};
|
||||
|
||||
struct OEMCrypto_Generate_RSA_Signature_Fuzz {
|
||||
// Corpus format is as below, let | be separator.
|
||||
// padding_scheme + signature_length + input buffer
|
||||
RSA_Padding_Scheme padding_scheme;
|
||||
size_t signature_length;
|
||||
// input buffer data is of variable length and not included in
|
||||
// this structure.
|
||||
};
|
||||
} // namespace wvoec
|
||||
|
||||
#endif // OEMCRYPTO_FUZZ_STRUCTS_H_
|
||||
Reference in New Issue
Block a user