Skip to content

Commit

Permalink
Fix HKDF salt
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@surgut.co.uk>
  • Loading branch information
xnox committed Apr 18, 2024
1 parent a18a048 commit ea31561
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions providers/fips/self_test_data.inc
Expand Up @@ -279,19 +279,19 @@ static const unsigned char hkdf_secret[] = {
};
static const unsigned char hkdf_salt[] = {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0a, 0x0b, 0x0c
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d
};
static const unsigned char hkdf_info[] = {
0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
0xf8, 0xf9
};
static const unsigned char hkdf_expected[] = {
0x3c, 0xb2, 0x5f, 0x25, 0xfa, 0xac, 0xd5, 0x7a,
0x90, 0x43, 0x4f, 0x64, 0xd0, 0x36, 0x2f, 0x2a,
0x2d, 0x2d, 0x0a, 0x90, 0xcf, 0x1a, 0x5a, 0x4c,
0x5d, 0xb0, 0x2d, 0x56, 0xec, 0xc4, 0xc5, 0xbf,
0x34, 0x00, 0x72, 0x08, 0xd5, 0xb8, 0x87, 0x18,
0x58, 0x65
0xcb, 0x95, 0xd0, 0x56, 0xd6, 0xba, 0x6f, 0x08,
0x4d, 0xf0, 0xa0, 0x3a, 0x33, 0x17, 0xbc, 0xca,
0x7f, 0x83, 0x77, 0x32, 0x04, 0xb7, 0x6f, 0x52,
0x7f, 0x4f, 0x06, 0x73, 0x61, 0x68, 0xa5, 0x2b,
0xbc, 0xd8, 0x88, 0x69, 0xa3, 0xa4, 0xe7, 0x97,
0x2d, 0xcd
};
static const ST_KAT_PARAM hkdf_params[] = {
ST_KAT_PARAM_UTF8STRING(OSSL_KDF_PARAM_DIGEST, hkdf_digest),
Expand Down

0 comments on commit ea31561

Please sign in to comment.