Visible to Intel only — GUID: GUID-70DE8000-59B1-4ECB-A10D-27532673D0D5
Visible to Intel only — GUID: GUID-70DE8000-59B1-4ECB-A10D-27532673D0D5
AES_GCMEncrypt
Encrypts a data buffer in the GCM mode.
Syntax
IppStatus ippsAES_GCMEncrypt(const Ipp8u* pSrc, Ipp8u* pDst, int len, IppsAES_GCMState* pState);
Include Files
ippcp.h
Parameters
pSrc |
Pointer to the input plaintext data stream of a variable length. |
pDst |
Pointer to the resulting ciphertext data stream. |
len |
Length of the plaintext and ciphertext data stream in bytes. |
pState |
Pointer to the IppsAES_GCMState context. |
Description
The function encrypts the input data stream of a variable length according to GCM as specified in NIST SP 800-38D.
Return Values
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsContextMatchErr |
Indicates an error condition if the context parameter does not match the operation. |
ippStsLengthErr |
Indicates an error condition if len is less than zero. |