Takes the square root of an element of the GF(p) field.
IppStatus ippsGFPSqrt(const IppsGFPElement *pGFpElementA, IppsGFPElement *pGFpElementR, IppsGFPState *pGFp);
pGFpElementA |
Pointer to the context of the given GF(p) element. |
pGFpElementR |
Pointer to the context of the resulting GF(p) element. |
pGFp |
Pointer to the context of the GF(p) field. |
This function is declared in the ippcp.h file. The function computes the square root of a given element of the GF(p) field. The following pseudocode represents this operation: R = A(1/2).
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. |
ippStsSqrtNegErr |
Indicates an error condition if a square non-residue element is attempted. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.