PublicKeyEC
public final class PublicKeyEC : PublicKey
Class that describes a public EC key object. Inherits from PublicKey
.
-
Returns the elliptic curve point of the key.
Declaration
Swift
public func getECPoint(completionHandler: @escaping (_ ecPoint: Data?, _ error: NSError?) -> Void)
Parameters
completionHandler
The completion handler block to be called as soon as the public exponent is retrieved. It takes the following parameters:
- ecPoint
Data?
: The elliptic curve point (in DER format). - error
NSError?
:nil
if the elliptic curve point is retrieved successfully; otherwise an error encapsulates the reason of failure.
Note
The completion handler is executed on the same type ofDispatchQueue
as in the calling code. - ecPoint
-
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 ofDispatchQueue
as in the calling code. - ecParams