¡@

Home 

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

iphone Programming Glossary: ksecattrkeytypersa

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

queryPublicKey setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef.. queryPrivateKey setObject privateTag forKey __bridge id kSecAttrApplicationTag queryPrivateKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPrivateKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef.. keyPairAttr NSMutableDictionary alloc init Set top level dictionary for the keypair. keyPairAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType keyPairAttr setObject NSNumber numberWithUnsignedInteger keySize forKey __bridge id kSecAttrKeySizeInBits..

RSA implementations in Objective C

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

queryPublicKey setObject publicTag forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef.. queryPrivateKey setObject privateTag forKey __bridge id kSecAttrApplicationTag queryPrivateKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPrivateKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef.. keyPairAttr NSMutableDictionary alloc init Set top level dictionary for the keypair. keyPairAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType keyPairAttr setObject NSNumber numberWithUnsignedInteger keySize forKey __bridge id kSecAttrKeySizeInBits..

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 SecKeyRef publicKey NULL SecKeyRef privateKey NULL keyPairAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType keyPairAttr setObject NSNumber numberWithInt bits forKey __bridge id kSecAttrKeySizeInBits.. setObject publicTag forKey __bridge_transfer id kSecAttrApplicationTag queryPublicKey setObject __bridge_transfer id kSecAttrKeyTypeRSA forKey __bridge_transfer id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey __bridge_transfer..

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

alloc init peerPublicKeyAttr setObject id kSecClassKey forKey id kSecClass peerPublicKeyAttr setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey id kSecAttrApplicationTag peerPublicKeyAttr setObject..

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

forKey id kSecClass queryPublicKey setObject publicTag forKey id kSecAttrApplicationTag queryPublicKey setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey id kSecReturnData Get the key bits...

iPhone RSA algorithm with modulus and exponent [duplicate]

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

setObject __bridge id kSecClassKey forKey __bridge id kSecClass peerPublicKeyAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey __bridge id kSecAttrApplicationTag peerPublicKeyAttr..

RSA Encryption public key?

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

setObject __bridge id kSecClassKey forKey __bridge id kSecClass peerPublicKeyAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey __bridge id kSecAttrApplicationTag peerPublicKeyAttr..