Skip to content

Commit dc9bb5a

Browse files
author
0NG
authored
Merge pull request #1 from trivialfis/master
Typo
2 parents 9d5a680 + 9f9ba54 commit dc9bb5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A note about FF2: FF2 was originally NOT recommended by NIST, but it is under re
1414

1515
This implementation is based on openssl's BIGNUM and AES, so you need to install openssl first.
1616

17-
There are several functions for FF1 and FF2 algorithm, respectively.
17+
There are several functions for FF1 and FF3 algorithm, respectively.
1818

1919
1. Set and unset ff1 key and tweak
2020

@@ -45,7 +45,7 @@ void FPE_ff1_encrypt(unsigned int *in, unsigned int *out, unsigned int inlen, FP
4545
| out | encrypted numeral string, represented as an array of integers |
4646
| inlen | the length of input numeral string (in) |
4747
| 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 |
4949

5050
3. Set ff3 key and tweak
5151

@@ -75,7 +75,7 @@ void FPE_ff3_encrypt(unsigned int *in, unsigned int *out, unsigned int inlen, FP
7575
| out | encrypted numeral string, represented as an array of integers |
7676
| inlen | the length of input numeral string (in) |
7777
| 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 |
7979

8080
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.
8181

0 commit comments

Comments
 (0)