Skip to content

Commit 1962c66

Browse files
author
Rubtsov, Vasily
committed
IPP Crypto 2019 Update 2
1 parent 67220e3 commit 1962c66

23 files changed

+21
-51
lines changed

include/ippversion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151

5252
#define IPP_VERSION_MAJOR 2019
5353
#define IPP_VERSION_MINOR 0
54-
#define IPP_VERSION_UPDATE 1
54+
#define IPP_VERSION_UPDATE 2
5555

56-
#define IPP_VERSION_STR "2019.0.1 Gold"
56+
#define IPP_VERSION_STR "2019.0.2"
5757

5858
#endif /* IPPVERSION_H__ */

sources/dispatcher/gen_disp_mac64.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
##################################################
9292
DISP= open( os.sep.join([OutDir, "jmp_"+FunName+"_" + hashlib.sha512(FunName.encode('utf-8')).hexdigest()[:8] + ".c"]), 'w' )
9393

94-
DISP.write("""#include "ippcp.h"\n\n#pragma warning(disable : 1478 1786) // deprecated\n\n""")
94+
DISP.write("""#include "ippcp.h"\n\n#pragma warning(disable : 1478) // deprecated\n\n""")
9595

9696
DISP.write("typedef "+FunType+" (*IPP_PROC)"+FunArg+";\n\n")
9797
DISP.write("extern int ippcpJumpIndexForMergedLibs;\n")

sources/ippcp/pcpaesm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
__INLINE int cpSizeofCtx_AES(void)
6767
{
6868
return sizeof(IppsAESSpec)
69-
+ AES_ALIGNMENT;
69+
+(AES_ALIGNMENT-1);
7070
}
7171

7272
#endif /* _PCP_AES_H */

sources/ippcp/pcpgfpecesgetbufferssizesm2.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
// Purpose: Returns sizes of used buffers
5959
//
6060
// Returns: Reason:
61-
// ippStsNullPtrErr pState == NULL if pPublicKeySize != NULL or all the pointers are NULLs
61+
// ippStsNullPtrErr pState == NULL if pPublicKeySize != NULL
6262
// ippStsContextMatchErr pState invalid context if pPublicKeySize != NULL
6363
// ippStsNoErr no errors
6464
//
@@ -70,7 +70,6 @@
7070
*F*/
7171
IPPFUN(IppStatus, ippsGFpECESGetBuffersSize_SM2, (int* pPublicKeySize,
7272
int* pMaximumTagSize, const IppsECESState_SM2* pState)) {
73-
IPP_BADARG_RET(pPublicKeySize == NULL && pMaximumTagSize == NULL && pState == NULL, ippStsNullPtrErr);
7473

7574
if (pMaximumTagSize)
7675
*pMaximumTagSize = IPP_SM3_DIGEST_BITSIZE / BYTESIZE;

sources/ippcp/pcphmac_duplicate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ IPPFUN(IppStatus, ippsHMAC_Duplicate,(const IppsHMACState* pSrcCtx, IppsHMACStat
7979
/* test state pointers */
8080
IPP_BAD_PTR2_RET(pSrcCtx, pDstCtx);
8181
/* test states ID */
82-
pSrcCtx = (IppsHMACState*)( IPP_ALIGNED_PTR(pSrcCtx, HASH_ALIGNMENT) );
83-
pDstCtx = (IppsHMACState*)( IPP_ALIGNED_PTR(pDstCtx, HASH_ALIGNMENT) );
8482
IPP_BADARG_RET(!HMAC_VALID_ID(pSrcCtx), ippStsContextMatchErr);
8583

8684
/* copy HMAC state */

sources/ippcp/pcphmac_final.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ IPPFUN(IppStatus, ippsHMAC_Final,(Ipp8u* pMD, int mdLen, IppsHMACState* pCtx))
7575
{
7676
/* test state pointer and ID */
7777
IPP_BAD_PTR1_RET(pCtx);
78-
pCtx = (IppsHMACState*)( IPP_ALIGNED_PTR(pCtx, HASH_ALIGNMENT) );
7978
IPP_BADARG_RET(!HMAC_VALID_ID(pCtx), ippStsContextMatchErr);
8079

8180
/* test MD pointer and length */

sources/ippcp/pcphmac_getsize.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ IPPFUN(IppStatus, ippsHMAC_GetSize,(int* pSize))
7272
/* test size's pointer */
7373
IPP_BAD_PTR1_RET(pSize);
7474

75-
*pSize = sizeof(IppsHMACState)
76-
+ HASH_ALIGNMENT;
75+
*pSize = sizeof(IppsHMACState);
7776
return ippStsNoErr;
7877
}

sources/ippcp/pcphmac_gettag.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ IPPFUN(IppStatus, ippsHMAC_GetTag,(Ipp8u* pMD, int mdLen, const IppsHMACState* p
7676
{
7777
/* test state pointer and ID */
7878
IPP_BAD_PTR1_RET(pCtx);
79-
pCtx = (IppsHMACState*)( IPP_ALIGNED_PTR(pCtx, HASH_ALIGNMENT) );
8079
IPP_BADARG_RET(!HMAC_VALID_ID(pCtx), ippStsContextMatchErr);
8180

8281
/* test MD pointer */

sources/ippcp/pcphmac_init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ IPPFUN(IppStatus, ippsHMAC_Init,(const Ipp8u* pKey, int keyLen, IppsHMACState* p
8585

8686
/* test pState pointer */
8787
IPP_BAD_PTR1_RET(pCtx);
88-
pCtx = (IppsHMACState*)( IPP_ALIGNED_PTR(pCtx, HASH_ALIGNMENT) );
8988

9089
/* test key pointer and key length */
9190
IPP_BAD_PTR1_RET(pKey);

sources/ippcp/pcphmac_message.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ IPPFUN(IppStatus, ippsHMAC_Message,(const Ipp8u* pMsg, int msgLen,
102102
IPP_BADARG_RET(0>=mdLen || mdLen>cpHashSize(hashAlg), ippStsLengthErr);
103103

104104
{
105-
__ALIGN8 IppsHMACState ctx;
105+
IppsHMACState ctx;
106106
IppStatus sts = ippsHMAC_Init(pKey, keyLen, &ctx, hashAlg);
107107
if(ippStsNoErr!=sts) goto exit;
108108

0 commit comments

Comments
 (0)