KeyUtils Class Reference

Inherits from NSObject
Declared in KeyUtils.h
KeyUtils.m

Overview

Class is used to persist and fetch Public and Private Keys.

+ generateKeyPair

Used to generate key pair with custom tag or default one.

+ (KeyPair *)generateKeyPair

Discussion

Used to generate key pair with custom tag or default one.

Declared In

KeyUtils.h

+ getPublicKeyRef

Gets reference to default public key from keychain.

+ (SecKeyRef)getPublicKeyRef

Discussion

Gets reference to default public key from keychain.

Declared In

KeyUtils.h

+ getPrivateKeyRef

Gets reference to default private key from keychain.

+ (SecKeyRef)getPrivateKeyRef

Discussion

Gets reference to default private key from keychain.

Declared In

KeyUtils.h

+ getKeyRefByTag:

Used to get key ref by selected tag from keychain.

+ (SecKeyRef)getKeyRefByTag:(NSData *)tag

Discussion

Used to get key ref by selected tag from keychain.

Declared In

KeyUtils.h

+ getPublicKey

Gets default raw public key from keychain.

+ (NSData *)getPublicKey

Discussion

Gets default raw public key from keychain.

Declared In

KeyUtils.h

+ storePublicKey:withTag:

Used to store remote key to keychain.

+ (SecKeyRef)storePublicKey:(NSData *)publicKey withTag:(NSData *)tag

Discussion

Used to store remote key to keychain.

Declared In

KeyUtils.h

+ removeKeyByTag:

Used to remove stored key from keychain.

+ (void)removeKeyByTag:(NSData *)tag

Discussion

Used to remove stored key from keychain.

Declared In

KeyUtils.h

+ deleteExistingKeyPair

Used to remove default key pair from keychain. NOTE: for removing key pair with custom tags use (removeKeyByTag:) for each key.

+ (void)deleteExistingKeyPair

Discussion

Used to remove default key pair from keychain. NOTE: for removing key pair with custom tags use (removeKeyByTag:) for each key.

Declared In

KeyUtils.h