Skip to content

Instantly share code, notes, and snippets.

View julianwa's full-sized avatar

Julian Walker julianwa

  • Eng Manager @ Google
  • Seattle, WA
  • X @julianwa
View GitHub Profile

Keybase proof

I hereby claim:

  • I am julianwa on github.
  • I am julianwa (https://keybase.io/julianwa) on keybase.
  • I have a public key whose fingerprint is F09B 06D3 74CD 3CE7 3A0D AF46 7408 EE77 3660 5D27

To claim this, I am signing this object:

@julianwa
julianwa / gist:7304893
Last active December 27, 2015 09:39
Asmmetric keypair generation
- (void)generateKeyPair:(NSUInteger)keySize {
OSStatus sanityCheck = noErr;
publicKeyRef = NULL;
privateKeyRef = NULL;
LOGGING_FACILITY1( keySize == 512 || keySize == 1024 || keySize == 2048, @"%d is an invalid and unsupported key size.", keySize );
// First delete current keys.
[self deleteAsymmetricKeys];