¡@

Home 

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

iphone Programming Glossary: resultcode

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

code ld size lu status plainBufferSize NSLog @ FINAL decrypted text s plainBuffer SecKeyRef getPrivateKeyRef OSStatus resultCode noErr SecKeyRef privateKeyReference NULL NSData privateTag NSData dataWithBytes @ ABCD length strlen const char @ ABCD if.. id kSecAttrKeyType queryPrivateKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef Get the key. resultCode SecItemCopyMatching __bridge CFDictionaryRef queryPrivateKey CFTypeRef privateKeyReference NSLog @ getPrivateKey result.. __bridge CFDictionaryRef queryPrivateKey CFTypeRef privateKeyReference NSLog @ getPrivateKey result code ld resultCode if resultCode noErr privateKeyReference NULL queryPrivateKey release else privateKeyReference privateKey return privateKeyReference..

RSA implementations in Objective C

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

code ld size lu status plainBufferSize NSLog @ FINAL decrypted text s plainBuffer SecKeyRef getPrivateKeyRef OSStatus resultCode noErr SecKeyRef privateKeyReference NULL NSData privateTag NSData dataWithBytes @ ABCD length strlen const char @ ABCD if.. id kSecAttrKeyType queryPrivateKey setObject NSNumber numberWithBool YES forKey __bridge id kSecReturnRef Get the key. resultCode SecItemCopyMatching __bridge CFDictionaryRef queryPrivateKey CFTypeRef privateKeyReference NSLog @ getPrivateKey result.. __bridge CFDictionaryRef queryPrivateKey CFTypeRef privateKeyReference NSLog @ getPrivateKey result code ld resultCode if resultCode noErr privateKeyReference NULL queryPrivateKey release else privateKeyReference privateKey return privateKeyReference..

Barcode reading using picture taken using mobile phone camera

http://stackoverflow.com/questions/1339867/barcode-reading-using-picture-taken-using-mobile-phone-camera

intent.putExtra SCAN_MODE ONE_D_MODE startActivityForResult intent 0 public void onActivityResult int requestCode int resultCode Intent intent if requestCode 0 if resultCode RESULT_OK String contents intent.getStringExtra SCAN_RESULT String format.. intent 0 public void onActivityResult int requestCode int resultCode Intent intent if requestCode 0 if resultCode RESULT_OK String contents intent.getStringExtra SCAN_RESULT String format intent.getStringExtra SCAN_RESULT_FORMAT Handle..