mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
547 B
C
16 lines
547 B
C
8 years ago
|
//
|
||
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
11 years ago
|
|
||
|
/// All dependencies on external libraries used for cryptography should be hidden behind CryptoTools methods.
|
||
|
/// That way, changing to a different library affects only one part of the system.
|
||
|
|
||
|
@interface CryptoTools : NSObject
|
||
|
|
||
|
/// Returns data composed of 'length' cryptographically unpredictable bytes sampled uniformly from [0, 256).
|
||
8 years ago
|
//
|
||
|
// TODO: Is this redundant with: [SecurityUtils generateRandomBytes]?
|
||
9 years ago
|
+ (NSData *)generateSecureRandomData:(NSUInteger)length;
|
||
11 years ago
|
|
||
|
@end
|