ARCFive128Init

Initializes user-supplied memory as the IppsARCFive128Spec context for future use.

Syntax

IppStatus ippsARCFive128Init (const Ipp8u *pKey, int keylen, int rounds, IppsARCFive128Spec* pCtx);

Parameters

pKey

Pointer to the RC5 key.

keylen

Key byte stream length in bytes.

rounds

The number of rounds for the cipher.

pCtx

Pointer to the IppsARCFive128Spec context.

Description

This function is declared in the ippcp.h file. The function initializes the memory pointed by pCtx as the IppsARCFive128Spec context. In addition, the function uses the key to provide all necessary key material for both encryption and decryption operations.

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 keylen is less than 1 or greater than 256.

Submit feedback on this help topic

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