generate (method)
Generates a new crypto key.
Syntax
- (void)generate:(NSString*)keyAlgorithm :(NSString*)scheme :(NSString*)schemeParams :(int)keyBits;
public func generate(_ keyAlgorithm: String, _ scheme: String, _ schemeParams: String, _ keyBits: Int32) throws -> Void
Remarks
Call this method to generate a new key or keypair with the desired KeyAlgorithmand KeyBits of length.
The generated key will be populated in the Key property.