Rijndael128DecryptCCM_u8

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

Syntax

IppStatus ippsRijndael128DecryptCCM_u8(const Ipp8u* pNonce, int nonceLen, const Ipp8u* pAssc, int asscLen, const Ipp8u* pSrc, int 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 it.

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]. Unlike Rijndael128DecryptCCM, Rijndael128DecryptCCM_u8 employs the int data type for all length parameters. Use this function rather than Rijndael128DecryptCCM.

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

asscLen 0

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.