MumbleKit
 All Classes Functions
Instance Methods | Class Methods | List of all members
MKRSAKeyPair Class Reference

#import <MumbleKit/MKCertificate.h>

Inheritance diagram for MKRSAKeyPair:

Instance Methods

(NSData *) - publicKey
 
(NSData *) - privateKey
 

Class Methods

(MKRSAKeyPair *) + generateKeyPairOfSize:withDelegate:
 

Detailed Description

MKRSAKeyPair implements generation of RSA key pairs.

Method Documentation

+ (MKRSAKeyPair *) generateKeyPairOfSize: (NSUInteger)  bits
withDelegate: (id< MKRSAKeyPairDelegate >)  delegate 

Generate a new RSA keypair with bits key size. If a delegate is provided, the key generation will be performed asynchronously on a distinct dispatch queue. If no delegate is provided, the key generation is performed in the context in which the method is called.

Parameters
bitsThe size of the generated keys specified in bits.
delegateThe delegate the MKRSAKeyPair should call its rsaKeyPairDidFinishGenerating: method on. If no delegate is specified, this method will block the thread it is run in while generating. If a delegate is specified, it will perform its key generation in a separate dispatch queue, and call the delegate on the main thread.
Returns
A MKRSAKeyPair with a private and a public RSA key of bits length.

The documentation for this class was generated from the following file: