mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
0b49037179
// FREEBIE
13 lines
474 B
Objective-C
13 lines
474 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
/// 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).
|
|
+ (NSData *)generateSecureRandomData:(NSUInteger)length;
|
|
|
|
@end
|