Giter Club home page Giter Club logo

crypto's Introduction

Various cryptographic functions

The implemenation is supposed to be reasonably portable, incl. little endian and big endian systems, and reasonably fast.

Hashes

  • MD5 / RFC 1321
  • SHA1 / RFC 6234
  • SHA224 / RFC 6234
  • SHA256 / RFC 6234
  • SHA384 / RFC 6234
  • SHA512 / RFC 6234

HMAC

  • RFC 2104 / 6234

KDF

  • HKDF / RFC 5869 / 6234
  • PBKDF2 / RFC 2898 / 6070

Compatiblity

The code is C++11 code without any external dependencies.

Test Matrix

All algorithms will be tested by issueing make check, which happens to be the default target. The test will by default hash all hash* files (aka. the source and binaries) plus somme vectors in test-vectorsand compare the output against what the Python hashlib produces.

Passing tests:

  • Debian lenny x86_64 le, gcc-4.7
  • Debian wheezy mips/manta be, gcc-4.7
  • OSX 10.9/Darwin x86_64 le, clang-apple-5.1
  • OSX 10.9/Darwin i686 le, clang-apple-5.1
  • OSX 10.9/Darwin x86_64 le, gcc-4.8
  • OSX 10.9/Darwin i686 le, gcc-4.8
  • Windows x86_64-w64-mingw32 gcc-4.8.3
  • Windows WIN32 MSVC12u2 (create your own .sln)
  • Windows WIN64 MSVC12u2 (create your own .sln)

License

Well...

Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
Written in 2014 by Nils Maier

Status

This stuff is probably OK, and it has tests. Then again, it was not really peer reviewed...

As for performance: It is pretty much on par with other implementation, incl. the ones found in OpenSSL and/or Apple Common Crypto. It is not meant to be the most performant implementation on earth, though.

crypto's People

Contributors

nmaier avatar

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.