iphone Programming Glossary: ksecclass
Iphone - How to encrypt NSData with public key and decrypt with private key? http://stackoverflow.com/questions/10072124/iphone-how-to-encrypt-nsdata-with-public-key-and-decrypt-with-private-key NSMutableDictionary alloc init Set the public key query dictionary. queryPublicKey setObject __bridge id kSecClassKey forKey __bridge id kSecClass queryPublicKey setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey.. alloc init Set the public key query dictionary. queryPublicKey setObject __bridge id kSecClassKey forKey __bridge id kSecClass queryPublicKey setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA.. NSMutableDictionary alloc init Set the private key query dictionary. queryPrivateKey setObject __bridge id kSecClassKey forKey __bridge id kSecClass queryPrivateKey setObject privateTag forKey __bridge id kSecAttrApplicationTag queryPrivateKey..
RSA implementations in Objective C http://stackoverflow.com/questions/10222524/rsa-implementations-in-objective-c NSMutableDictionary alloc init Set the public key query dictionary. queryPublicKey setObject __bridge id kSecClassKey forKey __bridge id kSecClass queryPublicKey setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey.. alloc init Set the public key query dictionary. queryPublicKey setObject __bridge id kSecClassKey forKey __bridge id kSecClass queryPublicKey setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA.. NSMutableDictionary alloc init Set the private key query dictionary. queryPrivateKey setObject __bridge id kSecClassKey forKey __bridge id kSecClass queryPrivateKey setObject privateTag forKey __bridge id kSecAttrApplicationTag queryPrivateKey..
Extracting a public key from key pair in key chain http://stackoverflow.com/questions/11467215/extracting-a-public-key-from-key-pair-in-key-chain NSUTF8StringEncoding Set the public key query dictionary. queryPublicKey setObject __bridge_transfer id kSecClassKey forKey __bridge_transfer id kSecClass queryPublicKey setObject publicTag forKey __bridge_transfer id kSecAttrApplicationTag.. public key query dictionary. queryPublicKey setObject __bridge_transfer id kSecClassKey forKey __bridge_transfer id kSecClass queryPublicKey setObject publicTag forKey __bridge_transfer id kSecAttrApplicationTag queryPublicKey setObject __bridge_transfer..
Access App Identifier Prefix programmatically http://stackoverflow.com/questions/11726672/access-app-identifier-prefix-programmatically by . period as the Bundle Seed ID. NSString bundleSeedID NSDictionary query NSDictionary dictionaryWithObjectsAndKeys kSecClassGenericPassword kSecClass @ bundleSeedID kSecAttrAccount @ kSecAttrService id kCFBooleanTrue kSecReturnAttributes nil.. Seed ID. NSString bundleSeedID NSDictionary query NSDictionary dictionaryWithObjectsAndKeys kSecClassGenericPassword kSecClass @ bundleSeedID kSecAttrAccount @ kSecAttrService id kCFBooleanTrue kSecReturnAttributes nil CFDictionaryRef result nil..
Converting Raw RSA Key value to SecKeyRef Object for Encryption http://stackoverflow.com/questions/1536894/converting-raw-rsa-key-value-to-seckeyref-object-for-encryption peerName length NSMutableDictionary peerPublicKeyAttr NSMutableDictionary alloc init peerPublicKeyAttr setObject id kSecClassKey forKey id kSecClass peerPublicKeyAttr setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType peerPublicKeyAttr setObject.. peerPublicKeyAttr NSMutableDictionary alloc init peerPublicKeyAttr setObject id kSecClassKey forKey id kSecClass peerPublicKeyAttr setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey id..
Importing an SSL cert under the iPhone SDK http://stackoverflow.com/questions/1746005/importing-an-ssl-cert-under-the-iphone-sdk NULL CFDataRef data assert cert NULL err SecItemAdd CFDictionaryRef NSDictionary dictionaryWithObjectsAndKeys id kSecClassCertificate kSecClass cert kSecValueRef nil NULL assert err noErr CFRelease cert This assumes that OFX G3.cer is the intermediate.. data assert cert NULL err SecItemAdd CFDictionaryRef NSDictionary dictionaryWithObjectsAndKeys id kSecClassCertificate kSecClass cert kSecValueRef nil NULL assert err noErr CFRelease cert This assumes that OFX G3.cer is the intermediate SSL certificate..
Storing In App Purchase receipts in the application Keychain http://stackoverflow.com/questions/4978852/storing-in-app-purchase-receipts-in-the-application-keychain it. Here ™s how to create the security item NSMutableDictionary dict NSMutableDictionary dictionary dict setObject id kSecClassGenericPassword forKey id kSecClass dict setObject kYourUpgradeStateKey forKey id kSecAttrService dict setObject kYourUpgradeStateValue.. item NSMutableDictionary dict NSMutableDictionary dictionary dict setObject id kSecClassGenericPassword forKey id kSecClass dict setObject kYourUpgradeStateKey forKey id kSecAttrService dict setObject kYourUpgradeStateValue forKey id kSecValueData.. find the security item to check it ™s value NSMutableDictionary query NSMutableDictionary dictionary query setObject id kSecClassGenericPassword forKey id kSecClass query setObject kYourUpgradeStateKey forKey id kSecAttrService query setObject id kCFBooleanTrue..
Saving SecKeyRef device generated public/private key pair on disk http://stackoverflow.com/questions/5988735/saving-seckeyref-device-generated-public-private-key-pair-on-disk queryPublicKey NSMutableDictionary alloc init Set the public key query dictionary. queryPublicKey setObject id kSecClassKey forKey id kSecClass queryPublicKey setObject publicTag forKey id kSecAttrApplicationTag queryPublicKey setObject id kSecAttrKeyTypeRSA.. NSMutableDictionary alloc init Set the public key query dictionary. queryPublicKey setObject id kSecClassKey forKey id kSecClass queryPublicKey setObject publicTag forKey id kSecAttrApplicationTag queryPublicKey setObject id kSecAttrKeyTypeRSA forKey..
iPhone RSA algorithm with modulus and exponent [duplicate] http://stackoverflow.com/questions/6665832/iphone-rsa-algorithm-with-modulus-and-exponent length NSMutableDictionary peerPublicKeyAttr NSMutableDictionary alloc init peerPublicKeyAttr setObject __bridge id kSecClassKey forKey __bridge id kSecClass peerPublicKeyAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType.. NSMutableDictionary alloc init peerPublicKeyAttr setObject __bridge id kSecClassKey forKey __bridge id kSecClass peerPublicKeyAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType peerPublicKeyAttr setObject..
RSA Encryption public key? http://stackoverflow.com/questions/7255991/rsa-encryption-public-key length NSMutableDictionary peerPublicKeyAttr NSMutableDictionary alloc init peerPublicKeyAttr setObject __bridge id kSecClassKey forKey __bridge id kSecClass peerPublicKeyAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType.. NSMutableDictionary alloc init peerPublicKeyAttr setObject __bridge id kSecClassKey forKey __bridge id kSecClass peerPublicKeyAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType peerPublicKeyAttr setObject..
SFHFKeychainUtils. iOS keychain. ARC compatible http://stackoverflow.com/questions/7663443/sfhfkeychainutils-ios-keychain-arc-compatible item type generic username and service NSArray keys NSArray alloc initWithObjects __bridge_transfer NSString kSecClass kSecAttrAccount kSecAttrService nil NSArray objects NSArray alloc initWithObjects __bridge_transfer NSString kSecClassGenericPassword.. kSecClass kSecAttrAccount kSecAttrService nil NSArray objects NSArray alloc initWithObjects __bridge_transfer NSString kSecClassGenericPassword username serviceName nil NSMutableDictionary query NSMutableDictionary alloc initWithObjects objects forKeys.. to update existing. If not simply do nothing. NSArray keys NSArray alloc initWithObjects __bridge_transfer NSString kSecClass kSecAttrService kSecAttrLabel kSecAttrAccount nil NSArray objects NSArray alloc initWithObjects __bridge_transfer NSString..
|