23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#import "OFInvalidArgumentException.h"
#import "OFOutOfMemoryException.h"
#import "OFOutOfRangeException.h"
#import "pbkdf2.h"
void
of_pbkdf2(of_pbkdf2_parameters_t param)
{
void *pool = objc_autoreleasePoolPush();
size_t blocks, digestSize = param.HMAC.digestSize;
OFSecureData *buffer = [OFSecureData
dataWithCount: digestSize
allowsSwappableMemory: param.allowsSwappableMemory];
OFSecureData *digest = [OFSecureData
|
|
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#import "OFInvalidArgumentException.h"
#import "OFOutOfMemoryException.h"
#import "OFOutOfRangeException.h"
#import "pbkdf2.h"
void
OFPBKDF2(OFPBKDF2Parameters param)
{
void *pool = objc_autoreleasePoolPush();
size_t blocks, digestSize = param.HMAC.digestSize;
OFSecureData *buffer = [OFSecureData
dataWithCount: digestSize
allowsSwappableMemory: param.allowsSwappableMemory];
OFSecureData *digest = [OFSecureData
|