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 30, 2024
1 parent 40c2f6c commit fa04415
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions providers/fips/self_test_data.inc
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, 0x3d, 0x02, 0x1c, 0x48, 0x4f, 0x3c, 0x97,
0x5b, 0xfa, 0x40, 0x6c, 0xdb, 0xd6, 0x70, 0xb5,
0xbd, 0x2d, 0xd0, 0xc6, 0x22, 0x93, 0x5a, 0x88,
0x56, 0xd0, 0xaf, 0x0a, 0x94, 0x92, 0x20, 0x01,
0x02, 0x1d, 0x00, 0xa4, 0x80, 0xe0, 0x47, 0x88,
0x8a, 0xef, 0x2a, 0x47, 0x9d, 0x81, 0x9a, 0xbf,
0x45, 0xc3, 0x6f, 0x9e, 0x2e, 0xc1, 0x44, 0x9f,
0xfd, 0x79, 0xdb, 0x90, 0x3e, 0xb9, 0xb2
};
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, 0x1d, 0x58, 0xe9, 0xd0, 0x84,
0x5c, 0xad, 0x29, 0x03, 0xf6, 0xa6, 0xbc, 0xe0,
0x24, 0x6d, 0x9e, 0x79, 0x5d, 0x1e, 0xe8, 0x5a,
0xc3, 0x31, 0x0a, 0xa9, 0xfb, 0xe3, 0x99, 0x54,
0x11, 0x02, 0x1e, 0x00, 0xa3, 0x44, 0x28, 0xa3,
0x70, 0x97, 0x98, 0x17, 0xd7, 0xa6, 0xad, 0x91,
0xaf, 0x41, 0x69, 0xb6, 0x06, 0x99, 0x39, 0xc7,
0x63, 0xa4, 0x6a, 0x81, 0xe4, 0x9a, 0x9d, 0x15,
0x8b
};
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, 0x69, 0xc6, 0xd6, 0x9e,
0x2b, 0x91, 0xea, 0x72, 0xb3, 0x8b, 0x7c, 0x57,
0x48, 0x75, 0xb7, 0x65, 0xc0, 0xb4, 0xf7, 0xbb,
0x08, 0xa4, 0x95, 0x77, 0xfc, 0xa7, 0xed, 0x31,
0x02, 0x1c, 0x4c, 0x2c, 0xff, 0xc6, 0x55, 0xeb,
0x8f, 0xa7, 0x4f, 0x27, 0xd8, 0xec, 0xfd, 0x62,
0x73, 0xf2, 0xd1, 0x55, 0xa5, 0xf0, 0x41, 0x68,
0x34, 0x8d, 0x9e, 0x88, 0x08, 0x06
};

static const ST_KAT_PARAM dsa_key[] = {
Expand Down

0 comments on commit fa04415

Please sign in to comment.