mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Add VSR annotations for RKP DICE
Bug: 277965670 Test: n/a (comment changes only) (cherry picked from https://android-review.googlesource.com/q/commit:ac1639f227f7edb1ce284adc2a4f48f88d347da1) Merged-In: I64e34c1f9865811f0967148cad914f7ef77f9448 Change-Id: I64e34c1f9865811f0967148cad914f7ef77f9448
This commit is contained in:
committed by
Cherrypicker Worker
parent
91dc5573f2
commit
33e2d0113c
@@ -702,6 +702,7 @@ class CertificateRequestV2Test : public CertificateRequestTestBase {
|
||||
* Generate an empty certificate request with all possible length of challenge, and decrypt and
|
||||
* verify the structure and content.
|
||||
*/
|
||||
// @VsrTest = 3.10-015
|
||||
TEST_P(CertificateRequestV2Test, EmptyRequest) {
|
||||
bytevec csr;
|
||||
|
||||
@@ -721,6 +722,7 @@ TEST_P(CertificateRequestV2Test, EmptyRequest) {
|
||||
* Generate a non-empty certificate request with all possible length of challenge. Decrypt, parse
|
||||
* and validate the contents.
|
||||
*/
|
||||
// @VsrTest = 3.10-015
|
||||
TEST_P(CertificateRequestV2Test, NonEmptyRequest) {
|
||||
generateKeys(false /* testMode */, 1 /* numKeys */);
|
||||
|
||||
@@ -753,6 +755,7 @@ TEST_P(CertificateRequestV2Test, EmptyRequestWithInvalidChallengeFail) {
|
||||
* Generate a non-empty certificate request. Make sure contents are reproducible but allow for the
|
||||
* signature to be different since algorithms including ECDSA P-256 can include a random value.
|
||||
*/
|
||||
// @VsrTest = 3.10-015
|
||||
TEST_P(CertificateRequestV2Test, NonEmptyRequestReproducible) {
|
||||
generateKeys(false /* testMode */, 1 /* numKeys */);
|
||||
|
||||
@@ -776,6 +779,7 @@ TEST_P(CertificateRequestV2Test, NonEmptyRequestReproducible) {
|
||||
/**
|
||||
* Generate a non-empty certificate request with multiple keys.
|
||||
*/
|
||||
// @VsrTest = 3.10-015
|
||||
TEST_P(CertificateRequestV2Test, NonEmptyRequestMultipleKeys) {
|
||||
generateKeys(false /* testMode */, rpcHardwareInfo.supportedNumKeysInCsr /* numKeys */);
|
||||
|
||||
@@ -849,6 +853,7 @@ void parse_root_of_trust(const vector<uint8_t>& attestation_cert,
|
||||
/**
|
||||
* Generate a CSR and verify DeviceInfo against IDs attested by KeyMint.
|
||||
*/
|
||||
// @VsrTest = 3.10-015
|
||||
TEST_P(CertificateRequestV2Test, DeviceInfo) {
|
||||
// See if there is a matching IKeyMintDevice for this IRemotelyProvisionedComponent.
|
||||
std::shared_ptr<IKeyMintDevice> keyMint;
|
||||
|
||||
Reference in New Issue
Block a user