Added content_decryption_fuzzer

exec/s: 10
Test: ./content_decryption_fuzzer
Bug: 265234582

Change-Id: If8132ed6c5db5794a444c03e7f37682674f26148
This commit is contained in:
Akshata Kadam
2023-02-01 12:15:08 +05:30
committed by Akshata Kadam
parent 2ce71b64be
commit 79bcb645f5
3 changed files with 373 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
## Table of contents
+ [policy_engine_fuzzer](#PolicyEngine)
+ [content_decryption_fuzzer](#ContentDecryption)
# <a name="PolicyEngine"></a> Fuzzer for PolicyEngine
@@ -26,3 +27,27 @@ PolicyEngine supports the following parameters:
$ adb sync data
$ adb shell /data/fuzz/arm64/policy_engine_fuzzer/vendor/policy_engine_fuzzer
```
# <a name="ContentDecryption"></a> Fuzzer for ContentDecryption
ContentDecryption supports the following parameters:
1. Cert Authority (parameter name: "certAuthority")
2. Server Url (parameter name: "serverUrl")
3. Service Certificate (parameter name: "serviceCertificate")
| Parameter| Valid Values| Configured Value|
|------------- |-------------| ----- |
|`certAuthority`| `String` |Value obtained from FuzzedDataProvider|
|`serverUrl`| `String` |Value obtained from FuzzedDataProvider|
|`serviceCertificate`| `String` |Value obtained from FuzzedDataProvider|
#### Steps to run
1. Build the fuzzer
```
$ mm -j$(nproc) content_decryption_fuzzer
```
2. Run on device
```
$ adb sync data
$ adb shell /data/fuzz/arm64/content_decryption_fuzzer/vendor/content_decryption_fuzzer
```