You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ A note about FF2: FF2 was originally NOT recommended by NIST, but it is under re
14
14
15
15
This implementation is based on openssl's BIGNUM and AES, so you need to install openssl first.
16
16
17
-
There are several functions for FF1 and FF2 algorithm, respectively.
17
+
There are several functions for FF1 and FF3 algorithm, respectively.
18
18
19
19
1. Set and unset ff1 key and tweak
20
20
@@ -45,7 +45,7 @@ void FPE_ff1_encrypt(unsigned int *in, unsigned int *out, unsigned int inlen, FP
45
45
| out | encrypted numeral string, represented as an array of integers |
46
46
| inlen | the length of input numeral string (in) |
47
47
| key | FPE_KEY structure that have been set with key and tweak |
48
-
| enc | can be two value: FPE_ENCRYP for encryp and FPE_DECRYPT for decrypt |
48
+
| enc | can be two value: FPE_ENCRYPT for encrypt and FPE_DECRYPT for decrypt |
49
49
50
50
3. Set ff3 key and tweak
51
51
@@ -75,7 +75,7 @@ void FPE_ff3_encrypt(unsigned int *in, unsigned int *out, unsigned int inlen, FP
75
75
| out | encrypted numeral string, represented as an array of integers |
76
76
| inlen | the length of input numeral string (in) |
77
77
| key | FPE_KEY structure that have been set with key and tweak |
78
-
| enc | can be two value: FPE_ENCRYP for encryp and FPE_DECRYPT for decrypt |
78
+
| enc | can be two value: FPE_ENCRYPT for encrypt and FPE_DECRYPT for decrypt |
79
79
80
80
The example code is [test.c](https://github.com/0NG/Format-Preserving-Encryption/blob/master/test.c). Also, there are some official [test vectors](http://csrc.nist.gov/groups/ST/toolkit/examples.html) for both FF1 and FF3 provided by NIST. They may help you get started.
0 commit comments