Created
February 16, 2015 02:07
-
-
Save ianmcmahon/607eb4d54a7d345f7fd5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let parameters: [String: AnyObject] = [ | |
kSecAttrKeyType: kSecAttrKeyTypeRSA, | |
kSecAttrKeySizeInBits: 2048, | |
kSecAttrIsPermanent: true, | |
kSecAttrApplicationTag: "foobar" | |
] | |
var publicKeyPtr, privateKeyPtr: Unmanaged<SecKey>? | |
let result = SecKeyGeneratePair(parameters, &publicKeyPtr, &privateKeyPtr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment