An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/ericlagergren/stream

Package stream implements OAE2 STREAM. OAE stands for Online Authenticated Encryption. Here, the term "online" means plaintext and ciphertext can be encrypted and decrypted, respectively, with one left-to-right pass stream. In other words, it supports streaming. OAE2 is a simple construction: the plaintext is broken into chunks and each chunk is encrypted separately. A counter nonce is used to ensure unique nonces and to provider ordering. This package implements STREAM using XChaCha20-Poly1305. Each plaintext chunk_n in {0, 1, ..., N-2} is exactly 64 KiB with the final plaintext chunk_{N-1} being an arbitrary size less than or equal to 64 KiB. In other words, every chunk is the same size, except the final chunk may be a smaller. Borrowing from Hoang and Shen [tink], this package adds a random prefix to the nonces, increasing the concrete security bound. More specifically: The EOF byte signals the end of the stream. Without an explicit EOF signal the stream could be susceptible to truncation attacks. As always, it is not a good idea to act on a plaintext until the entire message has been verified. References:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/ericlagergren/stream
Keywords: aead , oae2 , streaming
License: BSD-3-Clause
Latest release: over 3 years ago
First release: over 3 years ago
Namespace: github.com/ericlagergren
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 29 days ago

    Loading...
    Readme
    Loading...