GFPSetElementRandom

Assigns a random value to an element of the GF(p) field.

Syntax

IppStatus ippsGFPSetElementRandom(IppsGFPElement *pGFpElement, IppsGFPState *pGFp, IppBitSupplier rndFunc, void* pRndParam);

Parameters

pGFpElement

Pointer to the context of the GF(p) element.

pGFp

Pointer to the context of the GF(p) field.

rndFunc

Function that generates random sequences.

pRndParam

Pointer to the context of a random sequence generator.

Description

This function is declared in the ippcp.h file. The function assigns a random value to the given element of the GF(p) field.

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.

ippContextMatchErr

Indicates an error condition if any of the IppsGFPState or IppsGFPElement context parameters does not match the operation.

See Also


Submit feedback on this help topic

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