Coder Social home page Coder Social logo

chenglujin / ocaml-nocrypto Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mirleft/ocaml-nocrypto

0.0 2.0 0.0 4.14 MB

OCaml cryptographic library

License: BSD 2-Clause "Simplified" License

Makefile 0.16% OCaml 78.33% Shell 0.12% C 21.39%

ocaml-nocrypto's Introduction

Build Status

Documentation

Comments in the single interface file, nocrypto.mli. Also available online.

The documentation is a work in progress. :)

FAQ

RNG seeding

You get something like Fatal error: exception Uncommon.Boot.Unseeded_generator and ask yourself: "Is there a simple way to forget about seeding and have the thing working?"

(* On pure Unix: *)
let () = Nocrypto_entropy_unix.initialize ()

(* On Lwt/Unix: *)
let () = ignore @@ Nocrypto_entropy_lwt.initialize ()

Illegal instructions

Anything linking to Nocrypto dies immediately:

Program terminated with signal SIGILL, Illegal instruction.
#0  _mm_aeskeygenassist_si128 (__C=<optimized out>, __X=...)

Nocrypto has CPU acceleration support (SSE2+AES-NI), but it has no run-time autodetection yet. You compiled the library with acceleration, but you are using it on a machine that does not support it.

./configure --disable-modernity disables non-portable code.

./configure --enable-modernity enables non-portable code if the build machine supports it.

The flag defaults to enable.

A second way to disable this feature is by exporting $NOCRYPTO_NO_ACCEL environment variable during build. This is desirable, for example, when building via opam.

ocaml-nocrypto's People

Contributors

chris00 avatar hannesm avatar mor1 avatar paarthenon avatar pqwy avatar talex5 avatar

Watchers

 avatar  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.