@@ -27,25 +27,25 @@ test_entry_f test_g = NULL;
27
27
compliance_test_type type_g = COMPLIANCE_TEST_UNDEFINED;
28
28
29
29
// randomly generated attestation key used for testing the attestation feature.
30
- // The specific key chosen shouldn't matter to the attestation test
30
+ // The specific key chosen shouldn't matter to the attestation test
31
31
// the test just needs a key to be injected before it is run.
32
32
static const uint8_t private_key_data[] = {
33
- 0x49 , 0xc9 , 0xa8 , 0xc1 , 0x8c , 0x4b , 0x88 , 0x56 ,
34
- 0x38 , 0xc4 , 0x31 , 0xcf , 0x1d , 0xf1 , 0xc9 , 0x94 ,
35
- 0x13 , 0x16 , 0x09 , 0xb5 , 0x80 , 0xd4 , 0xfd , 0x43 ,
36
- 0xa0 , 0xca , 0xb1 , 0x7d , 0xb2 , 0xf1 , 0x3e , 0xee
33
+ 0x49 , 0xc9 , 0xa8 , 0xc1 , 0x8c , 0x4b , 0x88 , 0x56 ,
34
+ 0x38 , 0xc4 , 0x31 , 0xcf , 0x1d , 0xf1 , 0xc9 , 0x94 ,
35
+ 0x13 , 0x16 , 0x09 , 0xb5 , 0x80 , 0xd4 , 0xfd , 0x43 ,
36
+ 0xa0 , 0xca , 0xb1 , 0x7d , 0xb2 , 0xf1 , 0x3e , 0xee
37
37
};
38
38
39
39
static const uint8_t public_key_data[] = {
40
- 0x04 , 0x77 , 0x72 , 0x65 , 0x6f , 0x81 , 0x4b , 0x39 ,
41
- 0x92 , 0x79 , 0xd5 , 0xe1 , 0xf1 , 0x78 , 0x1f , 0xac ,
42
- 0x6f , 0x09 , 0x9a , 0x3c , 0x5c , 0xa1 , 0xb0 , 0xe3 ,
43
- 0x53 , 0x51 , 0x83 , 0x4b , 0x08 , 0xb6 , 0x5e , 0x0b ,
44
- 0x57 , 0x25 , 0x90 , 0xcd , 0xaf , 0x8f , 0x76 , 0x93 ,
45
- 0x61 , 0xbc , 0xf3 , 0x4a , 0xcf , 0xc1 , 0x1e , 0x5e ,
46
- 0x07 , 0x4e , 0x84 , 0x26 , 0xbd , 0xde , 0x04 , 0xbe ,
47
- 0x6e , 0x65 , 0x39 , 0x45 , 0x44 , 0x96 , 0x17 , 0xde ,
48
- 0x45
40
+ 0x04 , 0x77 , 0x72 , 0x65 , 0x6f , 0x81 , 0x4b , 0x39 ,
41
+ 0x92 , 0x79 , 0xd5 , 0xe1 , 0xf1 , 0x78 , 0x1f , 0xac ,
42
+ 0x6f , 0x09 , 0x9a , 0x3c , 0x5c , 0xa1 , 0xb0 , 0xe3 ,
43
+ 0x53 , 0x51 , 0x83 , 0x4b , 0x08 , 0xb6 , 0x5e , 0x0b ,
44
+ 0x57 , 0x25 , 0x90 , 0xcd , 0xaf , 0x8f , 0x76 , 0x93 ,
45
+ 0x61 , 0xbc , 0xf3 , 0x4a , 0xcf , 0xc1 , 0x1e , 0x5e ,
46
+ 0x07 , 0x4e , 0x84 , 0x26 , 0xbd , 0xde , 0x04 , 0xbe ,
47
+ 0x6e , 0x65 , 0x39 , 0x45 , 0x44 , 0x96 , 0x17 , 0xde ,
48
+ 0x45
49
49
};
50
50
51
51
static void psa_attestation_destroy_key_for_test ()
@@ -108,16 +108,11 @@ void main_wrapper(void)
108
108
109
109
void pal_mbed_os_compliance_test_initialize (void )
110
110
{
111
- if (COMPLIANCE_TEST_CRYPTO == type_g)
112
- {
111
+ if (COMPLIANCE_TEST_CRYPTO == type_g) {
113
112
inject_entropy ();
114
- }
115
- else if (COMPLIANCE_TEST_STORAGE == type_g)
116
- {
113
+ } else if (COMPLIANCE_TEST_STORAGE == type_g) {
117
114
reset_storage_for_compliance_test ();
118
- }
119
- else if (COMPLIANCE_TEST_ATTESTATION == type_g)
120
- {
115
+ } else if (COMPLIANCE_TEST_ATTESTATION == type_g) {
121
116
reset_storage_for_compliance_test ();
122
117
inject_entropy ();
123
118
psa_crypto_init ();
0 commit comments