mirleft / ocaml-nocrypto

OCaml cryptographic library
ISC License
111 stars 53 forks source link

Ctypes #26

Closed pqwy closed 10 years ago

pqwy commented 10 years ago

Rework C interaction to use ctypes in stubs mode.

Time to redo bindings: 3 hours.

Time to wrestle the build system: about 4 days.

Shoutout to @samoht and @dbuenzli. Assemblage. The world needs it.

This won't work without ctypes >= 0.3.3. It is also potentially unsafe before the bounds check patch enters cstruct as it now assumes that any Ctypes.t can only be well-formed with respects to its buffer, and happily does pointer arithmetic without checking again.

hannesm commented 10 years ago

\O/