13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
* file.
*/
#include "config.h"
#include <stdlib.h>
#import "OFHMAC.h"
#import "OFSecureData.h"
#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
|
>
<
<
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
* file.
*/
#include "config.h"
#include <stdlib.h>
#import "OFPBKDF2.h"
#import "OFHMAC.h"
#import "OFSecureData.h"
#import "OFInvalidArgumentException.h"
#import "OFOutOfMemoryException.h"
#import "OFOutOfRangeException.h"
void
OFPBKDF2(OFPBKDF2Parameters param)
{
void *pool = objc_autoreleasePoolPush();
size_t blocks, digestSize = param.HMAC.digestSize;
OFSecureData *buffer = [OFSecureData
dataWithCount: digestSize
|