Rijndael128DecryptCCM

DEPRECATED. Decrypts and verifies a variable length data stream in the CCM mode.

Syntax

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

Parameters

pNonce

Pointer to the nonce of length.

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 ciphertext data.

srcLen

Length of the input ciphertext * pSrc (in octets).

macLen

Length of the authentication tag in octets.

pDst

Pointer to the resulting plaintext data stream.

pResult

Pointer to the result of verification.

pCtx

Pointer to the IppsRijndael128Spec context.

Description

This function is deprecated. Use Rijndael128CCMDecryptMessage instead of this function.

This function is declared in the ippcp.h file. The function decrypts the input data stream of a variable length and verifies the authentication tag according to the CCM mode, as specified in [NIST SP 800-38C] . Unless you have successfully implemented the decryption with this function, you are encouraged to use the newer function Rijndael128DecryptCCM_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

ndicates an error condition if the length input data does not meet any of the following conditions:

7 nonceLen 13

srcLen > macLen

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.