Giter VIP home page Giter VIP logo

libfnr's Introduction

libFNR - A reference implementation library for FNR encryption scheme.

FNR represents "Flexible Naor and Reingold"

FNR is a small domain block cipher for encrypting objects ( < 128 bits ) like IPv4, MAC, Credit Card numbers, Time Stamps etc.

INSTALL

NOTE : openssl latest version (> openssl-1.0.1e) needs to be installed

# The bootstrap.sh step is only ncessary if you are building from a
# git clone; it is not necessary if you are building from a libfnr
# tarball.
$ bootstrap.sh

$ ./configure --enable-debug=yes
$ make

RUN

$ cd test
$ ./ipv4test -p password -t  tweak -f raw-ips

IMPORTANT: This is an experimental cipher, not for production yet.

Motivation and Applications of this scheme could be found at http://cisco.github.io/libfnr/

Java extensions for this library could be found at https://github.com/cisco/jfnr

Details of the Specification could be found in doc/Spec directory

Report bugs to [email protected]

FNR is designed by

Copyright (C) 2014-2015, Cisco Systems, Inc.

libfnr's People

Contributors

fffaraz avatar fluffy avatar jsquyres avatar mgurevin avatar pyav avatar sashank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libfnr's Issues

Minor spelling in README

raw–ips in command ./ipv4test -p password -t tweak -f raw–ips has an em dash instead of a dash

Ciphertext format

I understand that you use the even bits as one half and the odd bits as other half in the implementation. I wonder that the ciphertext has the same even/odd bits format?

For example, if you follow the encryption scheme (divide the original text into two separate halves), the ciphertext is 10101010. However, if you use the above trick (even/odd bits format) the ciphertext will be 11110000.

Thanks.

Compile warnings on OS X / Yosemitie

When building libfnr on OS X / Yosemitie with XCode 6.2 this morning, I notice a ton of deprecated warnings about SSL functions. I'm guessing you've specifically chosen to use those functions -- but perhaps there are updated versions of those functions available? (we may have even discussed this at one point...? I don't remember)

See https://gist.github.com/jsquyres/cb8bfff9c5ca19e925dc for the full output of the build.

But there's a few warnings that are a little more concerning:

Someone may want to have a look. :-)

Comparison with AES-FFX

If I understand correctly, FNR is a format-preserving encryption algorithm. What advantages might it provide compared to other format-preserving encryption algorithms, such as AES-FFX? It would be good to summarise this in the README.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.