summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/chacha/chacha-merged.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert __bounded__ hack in chacha-merged.ctb2024-06-051-5/+1
| | | | | Thanks to Viktor Szakats for figuring out that stdint.h was missing in the portable tarballs.
* Neuter the bounded attribute as was done elsewhere for portabletb2024-06-011-1/+5
|
* Unbreak the namespace build after a broken mk.conf and tool misfire hadbeck2023-07-071-1/+2
| | | | | | | | me aliasing symbols not in the headers I was procesing. This unbreaks the namespace build so it will pass again ok tb@
* Switch from u_int and u_char to u32 and u8 to avoid portability issues.tb2021-10-221-17/+14
| | | | | | Prompted by a diff by Jonas Termansen. ok jsing
* add support for xchacha20 and xchacha20-poly1305dlg2019-01-221-1/+47
| | | | | | | xchacha is a chacha stream that allows for an extended nonce, which in turn makes it feasible to use random nonces. ok tb@
* Convert the sigma and tau initialisers to byte arrays, rather than usingjsing2017-08-131-3/+12
| | | | | | | | | strings. The original code is perfectly valid C, however it causes some compilers to complain since it lacks room for a string NUL terminator and the compiler is not smart enough to realise that these are only used as byte arrays and never treated as strings. ok bcook@ beck@ inoguchi@
* replace u_int8_t with uint8_tbcook2014-07-111-3/+5
| | | | ok beck@
* If a chacha operation does not consume all of the generated key stream,jsing2014-06-241-5/+27
| | | | | | | | | | | | | | | | ensure that we save it and consume it on subsequent writes. Otherwise we end up discarding part of the key stream and instead generate a new block at the start of the next write. This was only an issue for callers that did multiple writes that are not multiples of 64 bytes - in particular, the ChaCha20Poly1305 usage does not hit this problem since it performs encryption in a single-shot. For the same reason, this is also a non-issue when openssl(1) is used to encrypt with ChaCha. Issue identified by insane coder; reported to bugs@ by Joseph M. Schwartz. ok beck@
* Some KNF.jsing2014-06-241-6/+12
|
* tags as requested by miod and teduderaadt2014-06-121-0/+1
|
* KNF.jsing2014-05-151-155/+157
|
* __bounded => __attribute__((__bounded__djm2014-05-101-5/+5
|
* Add ChaCha to libcrypto, based on djb's public domain implementation.jsing2014-05-011-0/+237
ok deraadt@