Merge pull request #75 from matrix-org/manuroe/objc_pk_private_key_length
OLMKit: Expose PK private key length
This commit is contained in:
commit
238c512d20
5 changed files with 21 additions and 10 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. */
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0OLMPKEncryption
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
Unless required by applicable law or agreed to in writing, software
|
Unless required by applicable law or agreed to in writing, software
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
@ -1,20 +1,20 @@
|
||||||
PODS:
|
PODS:
|
||||||
- OLMKit (2.0.1):
|
- OLMKit (2.3.0):
|
||||||
- OLMKit/olmc (= 2.0.1)
|
- OLMKit/olmc (= 2.3.0)
|
||||||
- OLMKit/olmcpp (= 2.0.1)
|
- OLMKit/olmcpp (= 2.3.0)
|
||||||
- OLMKit/olmc (2.0.1)
|
- OLMKit/olmc (2.3.0)
|
||||||
- OLMKit/olmcpp (2.0.1)
|
- OLMKit/olmcpp (2.3.0)
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- OLMKit (from `../OLMKit.podspec`)
|
- OLMKit (from `../OLMKit.podspec`)
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
OLMKit:
|
OLMKit:
|
||||||
:path: ../OLMKit.podspec
|
:path: "../OLMKit.podspec"
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
OLMKit: 12a35a69f92c7facdd50b559128d1b4a17857ba7
|
OLMKit: 6af55a19917c35f86df5198c213979ecdf8ba76e
|
||||||
|
|
||||||
PODFILE CHECKSUM: 4e261dae61d833ec5585ced2473023b98909fd35
|
PODFILE CHECKSUM: 4e261dae61d833ec5585ced2473023b98909fd35
|
||||||
|
|
||||||
COCOAPODS: 1.1.1
|
COCOAPODS: 1.6.0.beta.2
|
||||||
|
|
Loading…
Reference in a new issue