An RSA key. More...
Instance Methods | |
(NSMutableData *) | - coefficient |
Gets the private value inverse-Q. More... | |
(NSMutableData *) | - exponent1 |
Gets the private value DP. More... | |
(NSMutableData *) | - exponent2 |
Gets the private value DQ. More... | |
(NSMutableData *) | - getBytes |
Serializes this key to binary. 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 |
(NSMutableData *) | - modulus |
Gets the public value N. More... | |
(NSMutableData *) | - prime1 |
Gets the private value P. More... | |
(NSMutableData *) | - prime2 |
Gets the private value Q. More... | |
(NSMutableData *) | - privateExponent |
Gets the private value D. More... | |
(NSMutableData *) | - publicExponent |
Gets the public value E. More... | |
(void) | - setCoefficient: |
Sets the private value inverse-Q. More... | |
(void) | - setExponent1: |
Sets the private value DP. More... | |
(void) | - setExponent2: |
Sets the private value DQ. More... | |
(void) | - setModulus: |
Sets the public value N. More... | |
(void) | - setPrime1: |
Sets the private value P. More... | |
(void) | - setPrime2: |
Sets the private value Q. More... | |
(void) | - setPrivateExponent: |
Sets the private value D. More... | |
(void) | - setPublicExponent: |
Sets the public value E. More... | |
(int) | - size |
Gets the size of the key. More... | |
(FMLiveSwitchAsymmetricKeyType) | - type |
Gets the key type. More... | |
Class Methods | |
(FMLiveSwitchRsaKey *) | + parseBuffer: |
Deserializes a key from binary. More... | |
(FMLiveSwitchRsaKey *) | + parseBytes: |
Deserializes a key from binary. More... | |
(FMLiveSwitchRsaKey *) | + rsaKey |
Class Methods inherited from FMLiveSwitchAsymmetricKey | |
(FMLiveSwitchAsymmetricKey *) | + asymmetricKey |
(FMLiveSwitchAsymmetricKey *) | + createKeyWithKeyType: |
Creates a key. More... | |
An RSA key.
- (NSMutableData*) coefficient |
Gets the private value inverse-Q.
- (NSMutableData*) exponent1 |
Gets the private value DP.
- (NSMutableData*) exponent2 |
Gets the private value DQ.
- (NSMutableData*) getBytes |
Serializes this key to binary.
- (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.
- (NSMutableData*) modulus |
Gets the public value N.
+ (FMLiveSwitchRsaKey*) parseBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
Deserializes a key from binary.
buffer | The buffer. |
+ (FMLiveSwitchRsaKey*) parseBytes: | (NSMutableData *) | bytes |
Deserializes a key from binary.
bytes | The bytes. |
- (NSMutableData*) prime1 |
Gets the private value P.
- (NSMutableData*) prime2 |
Gets the private value Q.
- (NSMutableData*) privateExponent |
Gets the private value D.
- (NSMutableData*) publicExponent |
Gets the public value E.
+ (FMLiveSwitchRsaKey*) rsaKey |
- (void) setCoefficient: | (NSMutableData *) | value |
Sets the private value inverse-Q.
- (void) setExponent1: | (NSMutableData *) | value |
Sets the private value DP.
- (void) setExponent2: | (NSMutableData *) | value |
Sets the private value DQ.
- (void) setModulus: | (NSMutableData *) | value |
Sets the public value N.
- (void) setPrime1: | (NSMutableData *) | value |
Sets the private value P.
- (void) setPrime2: | (NSMutableData *) | value |
Sets the private value Q.
- (void) setPrivateExponent: | (NSMutableData *) | value |
Sets the private value D.
- (void) setPublicExponent: | (NSMutableData *) | value |
Sets the public value E.
- (int) size |
Gets the size of the key.
- (FMLiveSwitchAsymmetricKeyType) type |
Gets the key type.
Implements FMLiveSwitchAsymmetricKey.