Skip to content

Commit 5ec28bd

Browse files
author
Rubtsov, Vasily
committed
IPP Crypto 2019 Update 1
1 parent 67220e3 commit 5ec28bd

24 files changed

+25
-57
lines changed

CHANGELOG.md

100755100644
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
This is a list of notable changes to Intel(R) IPP Cryptography, in reverse chronological order.
44

5-
## 2018-10-15
6-
- Added the new SM2 encryption scheme.
7-
- Added the ability to build the Intel(R) IPP Cryptography library with the Microsoft* Visual C++ Compiler 2017.
8-
- Added the ability to build the Intel(R) IPP Cryptography library with the Intel(R) C++ Compiler 19.
9-
- Changed the range of the message being signed or verified by EC and DLP.
5+
## YYYY-MM-DD
6+
- Added new functionality: the SM2 encryption scheme.
7+
- Added the ability to build the Intel IPP Cryptography library with the Microsoft* Visual C++ Compiler 2017.
8+
- Changed the range of the message being signed/verified by EC and DLP.
109
- Fixed a potential security problem in the DLP signing and key generation functions.
1110
- Fixed a potential security problem in the AES-CTR cipher functions.
12-
- Fixed a potential security problem in the AES-GCM cipher functions.
1311

1412
## 2018-09-07
1513
- Deprecated the ARCFour functionality.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ only on the operating systems and tools listed below:
6868

6969
- Intel(R) C++ Compiler 19.0 for Windows\* OS
7070

71-
- Microsoft Visual C++ Compiler\* version 14.14 or higher
71+
- Microsoft Visual C++ Compiler\* version 14.14 or higher
7272
provided by Microsoft Visual Studio\* 2017 version 15.7 or higher
7373

7474
### C/C++\* Compilers for Linux\* OS:
@@ -81,7 +81,7 @@ only on the operating systems and tools listed below:
8181

8282
- Intel(R) C++ Compiler 18.0 for OS X\*
8383

84-
- Intel(R) C++ Compiler 19.0 for OS X\* OS
84+
- Intel(R) C++ Compiler 19.0 for OS X\*
8585

8686
### Assembly Compilers for Windows\* OS:
8787

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);

0 commit comments

Comments
 (0)