OLMKit: Expose PK private key length
This commit is contained in:
parent
1aafac2874
commit
59076a6bda
2 changed files with 12 additions and 1 deletions
|
@ -59,6 +59,13 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
*/
|
*/
|
||||||
- (NSString *)decryptMessage:(OLMPkMessage*)message error:(NSError* _Nullable *)error;
|
- (NSString *)decryptMessage:(OLMPkMessage*)message error:(NSError* _Nullable *)error;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Private key length.
|
||||||
|
|
||||||
|
@return the length in bytes.
|
||||||
|
*/
|
||||||
|
+ (NSUInteger)privateKeyLength;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
|
@ -189,6 +189,10 @@
|
||||||
return plaintext;
|
return plaintext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ (NSUInteger)privateKeyLength {
|
||||||
|
return olm_pk_private_key_length();
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark OLMSerializable
|
#pragma mark OLMSerializable
|
||||||
|
|
||||||
/** Initializes from encrypted serialized data. Will throw error if invalid key or invalid base64. */
|
/** Initializes from encrypted serialized data. Will throw error if invalid key or invalid base64. */
|
||||||
|
|
Loading…
Reference in a new issue