C For C's Sake

Results 200 comments of C For C's Sake

@pqwy A higher upper bound on `cstruct` would be nice in a future release too! (Since Cstruct has added/changed some new stuff over the past 13 months)

@rnml have you tried pinning to nocrypto master? last release was around some 15 months ago // 70 commits ago, so there's an ok chance that some of those changes...

@infinity0 I think this can be closed now considering https://github.com/mirleft/ocaml-nocrypto/commit/a58c6534c5cc5da1598f8c979ea397ea2c6b92e1 ?

Sorry, I was not very clear on my reason for opening this post. I'll try to elaborate a bit on my thoughts. Generally about exceptions: I personally dislike exceptions in...

- BTW: The reason I was playing around with this function is that `Nocrypto.Rng.Int32.gen_r` does not let me get a an integer in the range `[min_int;max_int]`, so if I want...

- Re: Systematically going through the functions: I am slowly working my way through them! :-)

FWIW I believe this is no longer in `draft` status: - crypto primitives (ChaCha20 + Poly1305): https://tools.ietf.org/html/rfc7539 - TLS ciphersuite (that @hannesm was referencing above): https://tools.ietf.org/html/rfc7905

@avsm Yes, hence my point 1) about moving it. Same can be said for `DES`, `IDEA`, `Camellia`, `GOST`, `3DES`, `MD5`, `MD4`, `MD2`, and so on. It's useful for historical reasons,...

For other curious readers, the expected behavior on overflow is detailed here: https://tools.ietf.org/html/rfc4344#page-4 (TL;DR: overflow just resets to 0, like a normal unsigned overflow in C). Speaking of `Cipher_block.Modes2.CTR_of`: can...