PrivateKeyEC

public final class PrivateKeyEC : PrivateKey

Class that describes a private EC key object. Inherits from PrivateKey.

  • Returns the elliptic curve parameters.

    Declaration

    Swift

    public func getECParams(completionHandler: @escaping (_ ecParams: Data?, _ error: NSError?) -> Void)

    Parameters

    completionHandler

    The completion handler block to be called as soon as the elliptic curve parameters is retrieved. It takes the following parameters:

    • ecParams Data?: The elliptic curve parameters (in DER format).
    • error NSError?: nil if the elliptic curve parameters are retrieved successfully; otherwise an error encapsulates the reason of failure.

    Note

    The completion handler is executed on the same type of DispatchQueue as in the calling code.