¡@

Home 

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

iphone Programming Glossary: ksecattrkeytype

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.. forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef Get the key. sanityCheck SecItemCopyMatching.. 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..

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.. forKey __bridge id kSecAttrApplicationTag queryPublicKey setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef Get the key. sanityCheck SecItemCopyMatching.. 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..

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.. publicKey NULL SecKeyRef privateKey NULL keyPairAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType keyPairAttr setObject NSNumber numberWithInt bits forKey __bridge id kSecAttrKeySizeInBits privateKeyAttr setObject NSNumber.. 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.. setObject id kSecClassKey forKey id kSecClass peerPublicKeyAttr setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey id kSecAttrApplicationTag peerPublicKeyAttr setObject publicKey forKey id kSecValueData..

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... setObject publicTag forKey id kSecAttrApplicationTag queryPublicKey setObject id kSecAttrKeyTypeRSA forKey id kSecAttrKeyType queryPublicKey setObject NSNumber numberWithBool YES forKey id kSecReturnData Get the key bits. sanityCheck SecItemCopyMatching..

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.. forKey __bridge id kSecClass peerPublicKeyAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey __bridge id kSecAttrApplicationTag peerPublicKeyAttr setObject testPubKey forKey..

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.. forKey __bridge id kSecClass peerPublicKeyAttr setObject __bridge id kSecAttrKeyTypeRSA forKey __bridge id kSecAttrKeyType peerPublicKeyAttr setObject peerTag forKey __bridge id kSecAttrApplicationTag peerPublicKeyAttr setObject testPubKey forKey..