if (hash == NULL || CFGetTypeID(hash) != CFDataGetTypeID())
MacOSError::throwMe(errSecCSResourcesInvalid);
return CFDataGetBytePtr(CFDataRef(hash));
if (hash == NULL || CFGetTypeID(hash) != CFDataGetTypeID())
MacOSError::throwMe(errSecCSResourcesInvalid);
return CFDataGetBytePtr(CFDataRef(hash));