summaryrefslogtreecommitdiff
path: root/board/cr50/fips.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cr50/fips.c')
-rw-r--r--board/cr50/fips.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/board/cr50/fips.c b/board/cr50/fips.c
index 948bd2fba4..436e1588ae 100644
--- a/board/cr50/fips.c
+++ b/board/cr50/fips.c
@@ -369,18 +369,18 @@ static bool fips_hmac_drbg_kat(void)
/* Known-answer test for ECDSA NIST P-256 verify. */
static bool fips_ecdsa_verify_kat(void)
{
- static const p256_int qx = { { 0xf49abf3c, 0xf82e6e12, 0x7a67c074,
- 0x5134e16f, 0xf8957a0c, 0xef4344a7,
- 0xd4bb3cb7, 0xe424dc61 } };
- static const p256_int qy = { { 0xdfaee927, 0x3d6f60e7, 0xac85d124,
- 0x127e5965, 0xe1dddaf0, 0x1545949d,
- 0xa2bc4865, 0x970eed7a } };
- static const p256_int r = { { 0xd9347f4f, 0xb72f981f, 0x6349b9da,
- 0x2ff540c7, 0x42017c64, 0x910be331,
- 0xa49c705c, 0xbf96b99a } };
- static const p256_int s = { { 0x57ec871c, 0x920b9e0f, 0x75d98f31,
- 0x444e3230, 0x15abdf12, 0xe03b9cd4,
- 0x819089c2, 0x17c55095 } };
+ static const p256_int qx = { .a = { 0xf49abf3c, 0xf82e6e12, 0x7a67c074,
+ 0x5134e16f, 0xf8957a0c, 0xef4344a7,
+ 0xd4bb3cb7, 0xe424dc61 } };
+ static const p256_int qy = { .a = { 0xdfaee927, 0x3d6f60e7, 0xac85d124,
+ 0x127e5965, 0xe1dddaf0, 0x1545949d,
+ 0xa2bc4865, 0x970eed7a } };
+ static const p256_int r = { .a = { 0xd9347f4f, 0xb72f981f, 0x6349b9da,
+ 0x2ff540c7, 0x42017c64, 0x910be331,
+ 0xa49c705c, 0xbf96b99a } };
+ static const p256_int s = { .a = { 0x57ec871c, 0x920b9e0f, 0x75d98f31,
+ 0x444e3230, 0x15abdf12, 0xe03b9cd4,
+ 0x819089c2, 0x17c55095 } };
static const uint8_t msg[128] = {
0xe1, 0x13, 0x0a, 0xf6, 0xa3, 0x8c, 0xcb, 0x41, 0x2a, 0x9c,
0x8d, 0x13, 0xe1, 0x5d, 0xbf, 0xc9, 0xe6, 0x9a, 0x16, 0x38,