switch to commoncrypto for secure memory functions