Skip to content

Commit 511890f

Browse files
author
ipl_ci
committed
[SB][Library][Fix] HKDF API was renamed according to the Crypto review comment
1 parent 261c6f3 commit 511890f

File tree

10 files changed

+20
-19
lines changed

10 files changed

+20
-19
lines changed

CONST_TIME_EXECUTION_TESTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
| ippsGFpSqrt | - |
7676
| ippsGFpSub | - |
7777
| ippsGFpSub_PE | - |
78-
| ippsHKDF_expand | Different hashes: sha1, sha256, sha224, sha384, sha512, sha512-256, sha512-224, sm3 |
78+
| ippsHKDF | Different hashes: sha1, sha256, sha224, sha384, sha512, sha512-256, sha512-224, sm3 |
7979
| ippsHMACInit_rmf | Different hashes: sha1, sha256, sha224, sha384, sha512, sha512-256, sha512-224, sm3 |
8080
| ippsRSA_Decrypt | Different key types and key length: key type 1, 512 bits; key type 2, 512 bits |
8181
| ippsRSADecrypt_OAEP | Different key types and key length: key type 1, 512 bits; key type 2, 512 bits |

doc/source/hkdf_expand.rst renamed to doc/source/hkdf.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
.. _hkdf_expand:
1+
.. _hkdf:
22

33

4-
HKDF_expand
4+
HKDF
55
===========
66

77

@@ -13,7 +13,7 @@ Syntax
1313
------
1414

1515

16-
IppStatus ippsHKDF_expand(const Ipp8u\* ikm, int ikmLen, Ipp8u\* okm,
16+
IppStatus ippsHKDF(const Ipp8u\* ikm, int ikmLen, Ipp8u\* okm,
1717
int okmLen, const Ipp8u\* salt, int saltLen, const Ipp8u\* info, int
1818
infoLen, const IppsHashMethod\* pMethod);
1919

doc/source/keyed-hash-functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ functions transform it to a position-independent form and vice versa:
9595
hmac_final
9696
hmac_gettag
9797
hmac_message
98-
hkdf_expand
98+
hkdf

include/ippcp.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,12 @@ IPPAPI(IppStatus, ippsHMACMessage_rmf,(const Ipp8u* pMsg, int msgLen,
630630
Ipp8u* pMD, int mdLen,
631631
const IppsHashMethod* pMethod))
632632

633-
IPPAPI(IppStatus, ippsHKDF_expand,(const Ipp8u* ikm, int ikmLen,
634-
Ipp8u* okm, int okmLen,
635-
const Ipp8u* salt, int saltLen,
636-
const Ipp8u* info, int infoLen,
637-
const IppsHashMethod* pMethod))
633+
/* HMAC-based Extract-and-Expand Key Derivation Function (HKDF) */
634+
IPPAPI(IppStatus, ippsHKDF,(const Ipp8u* ikm, int ikmLen,
635+
Ipp8u* okm, int okmLen,
636+
const Ipp8u* salt, int saltLen,
637+
const Ipp8u* info, int infoLen,
638+
const IppsHashMethod* pMethod))
638639

639640
/*
640641
// =========================================================

include/ippcp/fips_cert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ enum FIPS_IPPCP_FUNC {
239239
GFpECESEncrypt_SM2,
240240
GFpECESDecrypt_SM2,
241241
GFpECESFinal_SM2,
242-
HKDF_expand,
242+
HKDF,
243243
XMSSVerify,
244244
XMSSKeyGen,
245245
XMSSSign

sources/ippcp/exports.linux.lib-export

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ EXTERN (ippsLMSPublicKeyStateGetSize)
497497
EXTERN (ippsLMSSetPublicKeyState)
498498
EXTERN (ippsLMSSetSignatureState)
499499
EXTERN (ippsLMSVerify)
500-
EXTERN (ippsHKDF_expand)
500+
EXTERN (ippsHKDF)
501501
EXTERN (ippsXMSSKeyGenBufferGetSize)
502502
EXTERN (ippsXMSSSignBufferGetSize)
503503
EXTERN (ippsXMSSPrivateKeyStateGetSize)
@@ -1008,7 +1008,7 @@ VERSION {
10081008
ippsLMSSetPublicKeyState;
10091009
ippsLMSSetSignatureState;
10101010
ippsLMSVerify;
1011-
ippsHKDF_expand;
1011+
ippsHKDF;
10121012
ippsXMSSKeyGenBufferGetSize;
10131013
ippsXMSSSignBufferGetSize;
10141014
ippsXMSSPrivateKeyStateGetSize;

sources/ippcp/exports.linux.selftests-export

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ EXTERN (ippsLMSPublicKeyStateGetSize)
497497
EXTERN (ippsLMSSetPublicKeyState)
498498
EXTERN (ippsLMSSetSignatureState)
499499
EXTERN (ippsLMSVerify)
500-
EXTERN (ippsHKDF_expand)
500+
EXTERN (ippsHKDF)
501501
EXTERN (ippsXMSSKeyGenBufferGetSize)
502502
EXTERN (ippsXMSSSignBufferGetSize)
503503
EXTERN (ippsXMSSPrivateKeyStateGetSize)
@@ -1067,7 +1067,7 @@ VERSION {
10671067
ippsLMSSetPublicKeyState;
10681068
ippsLMSSetSignatureState;
10691069
ippsLMSVerify;
1070-
ippsHKDF_expand;
1070+
ippsHKDF;
10711071
ippsXMSSKeyGenBufferGetSize;
10721072
ippsXMSSSignBufferGetSize;
10731073
ippsXMSSPrivateKeyStateGetSize;

sources/ippcp/ippcp.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ ippsLMSPublicKeyStateGetSize
499499
ippsLMSSetPublicKeyState
500500
ippsLMSSetSignatureState
501501
ippsLMSVerify
502-
ippsHKDF_expand
502+
ippsHKDF
503503
ippsXMSSKeyGenBufferGetSize
504504
ippsXMSSSignBufferGetSize
505505
ippsXMSSPrivateKeyStateGetSize

sources/ippcp/ippcp_fips_selftests.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ ippsLMSPublicKeyStateGetSize
499499
ippsLMSSetPublicKeyState
500500
ippsLMSSetSignatureState
501501
ippsLMSVerify
502-
ippsHKDF_expand
502+
ippsHKDF
503503
ippsXMSSKeyGenBufferGetSize
504504
ippsXMSSSignBufferGetSize
505505
ippsXMSSPrivateKeyStateGetSize

sources/ippcp/pcphkdf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define MAX_HKDF_INFO_SIZE (128)
2626

2727
/*F*
28-
// Name: ippsHKDF_expand
28+
// Name: ippsHKDF
2929
//
3030
// Purpose: HMAC-based Extract-and-Expand Key Derivation Function (HKDF).
3131
//
@@ -52,7 +52,7 @@
5252
//
5353
*F*/
5454
IPPFUN(IppStatus,
55-
ippsHKDF_expand,
55+
ippsHKDF,
5656
(const Ipp8u* ikm,
5757
int ikm_len,
5858
Ipp8u* okm,

0 commit comments

Comments
 (0)