Skip to content

Commit

Permalink
fixup! Adjust FIPS EC/DSA self test data for different nonce generation
Browse files Browse the repository at this point in the history
  • Loading branch information
t8m committed Apr 29, 2024
1 parent 4f7eab0 commit 3d10823
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions providers/fips/self_test_data.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1451,14 +1451,14 @@ static const unsigned char ecd_prime_pub[] = {
0x82
};
static const unsigned char ecdsa_prime_expected_sig[] = {
0x30, 0x3d, 0x02, 0x1d, 0x00, 0xea, 0x1c, 0x41,
0x4e, 0x51, 0xf1, 0xcb, 0x84, 0x91, 0x67, 0xa7,
0x1e, 0xea, 0x50, 0x77, 0x7f, 0x7e, 0xd5, 0x64,
0xfa, 0xae, 0x82, 0xa0, 0xf9, 0x2a, 0xbc, 0xd2,
0x53, 0x02, 0x1c, 0x1c, 0xac, 0xc4, 0xba, 0x16,
0xfd, 0x53, 0x5a, 0x89, 0xf3, 0x66, 0x9a, 0x89,
0x35, 0x78, 0x45, 0xd7, 0x71, 0x19, 0x2e, 0xf6,
0xd0, 0xb3, 0xcc, 0xcd, 0x6f, 0x5b, 0xfa
0x30, 0x3c, 0x02, 0x1c, 0x44, 0x06, 0xf6, 0x15,
0x9a, 0xff, 0x3d, 0x26, 0x83, 0xed, 0x38, 0x49,
0x30, 0xdb, 0x70, 0xfb, 0x04, 0x28, 0x12, 0x7c,
0xc5, 0x2a, 0xe8, 0xc1, 0x45, 0xa7, 0xbe, 0x2b,
0x02, 0x1c, 0x20, 0x08, 0xb5, 0xd0, 0xfe, 0x88,
0xcf, 0x5b, 0x45, 0xb4, 0x2e, 0x6b, 0x55, 0x5e,
0x35, 0x59, 0x42, 0xb7, 0x11, 0x76, 0x3f, 0x37,
0x7e, 0xa6, 0x83, 0x94, 0xad, 0x73
};
static const ST_KAT_PARAM ecdsa_prime_key[] = {
ST_KAT_PARAM_UTF8STRING(OSSL_PKEY_PARAM_GROUP_NAME, ecd_prime_curve_name),
Expand Down Expand Up @@ -1486,14 +1486,15 @@ static const unsigned char ecd_bin_pub[] = {
0x99, 0xb6, 0x8f, 0x80, 0x46
};
static const unsigned char ecdsa_bin_expected_sig[] = {
0x30, 0x3e, 0x02, 0x1d, 0x36, 0x11, 0xde, 0xe7,
0x7c, 0x99, 0x31, 0x9a, 0x90, 0xcf, 0x91, 0x23,
0x75, 0x9d, 0xe8, 0xf4, 0x20, 0x70, 0x0c, 0x5a,
0xa6, 0x00, 0x7a, 0xb2, 0x94, 0x41, 0x06, 0x7a,
0x0f, 0x02, 0x1d, 0x21, 0x95, 0x18, 0x12, 0x84,
0xf4, 0x18, 0x83, 0x38, 0x02, 0x2a, 0xee, 0x82,
0xdd, 0x81, 0xe2, 0xbd, 0xb6, 0x51, 0xab, 0xa6,
0x53, 0x68, 0xd0, 0xf9, 0x26, 0x19, 0xbf, 0x7a
0x30, 0x3f, 0x02, 0x1e, 0x00, 0xeb, 0x4b, 0xa7,
0xc6, 0x54, 0xf7, 0xa2, 0xaa, 0x43, 0xda, 0x4c,
0x0c, 0x24, 0xe6, 0xda, 0x37, 0xdd, 0xcf, 0xc5,
0x3f, 0xec, 0x12, 0x1d, 0xb7, 0x73, 0x45, 0x49,
0xa1, 0xa1, 0x02, 0x1d, 0x5a, 0x19, 0x15, 0xd4,
0x56, 0x66, 0x24, 0x08, 0xc2, 0x98, 0xb1, 0x76,
0x02, 0x16, 0x87, 0x1f, 0x6d, 0x04, 0xaf, 0x76,
0xb2, 0x77, 0xbb, 0x6f, 0x3e, 0x09, 0x4d, 0xd7,
0x9d
};
static const ST_KAT_PARAM ecdsa_bin_key[] = {
ST_KAT_PARAM_UTF8STRING(OSSL_PKEY_PARAM_GROUP_NAME, ecd_bin_curve_name),
Expand Down Expand Up @@ -1621,14 +1622,14 @@ static const unsigned char dsa_priv[] = {
0x40, 0x7e, 0x5c, 0xb7
};
static const unsigned char dsa_expected_sig[] = {
0x30, 0x3d, 0x02, 0x1c, 0x1d, 0xad, 0xe0, 0x2b,
0x4f, 0x84, 0x11, 0x9f, 0x17, 0x56, 0x24, 0x99,
0x34, 0x8e, 0x25, 0xf1, 0xe1, 0x8a, 0x14, 0x99,
0x16, 0x2b, 0xa6, 0xcc, 0xc5, 0x9b, 0x8d, 0x4c,
0x02, 0x1d, 0x00, 0xa2, 0x62, 0x4d, 0xdd, 0x96,
0xbe, 0xaa, 0xbf, 0xf6, 0x11, 0xed, 0xd6, 0xd5,
0x04, 0x1c, 0xa0, 0x6e, 0x3d, 0x4b, 0x15, 0xab,
0x4d, 0x94, 0xe0, 0x4f, 0xde, 0x50, 0x4c
0x30, 0x3c, 0x02, 0x1c, 0x2f, 0xfe, 0xef, 0x91,
0x11, 0xa9, 0xab, 0x81, 0x51, 0x2d, 0xe2, 0xf4,
0xbe, 0xbd, 0x2c, 0x5d, 0x8e, 0x37, 0x8a, 0xf8,
0x0c, 0x8a, 0xa7, 0xb3, 0xd2, 0xbe, 0x2a, 0xc5,
0x02, 0x1c, 0x5c, 0x45, 0xb1, 0xd8, 0x59, 0x7d,
0xe7, 0x98, 0x0b, 0xd3, 0x3a, 0x4e, 0x53, 0xa1,
0xa6, 0x71, 0xb9, 0xe6, 0x94, 0x3b, 0xc3, 0x11,
0xc4, 0x4d, 0xe4, 0x78, 0x45, 0x56
};

static const ST_KAT_PARAM dsa_key[] = {
Expand Down

0 comments on commit 3d10823

Please sign in to comment.