¡@

Home 

2014/10/15 ¤U¤È 10:10:47

iphone Programming Glossary: ksecattrapplicationtag

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

setObject __bridge id kSecClassKey forKey __bridge id kSecClass queryPublicKey setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPublicKey setObject NSNumber.. __bridge id kSecClassKey forKey __bridge id kSecClass queryPrivateKey setObject privateTag forKey __bridge id kSecAttrApplicationTag queryPrivateKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPrivateKey setObject NSNumber.. numberWithBool YES forKey __bridge id kSecAttrIsPermanent privateKeyAttr setObject privateTag forKey __bridge id kSecAttrApplicationTag See SecKey.h to set other flag values. Set the public key dictionary. publicKeyAttr setObject NSNumber numberWithBool YES..

RSA implementations in Objective C

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

setObject __bridge id kSecClassKey forKey __bridge id kSecClass queryPublicKey setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPublicKey setObject NSNumber.. __bridge id kSecClassKey forKey __bridge id kSecClass queryPrivateKey setObject privateTag forKey __bridge id kSecAttrApplicationTag queryPrivateKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPrivateKey setObject NSNumber.. numberWithBool YES forKey __bridge id kSecAttrIsPermanent privateKeyAttr setObject privateTag forKey __bridge id kSecAttrApplicationTag See SecKey.h to set other flag values. Set the public key dictionary. publicKeyAttr setObject NSNumber numberWithBool YES..

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

numberWithBool YES forKey __bridge id kSecAttrIsPermanent privateKeyAttr setObject privateTag forKey __bridge id kSecAttrApplicationTag publicKeyAttr setObject NSNumber numberWithBool YES forKey __bridge id kSecAttrIsPermanent publicKeyAttr setObject publicTag.. numberWithBool YES forKey __bridge id kSecAttrIsPermanent publicKeyAttr setObject publicTag forKey __bridge id kSecAttrApplicationTag keyPairAttr setObject privateKeyAttr forKey __bridge id kSecPrivateKeyAttrs keyPairAttr setObject publicKeyAttr forKey __bridge.. id kSecClassKey forKey __bridge_transfer id kSecClass queryPublicKey setObject publicTag forKey __bridge_transfer id kSecAttrApplicationTag queryPublicKey setObject __bridge_transfer id kSecAttrKeyTypeRSA forKey __bridge_transfer id kSecAttrKeyType queryPublicKey..

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

setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey id kSecAttrApplicationTag peerPublicKeyAttr setObject publicKey forKey id kSecValueData peerPublicKeyAttr setObject NSNumber numberWithBool YES 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

dictionary. queryPublicKey setObject id kSecClassKey forKey id kSecClass queryPublicKey setObject publicTag forKey id kSecAttrApplicationTag queryPublicKey setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool..

iPhone RSA algorithm with modulus and exponent [duplicate]

http://stackoverflow.com/questions/6665832/iphone-rsa-algorithm-with-modulus-and-exponent

id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey __bridge id kSecAttrApplicationTag peerPublicKeyAttr setObject testPubKey forKey __bridge id kSecValueData peerPublicKeyAttr setObject NSNumber numberWithBool..

RSA Encryption public key?

http://stackoverflow.com/questions/7255991/rsa-encryption-public-key

id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey __bridge id kSecAttrApplicationTag peerPublicKeyAttr setObject testPubKey forKey __bridge id kSecValueData peerPublicKeyAttr setObject NSNumber numberWithBool..