Searched refs:performSHA1WithinKernelOnly (Results 1 - 2 of 2) sorted by relevance

/darwin-on-arm/xnu/libkern/crypto/
H A Dcorecrypto_sha1.c97 static InKernelPerformSHA1Func performSHA1WithinKernelOnly; variable
105 if(!OSCompareAndSwapPtr((void *)NULL, (void *)func, (void * volatile *)&performSHA1WithinKernelOnly)) {
111 performSHA1WithinKernelOnly = NULL;
H A Dlocalcrypto_sha1.c152 InKernelPerformSHA1Func performSHA1WithinKernelOnly; variable
236 if(!OSCompareAndSwapPtr((void *)NULL, (void *)func, (void * volatile *)&performSHA1WithinKernelOnly)) {
242 performSHA1WithinKernelOnly = NULL;
253 result = performSHA1WithinKernelOnly(SHA1Ref, data, dataLen, inHashBuffer, options, inHashBuffer, usePhysicalAddress);
274 * "performSHA1WithinKernelOnly" is initialized only when the hardware driver exists and is ready.
279 if((inputLen == PAGE_SIZE) && performSHA1WithinKernelOnly) { // If hardware exists and is ready.
300 if((inputLen > SHA1_USE_HARDWARE_THRESHOLD) && performSHA1WithinKernelOnly) {

Completed in 14 milliseconds