diff -r 3af1d1c0ceb5 -r 2c300b15b381 MYKey.m --- a/MYKey.m Sun Apr 19 21:19:35 2009 -0700 +++ b/MYKey.m Sat Jun 06 15:01:28 2009 -0700 @@ -22,10 +22,11 @@ return [super initWithKeychainItemRef: (SecKeychainItemRef)key]; } -- (id) _initWithKeyData: (NSData*)data +- (id) _initWithKeyData: (NSData*)keyData forKeychain: (SecKeychainRef)keychain { + Assert(keyData!=nil); SecKeyImportExportParameters params = {}; - SecKeyRef key = importKey(data, self.keyType, keychain, ¶ms); + SecKeyRef key = importKey(keyData, self.keyType, keychain, ¶ms); if (!key) { [self release]; return nil;