-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d4fcae
commit 279bb1d
Showing
4 changed files
with
219 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
#include "atca_test.h" | ||
#ifndef DO_NOT_TEST_CERT | ||
|
||
#include "atcacert/atcacert_def.h" | ||
|
||
#if ATCACERT_INTEGRATION_EN | ||
|
||
/* | ||
openssl x509 - in p256 - rsa2k - 1 - 1.der - noout - text : | ||
Certificate : | ||
Data: | ||
Version: 3 (0x2) | ||
Serial Number : 1 (0x1) | ||
Signature Algorithm : sha256WithRSAEncryption | ||
Issuer : C = IN, ST = TamilNadu, L = Chennai, O = Microchip, OU = SPG | ||
Validity | ||
Not Before : Dec 24 18 : 26 : 04 2022 GMT | ||
Not After : Dec 24 18 : 26 : 04 2023 GMT | ||
Subject : CN = level_01_cert_01 | ||
Subject Public Key Info : | ||
Public Key Algorithm : id - ecPublicKey | ||
Public - Key : (256 bit) | ||
pub : | ||
04 : 62 : b4 : c4 : f9 : 4e : d0 : db : 36 : fe : ec : 9a : 4e : c8 : 2a : | ||
93 : 96 : 47 : 1d : 01 : 0a : a9 : 37 : 91 : 98 : b4 : bd : db : 7e : eb : | ||
d3 : 32 : 65 : 88 : aa : a5 : 53 : c1 : 61 : 63 : 92 : c9 : e4 : 2d : d1 : | ||
88 : 56 : 9f : 9a : c2 : 54 : 85 : 4a : aa : f4 : ec : b8 : 12 : bc : 66 : | ||
5d : 76 : e2 : 22 : c8 | ||
ASN1 OID : prime256v1 | ||
NIST CURVE : P - 256 | ||
X509v3 extensions : | ||
X509v3 Basic Constraints : critical | ||
CA : TRUE, pathlen : 10 | ||
Netscape Cert Type : | ||
SSL Client, S / MIME | ||
X509v3 Subject Key Identifier : | ||
00 : D8 : DE : EC : 59 : 5C : E6 : 3E : 43 : 44 : 77 : EA : DA : 57 : E4 : EB : 6C : 22 : D6 : 15 | ||
X509v3 Authority Key Identifier : | ||
A8:C1:09 : 1C : 2C : 82 : F6 : E7 : 36 : B9 : 40 : 2D : AB : 7B : 27 : C8 : 08 : 5D : 18 : BF | ||
X509v3 Key Usage : critical | ||
Digital Signature, Certificate Sign, CRL Sign | ||
X509v3 Extended Key Usage : | ||
TLS Web Client Authentication, TLS Web Server Authentication | ||
1.3.6.1.4.1.17095.64.1 : | ||
.... | ||
1.3.6.1.4.1.17095.64.0 : | ||
.... | ||
Signature Algorithm : sha256WithRSAEncryption | ||
Signature Value : | ||
77 : 10 : 52 : bf : a4 : e1 : 05 : 3a : 3d : aa : 40 : 6a : 26 : b8 : 2d : bd : 77 : 3c : | ||
4f : 01 : 1b : 26 : 25 : 6f : 39 : e4 : a7 : 29 : 3c : 7e : 2c : 1a : 66 : 0d : ea : 95 : | ||
a5 : 5d : 75 : 6a : 54 : 0d : e2 : 59 : ab : 14 : a8 : 9b : 15 : 8a : 87 : f7 : 74 : a5 : | ||
a9 : 3c : fd : d7 : 9f : cc : 48 : 83 : 59 : 79 : 11 : b7 : c6 : 5e : d3 : 67 : 4b : 1a : | ||
2e : 4d : e8 : 39 : 71 : 5e : 96 : 66 : 79 : 88 : bb : d6 : d8 : fc : 09 : b1 : ae : 0a : | ||
d1 : f7 : e6 : 43 : fa : 0a : 29 : 7e : 1e : 39 : 4f : 04 : a4 : 3f : 3e : 9f : e4 : 0c : | ||
70 : 17 : 94 : 74 : 73 : 60 : 59 : 63 : 1b : 3e : 82 : c5 : 94 : f6 : 3e : 88 : bb : ef : | ||
e5 : 40 : 38 : 4a : f5 : 7c : ad : 0a : 2e : e4 : 4d : 2b : a6 : 0e : 7a : 2f : 3c : d8 : | ||
52 : 17 : db : 22 : 65 : ed : 71 : f5 : 8f : 2e : 1c : 99 : 72 : 30 : 4c : 14 : 3d : e9 : | ||
9f : d6 : 50 : b1 : bb : be : d5 : 07 : a4 : 41 : 09 : 66 : be : d6 : 02 : 2f : f5 : 0c : | ||
ea : bb : e1 : 0e : 8b : 58 : 15 : 53 : 67 : d0 : d0 : ee : 5f : f4 : 8d : 01 : 4b : 78 : | ||
ec : 89 : e2 : 15 : a1 : f6 : f9 : b9 : ca : 75 : 5c : f8 : 17 : ac : a0 : f5 : 6b : d8 : | ||
f2 : 7a : ee : 2e : 44 : dd : 71 : 25 : d1 : aa : af : 4d : 31 : f2 : f6 : 57 : dd : 03 : | ||
50 : 5d : 09 : b6 : 19 : f9 : 96 : 83 : 9a : 32 : c1 : f4 : bf : df : 06 : ad : 75 : 68 : | ||
25 : e5 : 08 : ec | ||
*/ | ||
|
||
//x.509 certificate for ta device | ||
const uint8_t g_test_ecc256_ca_cert[] = { | ||
0x30, 0x82, 0x02, 0xe2, 0x30, 0x82, 0x01, 0xca, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x01, 0x01, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, | ||
0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x55, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x49, 0x4e, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, | ||
0x55, 0x04, 0x08, 0x0c, 0x09, | ||
0x54, 0x61, 0x6d, 0x69, 0x6c, 0x4e, 0x61, 0x64, 0x75, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x07, 0x43, 0x68, 0x65, 0x6e, 0x6e, 0x61, | ||
0x69, 0x31, 0x12, 0x30, 0x10, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x09, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x63, 0x68, 0x69, 0x70, 0x31, 0x0c, 0x30, 0x0a, 0x06, | ||
0x03, 0x55, 0x04, 0x0b, 0x0c, 0x03, 0x53, 0x50, 0x47, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x32, 0x31, 0x32, 0x32, 0x34, 0x31, 0x38, 0x32, 0x36, 0x30, 0x34, 0x5a, | ||
0x17, 0x0d, 0x32, 0x33, 0x31, 0x32, 0x32, 0x34, 0x31, 0x38, 0x32, 0x36, 0x30, 0x34, 0x5a, 0x30, 0x1b, 0x31, 0x19, 0x30, 0x17, 0x06, 0x03, 0x55, 0x04, 0x03, | ||
0x0c, 0x10, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x30, 0x31, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x30, 0x31, 0x30, 0x59, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, | ||
0x48, 0xce, 0x3d, 0x02, 0x01, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, 0x03, 0x42, 0x00, 0x04, 0x62, 0xb4, 0xc4, 0xf9, 0x4e, 0xd0, 0xdb, | ||
0x36, 0xfe, 0xec, 0x9a, 0x4e, 0xc8, 0x2a, 0x93, 0x96, 0x47, 0x1d, 0x01, 0x0a, 0xa9, 0x37, 0x91, 0x98, 0xb4, 0xbd, 0xdb, 0x7e, 0xeb, 0xd3, 0x32, 0x65, 0x88, | ||
0xaa, 0xa5, 0x53, 0xc1, 0x61, | ||
0x63, 0x92, 0xc9, 0xe4, 0x2d, 0xd1, 0x88, 0x56, 0x9f, 0x9a, 0xc2, 0x54, 0x85, 0x4a, 0xaa, 0xf4, 0xec, 0xb8, 0x12, 0xbc, 0x66, 0x5d, 0x76, 0xe2, 0x22, 0xc8, | ||
0xa3, 0x81, 0xc1, 0x30, 0x81, 0xbe, 0x30, 0x12, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01, 0x01, 0xff, 0x04, 0x08, 0x30, 0x06, 0x01, 0x01, 0xff, 0x02, 0x01, 0x0a, | ||
0x30, 0x11, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x01, 0x01, 0x04, 0x04, 0x03, 0x02, 0x05, 0xa0, 0x30, 0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e, | ||
0x04, 0x16, 0x04, 0x14, 0x00, 0xd8, 0xde, 0xec, 0x59, 0x5c, 0xe6, 0x3e, 0x43, 0x44, 0x77, 0xea, 0xda, 0x57, 0xe4, 0xeb, 0x6c, 0x22, 0xd6, 0x15, 0x30, 0x1f, | ||
0x06, 0x03, 0x55, 0x1d, 0x23, 0x04, 0x18, 0x30, 0x16, 0x80, 0x14, 0xa8, 0xc1, 0x09, 0x1c, 0x2c, 0x82, 0xf6, 0xe7, 0x36, 0xb9, 0x40, 0x2d, 0xab, 0x7b, 0x27, | ||
0xc8, 0x08, 0x5d, 0x18, 0xbf, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff, 0x04, 0x04, 0x03, 0x02, 0x01, 0x86, 0x30, 0x1d, 0x06, 0x03, 0x55, | ||
0x1d, 0x25, 0x04, 0x16, 0x30, 0x14, 0x06, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02, 0x06, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01, | ||
0x30, 0x12, 0x06, 0x0a, 0x2b, | ||
0x06, 0x01, 0x04, 0x01, 0x81, 0x85, 0x47, 0x40, 0x01, 0x04, 0x04, 0x03, 0x02, 0x00, 0x80, 0x30, 0x12, 0x06, 0x0a, 0x2b, 0x06, 0x01, 0x04, 0x01, 0x81, 0x85, | ||
0x47, 0x40, 0x00, 0x04, 0x04, 0x03, 0x02, 0x00, 0xff, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x03, 0x82, | ||
0x01, 0x01, 0x00, 0x77, 0x10, 0x52, 0xbf, 0xa4, 0xe1, 0x05, 0x3a, 0x3d, 0xaa, 0x40, 0x6a, 0x26, 0xb8, 0x2d, 0xbd, 0x77, 0x3c, 0x4f, 0x01, 0x1b, 0x26, 0x25, | ||
0x6f, 0x39, 0xe4, 0xa7, 0x29, 0x3c, 0x7e, 0x2c, 0x1a, 0x66, 0x0d, 0xea, 0x95, 0xa5, 0x5d, 0x75, 0x6a, 0x54, 0x0d, 0xe2, 0x59, 0xab, 0x14, 0xa8, 0x9b, 0x15, | ||
0x8a, 0x87, 0xf7, 0x74, 0xa5, 0xa9, 0x3c, 0xfd, 0xd7, 0x9f, 0xcc, 0x48, 0x83, 0x59, 0x79, 0x11, 0xb7, 0xc6, 0x5e, 0xd3, 0x67, 0x4b, 0x1a, 0x2e, 0x4d, 0xe8, | ||
0x39, 0x71, 0x5e, 0x96, 0x66, 0x79, 0x88, 0xbb, 0xd6, 0xd8, 0xfc, 0x09, 0xb1, 0xae, 0x0a, 0xd1, 0xf7, 0xe6, 0x43, 0xfa, 0x0a, 0x29, 0x7e, 0x1e, 0x39, 0x4f, | ||
0x04, 0xa4, 0x3f, 0x3e, 0x9f, 0xe4, 0x0c, 0x70, 0x17, 0x94, 0x74, 0x73, 0x60, 0x59, 0x63, 0x1b, 0x3e, 0x82, 0xc5, 0x94, 0xf6, 0x3e, 0x88, 0xbb, 0xef, 0xe5, | ||
0x40, 0x38, 0x4a, 0xf5, 0x7c, | ||
0xad, 0x0a, 0x2e, 0xe4, 0x4d, 0x2b, 0xa6, 0x0e, 0x7a, 0x2f, 0x3c, 0xd8, 0x52, 0x17, 0xdb, 0x22, 0x65, 0xed, 0x71, 0xf5, 0x8f, 0x2e, 0x1c, 0x99, 0x72, 0x30, | ||
0x4c, 0x14, 0x3d, 0xe9, 0x9f, 0xd6, 0x50, 0xb1, 0xbb, 0xbe, 0xd5, 0x07, 0xa4, 0x41, 0x09, 0x66, 0xbe, 0xd6, 0x02, 0x2f, 0xf5, 0x0c, 0xea, 0xbb, 0xe1, 0x0e, | ||
0x8b, 0x58, 0x15, 0x53, 0x67, 0xd0, 0xd0, 0xee, 0x5f, 0xf4, 0x8d, 0x01, 0x4b, 0x78, 0xec, 0x89, 0xe2, 0x15, 0xa1, 0xf6, 0xf9, 0xb9, 0xca, 0x75, 0x5c, 0xf8, | ||
0x17, 0xac, 0xa0, 0xf5, 0x6b, 0xd8, 0xf2, 0x7a, 0xee, 0x2e, 0x44, 0xdd, 0x71, 0x25, 0xd1, 0xaa, 0xaf, 0x4d, 0x31, 0xf2, 0xf6, 0x57, 0xdd, 0x03, 0x50, 0x5d, | ||
0x09, 0xb6, 0x19, 0xf9, 0x96, 0x83, 0x9a, 0x32, 0xc1, 0xf4, 0xbf, 0xdf, 0x06, 0xad, 0x75, 0x68, 0x25, 0xe5, 0x08, 0xec | ||
}; | ||
|
||
static struct atcac_x509_ctx* parsed; | ||
|
||
const atcacert_def_t g_test_cert_def_4_device = { | ||
.type = CERTTYPE_X509_FULL_STORED, | ||
.comp_cert_dev_loc.zone = DEVZONE_DATA, | ||
.comp_cert_dev_loc.offset = 0, | ||
.comp_cert_dev_loc.slot = 0x8800, | ||
.cert_template = g_test_ecc256_ca_cert, | ||
.cert_template_size = sizeof(g_test_ecc256_ca_cert), | ||
.parsed = &parsed, | ||
}; | ||
#endif /* ATCACERT_INTEGRATION_EN */ | ||
|
||
#endif /* DO_NOT_TEST_CERT */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef TEST_CERT_DEF_4_DEVICE_H | ||
#define TEST_CERT_DEF_4_DEVICE_H | ||
|
||
#include "atcacert/atcacert_def.h" | ||
|
||
#if ATCACERT_INTEGRATION_EN | ||
|
||
extern const atcacert_def_t g_test_cert_def_4_device; | ||
extern const uint8_t g_test_ecc256_ca_cert[742]; | ||
|
||
#endif /* ATCACERT_INTEGRATION_EN */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#include "atca_test.h" | ||
#ifndef DO_NOT_TEST_CERT | ||
|
||
#include "atcacert/atcacert_def.h" | ||
|
||
#if ATCACERT_INTEGRATION_EN | ||
|
||
/* | ||
openssl x509 -in device-eccdwobc-crt.der -text -noout | ||
Certificate : | ||
Data: | ||
Version: 3 (0x2) | ||
Serial Number : | ||
51 : d7 : 42 : 1c : dd : d2 : ed : ed : d0 : 3d : 59 : a4 : 15 : ec : f0 : d1 : cc : aa : ce : cb | ||
Signature Algorithm : ecdsa - with - SHA256 | ||
Issuer : CN = Demo Ecosystem Root | ||
Validity | ||
Not Before : Dec 30 15 : 33 : 32 2021 GMT | ||
Not After : Dec 28 15 : 33 : 32 2031 GMT | ||
Subject : CN = Microchip signing cer | ||
Subject Public Key Info : | ||
Public Key Algorithm : id - ecPublicKey | ||
Public - Key : (256 bit) | ||
pub : | ||
04 : 6b : d8 : ec : 15 : 0f : d5 : b6 : 44 : e4 : c1 : b4 : 41 : 23 : a0 : | ||
e3 : 9e : 6e : fd : 88 : 83 : 07 : ae : cc : 0b : 81 : 54 : 51 : 2c : 5e : | ||
7f : 71 : fb : 8e : e5 : 7b : 15 : 61 : b1 : b5 : 8e : 93 : 65 : 7a : 02 : | ||
68 : a4 : 1f : 00 : e5 : 0b : 02 : 5d : 12 : d1 : 39 : 4c : 84 : ac : 94 : | ||
c7 : 51 : 51 : d3 : 1f | ||
ASN1 OID : prime256v1 | ||
NIST CURVE : P - 256 | ||
X509v3 extensions : | ||
X509v3 Key Usage : critical | ||
Digital Signature, Certificate Sign, CRL Sign | ||
X509v3 Subject Key Identifier : | ||
52 : CB : BF : 0D : A6 : A5 : E2 : 72 : 67 : 61 : 39 : 87 : E5 : 24 : AE : C3 : 7D : 74 : E2 : 3F | ||
X509v3 Authority Key Identifier : | ||
99 : 9C : A4 : 4C : C7 : 23 : 40 : D9 : A9 : C6 : 85 : AF : 76 : 76 : 04 : 34 : 13 : 81 : 72 : B8 | ||
Signature Algorithm : ecdsa - with - SHA256 | ||
Signature Value : | ||
30 : 44 : 02 : 20 : 28 : 62 : 0a : b2 : 4d : 1a : 60 : e1 : 89 : d1 : 9b : ba : 8a : 46 : | ||
7f : 9d : 34 : 90 : da : 74 : 0a : 3a : c6 : 1f : 7d : 03 : bd : a7 : 56 : e0 : e8 : 4f : | ||
02 : 20 : 13 : 62 : e2 : 60 : 77 : 94 : 73 : b3 : ff : a1 : 82 : 07 : 6a : 72 : f7 : eb : | ||
e2 : 98 : d5 : f1 : 1f : 47 : d1 : 8b : 59 : 21 : 8f : 2e : 97 : 58 : 74 : 09 | ||
*/ | ||
|
||
//x.509 certificate for ecc608 | ||
const uint8_t g_test_ecc256_ca_cert_ecc608[408] = { | ||
0x30, 0x82, 0x01, 0x91, 0x30, 0x82, 0x01, 0x38, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x14, 0x51, 0xd7, 0x42, 0x1c, 0xdd, 0xd2, 0xed, 0xed, 0xd0, 0x3d, 0x59, | ||
0xa4, 0x15, 0xec, 0xf0, 0xd1, 0xcc, 0xaa, 0xce, 0xcb, 0x30, 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x02, 0x30, 0x1e, 0x31, 0x1c, 0x30, | ||
0x1a, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x13, 0x44, 0x65, 0x6d, 0x6f, 0x20, 0x45, 0x63, 0x6f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20, 0x52, 0x6f, 0x6f, | ||
0x74, 0x30, 0x1e, 0x17, 0x0d, 0x32, 0x31, 0x31, 0x32, 0x33, 0x30, 0x31, 0x35, 0x33, 0x33, 0x33, 0x32, 0x5a, 0x17, 0x0d, 0x33, 0x31, 0x31, 0x32, 0x32, 0x38, | ||
0x31, 0x35, 0x33, 0x33, 0x33, 0x32, 0x5a, 0x30, 0x20, 0x31, 0x1e, 0x30, 0x1c, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x15, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x63, | ||
0x68, 0x69, 0x70, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x63, 0x65, 0x72, 0x30, 0x59, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, | ||
0x02, 0x01, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, 0x03, 0x42, 0x00, 0x04, 0x6b, 0xd8, 0xec, 0x15, 0x0f, 0xd5, 0xb6, 0x44, 0xe4, 0xc1, | ||
0xb4, 0x41, 0x23, 0xa0, 0xe3, 0x9e, 0x6e, 0xfd, 0x88, 0x83, 0x07, 0xae, 0xcc, 0x0b, 0x81, 0x54, 0x51, 0x2c, 0x5e, 0x7f, 0x71, 0xfb, 0x8e, 0xe5, 0x7b, 0x15, | ||
0x61, 0xb1, 0xb5, 0x8e, 0x93, 0x65, 0x7a, 0x02, 0x68, 0xa4, 0x1f, 0x00, 0xe5, 0x0b, 0x02, 0x5d, 0x12, 0xd1, 0x39, 0x4c, 0x84, 0xac, 0x94, 0xc7, 0x51, 0x51, | ||
0xd3, 0x1f, 0xa3, 0x52, 0x30, 0x50, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d, 0x0f, 0x01, 0x01, 0xff, 0x04, 0x04, 0x03, 0x02, 0x01, 0x86, 0x30, 0x1d, 0x06, 0x03, | ||
0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x52, 0xcb, 0xbf, 0x0d, 0xa6, 0xa5, 0xe2, 0x72, 0x67, 0x61, 0x39, 0x87, 0xe5, 0x24, 0xae, 0xc3, 0x7d, 0x74, 0xe2, | ||
0x3f, 0x30, 0x1f, 0x06, 0x03, 0x55, 0x1d, 0x23, 0x04, 0x18, 0x30, 0x16, 0x80, 0x14, 0x99, 0x9c, 0xa4, 0x4c, 0xc7, 0x23, 0x40, 0xd9, 0xa9, 0xc6, 0x85, 0xaf, | ||
0x76, 0x76, 0x04, 0x34, 0x13, 0x81, 0x72, 0xb8, 0x30, 0x0a, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x03, 0x02, 0x03, 0x47, 0x00, 0x30, 0x44, 0x02, | ||
0x20, 0x28, 0x62, 0x0a, 0xb2, 0x4d, 0x1a, 0x60, 0xe1, 0x89, 0xd1, 0x9b, 0xba, 0x8a, 0x46, 0x7f, 0x9d, 0x34, 0x90, 0xda, 0x74, 0x0a, 0x3a, 0xc6, 0x1f, 0x7d, | ||
0x03, 0xbd, 0xa7, 0x56, 0xe0, 0xe8, 0x4f, 0x02, 0x20, 0x13, 0x62, 0xe2, 0x60, 0x77, 0x94, 0x73, 0xb3, 0xff, 0xa1, 0x82, 0x07, 0x6a, 0x72, 0xf7, 0xeb, 0xe2, | ||
0x98, 0xd5, 0xf1, 0x1f, 0x47, 0xd1, 0x8b, 0x59, 0x21, 0x8f, 0x2e, 0x97, 0x58, 0x74, 0x09, 0x00, 0x00, 0x00 //Padded 3 bytes as zero for ecc device for len = 4 byte multiple | ||
}; | ||
|
||
static struct atcac_x509_ctx* parsed; | ||
|
||
atcacert_def_t g_test_cert_def_5_device = { | ||
.type = CERTTYPE_X509_FULL_STORED, | ||
.comp_cert_dev_loc.zone = DEVZONE_DATA, | ||
.comp_cert_dev_loc.offset = 0, | ||
.comp_cert_dev_loc.slot = 8, | ||
.cert_template = g_test_ecc256_ca_cert_ecc608, | ||
.cert_template_size = sizeof(g_test_ecc256_ca_cert_ecc608), | ||
.parsed = &parsed, | ||
}; | ||
#endif /* ATCACERT_INTEGRATION_EN */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef TEST_CERT_DEF_5_DEVICE_H | ||
#define TEST_CERT_DEF_5_DEVICE_H | ||
|
||
#include "atcacert/atcacert_def.h" | ||
|
||
extern const atcacert_def_t g_test_cert_def_5_device; | ||
extern const uint8_t g_test_ecc256_ca_cert_ecc608[408]; | ||
#endif |