1.1 --- a/MYKeychain-iPhone.m Thu Apr 09 22:27:51 2009 -0700
1.2 +++ b/MYKeychain-iPhone.m Sat Jun 06 15:36:35 2009 -0700
1.3 @@ -106,6 +106,13 @@
1.4 return [[[MYKeyEnumerator alloc] initWithQuery: query] autorelease];
1.5 }
1.6
1.7 +- (MYIdentity*) identityWithDigest: (MYSHA1Digest*)pubKeyDigest {
1.8 + return [MYKeyEnumerator firstItemWithQuery:
1.9 + $mdict({(id)kSecClass, (id)kSecClassIdentity},
1.10 + {(id)kSecAttrPublicKeyHash, pubKeyDigest.asData},
1.11 + {(id)kSecReturnRef, $true})];
1.12 +}
1.13 +
1.14 - (NSEnumerator*) enumerateIdentities {
1.15 NSMutableDictionary *query = $mdict({(id)kSecClass, (id)kSecClassIdentity},
1.16 {(id)kSecMatchLimit, (id)kSecMatchLimitAll},