mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Increase challenge size in tests."
This commit is contained in:
@@ -106,7 +106,8 @@ parcelable ProtectedData {
|
|||||||
* ]
|
* ]
|
||||||
*
|
*
|
||||||
* SignedMacAad = [
|
* SignedMacAad = [
|
||||||
* challenge : bstr,
|
* challenge : bstr .size (32..64), // Size between 32 - 64
|
||||||
|
* // bytes inclusive
|
||||||
* VerifiedDeviceInfo,
|
* VerifiedDeviceInfo,
|
||||||
* tag: bstr // This is the tag from COSE_Mac0 of
|
* tag: bstr // This is the tag from COSE_Mac0 of
|
||||||
* // KeysToCertify, to tie the key set to
|
* // KeysToCertify, to tie the key set to
|
||||||
|
|||||||
@@ -358,8 +358,7 @@ TEST_P(GenerateKeyTests, generateEcdsaP256Key_testMode) {
|
|||||||
|
|
||||||
class CertificateRequestTest : public VtsRemotelyProvisionedComponentTests {
|
class CertificateRequestTest : public VtsRemotelyProvisionedComponentTests {
|
||||||
protected:
|
protected:
|
||||||
CertificateRequestTest() : eekId_(string_to_bytevec("eekid")), challenge_(randomBytes(32)) {
|
CertificateRequestTest() : eekId_(string_to_bytevec("eekid")), challenge_(randomBytes(64)) {}
|
||||||
}
|
|
||||||
|
|
||||||
void generateTestEekChain(size_t eekLength) {
|
void generateTestEekChain(size_t eekLength) {
|
||||||
auto chain = generateEekChain(rpcHardwareInfo.supportedEekCurve, eekLength, eekId_);
|
auto chain = generateEekChain(rpcHardwareInfo.supportedEekCurve, eekLength, eekId_);
|
||||||
|
|||||||
Reference in New Issue
Block a user