Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f25f9860 authored by Max Bires's avatar Max Bires Committed by android-build-merger
Browse files

Merge "Removing an extraneous test" into qt-dev am: 16b2c774

am: 90cda58d

Change-Id: I446a4550877494c1a617b8f5b471fa3335bbaeb4
parents 0bcbb74c 90cda58d
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
@@ -4228,28 +4228,6 @@ TEST_F(AttestationTest, RsaAttestationRequiresAppId) {
                        &cert_chain));
}

/*
 * AttestationTest.RsaAttestationRequiresCorrectAppId
 *
 * Verifies that attesting to RSA requires the correct app ID.
 */
TEST_F(AttestationTest, RsaAttestationRequiresCorrectAppId) {
    ASSERT_EQ(ErrorCode::OK,
              GenerateKey(AuthorizationSetBuilder()
                                  .Authorization(TAG_NO_AUTH_REQUIRED)
                                  .RsaSigningKey(2048, 65537)
                                  .Digest(Digest::NONE)
                                  .Padding(PaddingMode::NONE)
                                  .Authorization(TAG_APPLICATION_ID, HidlBuf("lol"))));

    hidl_vec<hidl_vec<uint8_t>> cert_chain;
    EXPECT_EQ(ErrorCode::ATTESTATION_APPLICATION_ID_MISSING,
              AttestKey(AuthorizationSetBuilder()
                                .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge"))
                                .Authorization(TAG_APPLICATION_ID, HidlBuf("heh")),
                        &cert_chain));
}

/*
 * AttestationTest.EcAttestation
 *