-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMiscTests.m
More file actions
42 lines (32 loc) · 727 Bytes
/
MiscTests.m
File metadata and controls
42 lines (32 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Misc.m
// KeePass2
//
// Created by Qiang Yu on 1/4/10.
// Copyright 2010 Qiang Yu. All rights reserved.
//
#import <CommonCrypto/CommonDigest.h>
#include <CommonCrypto/CommonHMAC.h>
#import "MiscTests.h"
#import "ByteBuffer.h"
#import "UUID.h"
#import "Utils.h"
#import "KdbPassword.h"
#import "Kdb3Date.h"
@implementation MiscTests
- (void) testKDB3DateUtil{
uint8_t date[7];
date[0]=20; date[1]=10;
date[2]=12; date[3]=13;
date[4]=11; date[5]=06; date[6]=15;
uint8_t buffer[5];
[Kdb3Date date:date ToPacked:buffer];
[Kdb3Date date:date fromPacked:buffer];
[Kdb3Date date:date fromNSDate:[NSDate date]];
for(int i=0; i<7; i++){
NSLog(@"==>%d", date[i]);
}
}
- (void) testTransform{
}
@end