Lines Matching refs:wrapKey
258 encryptString(SecKeyRef wrapKey, CFDataRef iv, CFStringRef str)
264 SecTransformRef encryptTrans = SecEncryptTransformCreate(wrapKey, &error);
285 decryptString(SecKeyRef wrapKey, CFDataRef iv, CFDataRef wrappedPassword)
291 SecTransformRef decryptTrans = SecDecryptTransformCreate(wrapKey, &error);
373 SecKeyRef wrapKey = secDeriveKeyFromAnswers(answers, theLocale);
375 if((wrappedPassword = encryptString(wrapKey, iv, password)) != NULL) {
386 CFRelease(wrapKey);
414 SecKeyRef wrapKey = secDeriveKeyFromAnswers(answers, theLocale);
420 CFStringRef recoveryPassword = decryptString(wrapKey, iv, wrappedPassword);
421 CFRelease(wrapKey);