Files
gitocean/modules
Gusted 967603abcc feat: harden keying implementation
Harden the current checks in place, I doubt these will ever hit (you can
prove easily by reading the current source code this cannot happen) but
just in case a new Go version does something weird or something else
goes catastrophicly wrong, this should add an extra defense-in-depth
layer.

`n != aeadKeySize` will panic a nil error, don't think it's needed to
add more logic to this, a nil error is enough to indicate that that
condition failed (given the other condition is `err != nil`).

Also move constant integers to being `const`, this helps reducing the
amount of instructions being done for the extra check.
2024-12-25 00:10:18 +01:00
..
2024-11-11 12:44:36 +01:00
2024-12-18 06:40:02 +01:00
2024-11-15 10:59:36 +01:00
2024-08-18 15:19:01 +02:00
2024-08-12 19:11:09 +02:00
2024-12-25 00:10:18 +01:00
2024-12-17 16:12:22 +01:00
2023-02-11 08:39:50 +08:00
2023-12-25 20:13:18 +08:00
2024-09-01 05:42:34 +02:00
2024-07-17 23:07:41 +02:00
2024-11-05 22:47:34 +01:00
2024-08-26 23:43:09 +02:00