¡@

Home 

2014/10/15 ¤U¤È 10:13:05

iphone Programming Glossary: querypublickey

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

noErr SecKeyRef publicKeyReference NULL if publicKeyReference NULL self generateKeyPair 512 NSMutableDictionary queryPublicKey NSMutableDictionary alloc init Set the public key query dictionary. queryPublicKey setObject __bridge id kSecClassKey forKey.. 512 NSMutableDictionary queryPublicKey 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.. 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 forKey..

RSA implementations in Objective C

http://stackoverflow.com/questions/10222524/rsa-implementations-in-objective-c

noErr SecKeyRef publicKeyReference NULL if publicKeyReference NULL self generateKeyPair 512 NSMutableDictionary queryPublicKey NSMutableDictionary alloc init Set the public key query dictionary. queryPublicKey setObject __bridge id kSecClassKey forKey.. 512 NSMutableDictionary queryPublicKey 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.. 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 forKey..

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

SecItemCopyMatching . NSData getPublicKeyBits OSStatus sanityCheck noErr NSData publicKeyBits nil NSMutableDictionary queryPublicKey NSMutableDictionary alloc init Set the public key query dictionary. queryPublicKey setObject id kSecClassKey forKey id kSecClass.. nil NSMutableDictionary queryPublicKey NSMutableDictionary alloc init Set the public key query dictionary. queryPublicKey setObject id kSecClassKey forKey id kSecClass queryPublicKey setObject publicTag forKey id kSecAttrApplicationTag queryPublicKey.. 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 id kSecAttrKeyType..