DEPRECATED. Encrypts a variable length data stream and generates its authentication tag in the CCM mode.
IppStatus ippsRijndael128EncryptCCM_u8(const Ipp8u* pNonce, int nonceLen, const Ipp8u* pAssc, int asscLen, const Ipp8u* pSrc, int srcLen, int macLen, Ipp8u* pDst, const IppsRijndael128Spec* pCtx);
pNonce |
Pointer to the nonce. |
nonceLen |
Length of the nonce *pNonce (in octets). |
pAssc |
Pointer to the assosiated data. |
asscLen |
Length of the assosiated data *pAssc (in octets). |
pSrc |
Pointer to the input plaintext data. |
srcLen |
Length of the input plaintext *pSrc (in octets). |
macLen |
Length of the authentication tag in octets. |
pDst |
Pointer to the resulting ciphertext data stream. |
pCtx |
Pointer to the IppsRijndael128Spec context. |
This function is deprecated. Use Rijndael128CCMEncryptMessage instead of it.
This function is declared in the ippcp.h file. The function encrypts the input data stream of a variable length and computes the authentication tag according to the CCM mode, as specified in [NIST SP 800-38C]. Unlike Rijndael128EncryptCCM, Rijndael128EncryptCCM_u8 employs the int data type for all length parameters. Use this function rather than Rijndael128EncryptCCM.
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. |
ippStsLengthErr |
Indicates an error condition if the length input data does not meet any of the following conditions: 7 ≤ nonceLen ≤ 13 asscLen ≥ 0 srcLen ≥ 1 macLen = 2n, 1 ≤ n ≤ 8. |
ippStsContextMatchErr |
Indicates an error condition if the context parameter does not match the operation. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.