FMIceLinkEcdsaKey Class Reference
Inherits from | FMIceLinkAsymmetricKey : NSObject |
---|---|
Declared in | FMIceLinkEcdsaKey.h FMIceLinkEcdsaKey.m |
– getBytes
Serializes this key to binary.
- (NSMutableData *)getBytes
Discussion
Serializes this key to binary.
Declared In
FMIceLinkEcdsaKey.h
– getString
Serializes this key to a string.
- (NSString *)getString
Discussion
Serializes this key to a string.
Declared In
FMIceLinkEcdsaKey.h
– hasPrivate
Returns
true
if the key contains
private information.
- (bool)hasPrivate
Discussion
Returns
true
if the key contains
private information.
Declared In
FMIceLinkEcdsaKey.h
– hasPublic
Returns
true
if the key contains
public information.
- (bool)hasPublic
Discussion
Returns
true
if the key contains
public information.
Declared In
FMIceLinkEcdsaKey.h
– namedCurve
Gets the named curve.
- (FMIceLinkEcdsaNamedCurve)namedCurve
Discussion
Gets the named curve.
Declared In
FMIceLinkEcdsaKey.h
+ parseBuffer:isPrivate:
Deserializes a key from binary.
+ (FMIceLinkEcdsaKey *)parseBuffer:(FMIceLinkDataBuffer *)buffer isPrivate:(bool)isPrivate
Parameters
buffer |
The buffer. |
---|---|
isPrivate |
Whether this is a public key. @return |
Discussion
Deserializes a key from binary.
Declared In
FMIceLinkEcdsaKey.h
+ parseBytes:isPrivate:
Deserializes a key from binary.
+ (FMIceLinkEcdsaKey *)parseBytes:(NSMutableData *)bytes isPrivate:(bool)isPrivate
Parameters
bytes |
The bytes. |
---|---|
isPrivate |
Whether this is a public key. @return |
Discussion
Deserializes a key from binary.
Declared In
FMIceLinkEcdsaKey.h
+ parseSignature:r:s:
Parses a signature.
+ (bool)parseSignature:(NSMutableData *)signature r:(NSMutableData **)r s:(NSMutableData **)s
Parameters
signature |
The signature. |
---|---|
r |
The R value. |
s |
The S value. @return |
Discussion
Parses a signature.
Declared In
FMIceLinkEcdsaKey.h
+ parseStringWithStr:
Deserializes a key from a string.
+ (FMIceLinkEcdsaKey *)parseStringWithStr:(NSString *)str
Parameters
str |
The string. @return |
---|
Discussion
Deserializes a key from a string.
Declared In
FMIceLinkEcdsaKey.h
– privateKey
Gets the private key.
- (NSMutableData *)privateKey
Discussion
Gets the private key.
Declared In
FMIceLinkEcdsaKey.h
– publicKey
Gets the public key.
- (NSMutableData *)publicKey
Discussion
Gets the public key.
Declared In
FMIceLinkEcdsaKey.h
– setNamedCurve:
Sets the named curve.
- (void)setNamedCurve:(FMIceLinkEcdsaNamedCurve)value
Discussion
Sets the named curve.
Declared In
FMIceLinkEcdsaKey.h
– setPrivateKey:
Sets the private key.
- (void)setPrivateKey:(NSMutableData *)value
Discussion
Sets the private key.
Declared In
FMIceLinkEcdsaKey.h
– setPublicKey:
Sets the public key.
- (void)setPublicKey:(NSMutableData *)value
Discussion
Sets the public key.
Declared In
FMIceLinkEcdsaKey.h
– size
Gets the size of the key.
- (int)size
Discussion
Gets the size of the key.
Declared In
FMIceLinkEcdsaKey.h
– toPublic
Creates a copy of this key without the private key.
@return
- (FMIceLinkEcdsaKey *)toPublic
Discussion
Creates a copy of this key without the private key.
@return
Declared In
FMIceLinkEcdsaKey.h
– type
Gets the key type.
- (FMIceLinkAsymmetricKeyType)type
Discussion
Gets the key type.
Declared In
FMIceLinkEcdsaKey.h