Rijndael128EncryptCCM

DEPRECATED. Encrypts a variable length data stream and generates its authentication tag in the CCM mode.

Syntax

IppStatus ippsRijndael128EncryptCCM(const Ipp8u* pNonce, Ipp32u nonceLen, const Ipp8u* pAssc, Ipp64u asscLen, const Ipp8u* pSrc, Ipp64u srcLen, int macLen, Ipp8u* pDst, const IppsRijndael128Spec* pCtx);

Parameters

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.

Description

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 Counter with Cipher Block Chaining-Message Authentication Code (CCM) mode, as specified in [NIST SP 800-38C]. Unless you have successfully implemented the encryption with this function, you are encouraged to use the newer function Rijndael128EncryptCCM_u8 having the same functionality.

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.

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.


Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.