aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/chacha20poly1305.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* chacha20poly1305: use slow crypto on -rt kernels on arm tooJason A. Donenfeld2018-06-141-1/+1
|
* chacha20poly1305: use slow crypto on -rt kernelsJason A. Donenfeld2018-06-131-1/+1
| | | | | | | | | | | | | | In rt kernels, spinlocks call schedule(), which means preemption can't be disabled. The FPU disables preemption. Hence, we can either restructure things to move the calls to kernel_fpu_begin/end to be really close to the actual crypto routines, or we can do the slower lazier solution of just not using the FPU at all on -rt kernels. This patch goes with the latter lazy solution. The reason why we don't place the calls to kernel_fpu_begin/end close to the crypto routines in the first place is that they're very expensive, as it usually involves a call to XSAVE. So on sane kernels, we benefit from only having to call it once.
* chacha20poly1305: split up into separate filesJason A. Donenfeld2018-05-311-3/+0
|
* poly1305: add poly-specific self-testsJason A. Donenfeld2018-01-191-0/+1
|
* global: year bumpJason A. Donenfeld2018-01-031-1/+1
|
* crypto: compile on UMLJason A. Donenfeld2017-12-131-2/+2
| | | | We basically just don't use FPU in UML.
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-091-1/+4
| | | | | | | | | | | | | It's good to have SPDX identifiers in all files as the Linux kernel developers are working to add these identifiers to all files. Update all files with the correct SPDX license identifier based on the license text of the project or based on the license in the file itself. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Modified-by: Jason A. Donenfeld <Jason@zx2c4.com>
* receive: hoist fpu outside of receive loopJason A. Donenfeld2017-11-101-10/+11
|
* global: use _WG prefix for include guardsJason A. Donenfeld2017-10-031-3/+3
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* chacha20poly1305: add NEON versions for ARM and ARM64Jason A. Donenfeld2017-05-301-3/+17
|
* chacha20poly1305: check return values of sgopsJason A. Donenfeld2017-04-041-1/+1
|
* chacha20poly1305: enforce authtag checking with compilerJason A. Donenfeld2017-03-301-6/+6
|
* blake2s: add AVX implementationJason A. Donenfeld2017-03-191-5/+1
|
* Update copyrightJason A. Donenfeld2017-01-101-1/+1
|
* cookies: use xchacha20poly1305 instead of chacha20poly1305Jason A. Donenfeld2016-12-231-0/+11
| | | | | This allows us to precompute the blake2s calls and save cycles, since hchacha is fast.
* global: move to consistent use of uN instead of uintN_t for kernel codeJason A. Donenfeld2016-12-111-10/+10
|
* headers: cleanup noticesJason A. Donenfeld2016-11-211-1/+1
|
* chacha20poly1305: don't forget version headerJason A. Donenfeld2016-11-091-0/+1
|
* c89: the static keyword is okay in c99, but not in c89Jason A. Donenfeld2016-11-051-4/+4
|
* data: keep FPU on when possibleJason A. Donenfeld2016-11-041-1/+30
|
* Rework headers and includesJason A. Donenfeld2016-09-291-0/+2
|
* c: specify static array size in function paramsJason A. Donenfeld2016-08-021-4/+4
| | | | | | | | | | | | | | | The C standard states: A declaration of a parameter as ``array of type'' shall be adjusted to ``qualified pointer to type'', where the type qualifiers (if any) are those specified within the [ and ] of the array type derivation. If the keyword static also appears within the [ and ] of the array type derivation, then for each call to the function, the value of the corresponding actual argument shall provide access to the first element of an array with at least as many elements as specified by the size expression. By changing void func(int array[4]) to void func(int array[static 4]), we automatically get the compiler checking argument sizes for us, which is quite nice.
* tests: make fatalJason A. Donenfeld2016-06-251-1/+1
|
* Initial commitJason A. Donenfeld2016-06-251-0/+35