Visible to Intel only — GUID: GUID-D05A2C8D-A34F-4AA2-A0B9-A102B5B459F3
Visible to Intel only — GUID: GUID-D05A2C8D-A34F-4AA2-A0B9-A102B5B459F3
GFpSetElementRandom
Assigns a random value to an element of the finite field.
Syntax
IppStatus1 ippsGFpSetElementRandom(IppsGFpElement* pR, IppsGFpState* pGFp, IppBitSupplier rndFunc, void* pRndParam);
Include Files
ippcp.h
Parameters
pR |
Pointer to the context of the finite field element. |
pGFp |
Pointer to the context of the finite field. |
rndFunc |
Pseudorandom number generator. |
pRndParam |
Pointer to the context of the pseudorandom number generator. |
Description
This function assigns a random value to an element of the finite field.
Return Values
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the pointers pR, pGFp and rndFunc is NULL. |
ippStsContextMatchErr |
Indicates an error condition if any of pGFp or pR context parameters does not match the operation. |
ippStsErr |
Indicates an error condition in the following cases:
|
ippStsOutOfRangeErr |
Indicates an error condition if the length of the element stored in the context pR is not equal to the length of an element of the finite field specified by the context pGFp. |