ubiqsecurity / ubiq-fpe-c Goto Github PK
View Code? Open in Web Editor NEWFormat-preserving encryption (in C)
License: MIT License
Format-preserving encryption (in C)
License: MIT License
Hi
I just wanted to let you know that I have used some of your test vectors to verify my C-implementation of the FPE algorithms. Of course I have mentioned the source and credit. Please feel free to check out the testvectors
folder of this repository and inform me of any issues.
Now there is a problem that I wasn't able to figure out. The NIST has provided some sample vectors in this page. I could verify all of them using my own code, except two FF1 vectors that use 128-bit tweaks. You can find them at the bottom of the page:
"tcId": 2,
"tweak": "CB81CF732B22A983B2C6E584726C9F59",
"tweakLen": 128,
"pt": "60454384602180796680544707896451618557756152702734587161",
"key": "E3EFDAF1ABEA7863A0A95F833420D083"
"tcId": 27,
"tweak": "994C168B9F6225C4BC12A83561C0E1A6",
"tweakLen": 128,
"pt": "uxmdsdjbsywthsvzjlfcwlmpkarnaeoirtihgfuu",
"key": "53CA14AF6F97612C96FFAA2BA8D88C44"
This seems ironic since I have exactly followed the guidelines in SP-800-38G, and your library fails to verify them too. I double-checked and triple-checked the code with no luck. So I hope you guys @garyschneir @johntyner have some ideas about this.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.