An elliptic-curve key. More...
Instance Methods | |
(NSMutableData *) | - getBytes |
Serializes this key to binary. More... | |
(NSString *) | - getString |
Serializes this key to a string. More... | |
(bool) | - hasPrivate |
Returns true if the key contains private information. More... | |
(bool) | - hasPublic |
Returns true if the key contains public information. More... | |
(instancetype) | - init |
(FMLiveSwitchEcdsaNamedCurve) | - namedCurve |
Gets the named curve. More... | |
(NSMutableData *) | - privateKey |
Gets the private key. More... | |
(NSMutableData *) | - publicKey |
Gets the public key. More... | |
(void) | - setNamedCurve: |
Sets the named curve. More... | |
(void) | - setPrivateKey: |
Sets the private key. More... | |
(void) | - setPublicKey: |
Sets the public key. More... | |
(int) | - size |
Gets the size of the key. More... | |
(FMLiveSwitchEcdsaKey *) | - toPublic |
Creates a copy of this key without the private key. More... | |
(FMLiveSwitchAsymmetricKeyType) | - type |
Gets the key type. More... | |
Class Methods | |
(FMLiveSwitchEcdsaKey *) | + ecdsaKey |
(FMLiveSwitchEcdsaKey *) | + parseBuffer:isPrivate: |
Deserializes a key from binary. More... | |
(FMLiveSwitchEcdsaKey *) | + parseBytes:isPrivate: |
Deserializes a key from binary. More... | |
(bool) | + parseSignature:r:s: |
Parses a signature. More... | |
(FMLiveSwitchEcdsaKey *) | + parseStringWithStr: |
Deserializes a key from a string. More... | |
Class Methods inherited from FMLiveSwitchAsymmetricKey | |
(FMLiveSwitchAsymmetricKey *) | + asymmetricKey |
(FMLiveSwitchAsymmetricKey *) | + createKeyWithKeyType: |
Creates a key. More... | |
An elliptic-curve key.
+ (FMLiveSwitchEcdsaKey*) ecdsaKey |
- (NSMutableData*) getBytes |
Serializes this key to binary.
- (NSString*) getString |
Serializes this key to a string.
- (bool) hasPrivate |
Returns true
if the key contains private information.
Implements FMLiveSwitchAsymmetricKey.
- (bool) hasPublic |
Returns true
if the key contains public information.
Implements FMLiveSwitchAsymmetricKey.
- (instancetype) init |
Implements FMLiveSwitchAsymmetricKey.
- (FMLiveSwitchEcdsaNamedCurve) namedCurve |
Gets the named curve.
+ (FMLiveSwitchEcdsaKey*) parseBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
isPrivate: | (bool) | isPrivate | |
Deserializes a key from binary.
buffer | The buffer. |
isPrivate | Whether this is a public key. |
+ (FMLiveSwitchEcdsaKey*) parseBytes: | (NSMutableData *) | bytes | |
isPrivate: | (bool) | isPrivate | |
Deserializes a key from binary.
bytes | The bytes. |
isPrivate | Whether this is a public key. |
+ (bool) parseSignature: | (NSMutableData *) | signature | |
r: | (NSMutableData **) | r | |
s: | (NSMutableData **) | s | |
Parses a signature.
signature | The signature. |
r | The R value. |
s | The S value. |
+ (FMLiveSwitchEcdsaKey*) parseStringWithStr: | (NSString *) | str |
Deserializes a key from a string.
str | The string. |
- (NSMutableData*) privateKey |
Gets the private key.
- (NSMutableData*) publicKey |
Gets the public key.
- (void) setNamedCurve: | (FMLiveSwitchEcdsaNamedCurve) | value |
Sets the named curve.
- (void) setPrivateKey: | (NSMutableData *) | value |
Sets the private key.
- (void) setPublicKey: | (NSMutableData *) | value |
Sets the public key.
- (int) size |
Gets the size of the key.
- (FMLiveSwitchEcdsaKey*) toPublic |
Creates a copy of this key without the private key.
- (FMLiveSwitchAsymmetricKeyType) type |
Gets the key type.
Implements FMLiveSwitchAsymmetricKey.