Avril
d76b77fbf1
Fixed build fail with async feature.
...
Fortune for chacha20stream's current commit: Small curse − 小凶
3 years ago
Avril
903bfcd7c4
Added `from_parts()`, as counterpart to `into_parts()`.
...
Fortune for chacha20stream's current commit: Half blessing − 半吉
3 years ago
Avril
0645e61590
Exposed `cha` module for keygen and `Crypter` creation.
...
Fortune for chacha20stream's current commit: Future blessing − 末吉
3 years ago
Avril
e7f56fb6ee
Added AsyncSource: Feature `async` version of `Source`. (Does not include the buffer config that the syncronous `Source` uses.)
...
Fortune for chacha20stream's current commit: Blessing − 吉
3 years ago
Avril
9784208fc8
Added crate-level re-exports.
...
Fortune for chacha20stream's current commit: Blessing − 吉
3 years ago
Avril
5d1ac4fa7a
Started AsyncSource.
...
Fortune for chacha20stream's current commit: Half blessing − 半吉
3 years ago
Avril
e536d6b232
Moved async_stream::Sink into seperate files.
...
Fortune for chacha20stream's current commit: Curse − 凶
3 years ago
Avril
20199e3610
Added basic docs to `Source`.
...
Fortune for chacha20stream's current commit: Middle blessing − 中吉
3 years ago
Avril
ea70fdc2d1
Fix failing tests of buffer.
...
Fix incorrect buffer feature checks
Fortune for chacha20stream's current commit: Future small blessing − 末小吉
3 years ago
Avril
907862f554
Source: Encrypt and Decrypt tests passing. (For both internal and external buffer.)
...
Fortune for chacha20stream's current commit: Half blessing − 半吉
3 years ago
Avril
30416382ec
Renamed `reuse-buffer` to `ad-hoc-buffer`
...
Fortune for chacha20stream's current commit: Small curse − 小凶
3 years ago
Avril
843616e35e
impl `Read` for `Source`: Implemented for internal and external buffer usage
...
TODO: Rename reuse-buffer to ad-hoc-buffer: We can"t update crypter in-place, need a seperate buffer :/
Fortune for chacha20stream's current commit: Small blessing − 小吉
3 years ago
Avril
6cbbf2bd2c
XXX: Can"t update crypter with an in-place buffer...
...
Fortune for chacha20stream's current commit: Small curse − 小凶
3 years ago
Avril
404d4511f8
Added compile-time distunguishing of internal/external buffer usage
...
`reuse-buffer` feature available if explicitly opting into it. Buffers can be moved from internal<->external buffers. By default, internal buffers are used when `reuse-buffer` is disabled, and external ones are used when it is enabled.
Fortune for chacha20stream's current commit: Future small blessing − 末小吉
3 years ago
Avril
e18b166514
`stream`: Move `Sink` and `Source` to seperate files
...
Fortune for chacha20stream's current commit: Small curse − 小凶
3 years ago
Avril
107b7902e1
Source<R>::read(),transform() impl.
...
Fixed compilation failure with `reuse-buffer` due to references to inner buffer in non-#cfg"d code.
Fortune for chacha20stream's current commit: Future small blessing − 末小吉
3 years ago
Avril
42dbd94392
Start: `Source<R>`: chacha20_poly1305 en/decryption wrapper over `io::Read` types.
...
TODO: `AsyncSource<R>`: Async version of `Source<R>`, and the `AsyncRead` couterpart of `AsyncSink<R>`.
TODO: `Stream<RW>`, `AsyncStream<RW>`: Combines both `Sink<W>` and `Source<R>` for `Read+Write` types (and async counterparts) using the same cipher key.
Fortune for chacha20stream's current commit: Small curse − 小凶
3 years ago
Avril
b7c8c64733
cookie config alowing backing stream ownership transfer to be optional
3 years ago
Avril
d5c9492c44
removed cc dep
...
reimplemented wrapper.c in Rust
3 years ago
Avril
7226ebdb7b
static linking works when cc lto is disabled
3 years ago
Avril
e76499c166
tests passing. static linking failing, not sure why
3 years ago
Avril
65ad649519
TODO: rework error reporting
3 years ago
Avril
6937dc5242
failing FFI test
3 years ago
Avril
f8dc3de398
fix cookie return vals
3 years ago
Avril
9557d4e80b
cookie open creation
3 years ago
Avril
860cf33b41
added cc20_write() to write to CSink
3 years ago
Avril
13e3b84929
added C FFI header
3 years ago
Avril
bf63998e73
C interface write passthrough and opaque allocation ok
3 years ago
Avril
90d3c2615f
start FFI function implementations
3 years ago
Avril
d9dd56faf0
added serde support
3 years ago
Avril
9333e994f2
document key/iv encoding/decoding
3 years ago
Avril
4b4d752491
added documentation
3 years ago
Avril
317a9b47a8
async working
3 years ago
Avril
969653b1aa
async stream start
3 years ago
Avril
f42cedafc3
cleaned up prune
3 years ago
Avril
1621ca45b6
prevent inlining of prune on explicit_clear nightly builds
3 years ago
Avril
1c61cee7ae
remove dependency on non-standard 'explicit_bzero()' on nightly builds
3 years ago
Avril
1ecf0eab91
added clflush after explicit_bzero on x86 nightly builds
3 years ago
Avril
c0d7234b5a
initial commit
...
fork from 'chacha20'
3 years ago