path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-12 16:57:10 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-22 00:50:54 -0600
commitc9a53c7d141547e777deba977aea69c5ebf49f5c (patch)
tree5ec835af8235446ce173b38c387d1a5689c280c2 /drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
parentzinc: Curve25519 ARM implementation (diff)
security/keys: rewrite big_key crypto to use Zincbig_key_rewrite
A while back, I noticed that the crypto and crypto API usage in big_keys were entirely broken in multiple ways, so I rewrote it. Now, I'm rewriting it again, but this time using Zinc's ChaCha20Poly1305 function. This makes the file considerably more simple; the diffstat alone should justify this commit. It also should be faster, since it no longer requires a mutex around the "aead api object" (nor allocations), allowing us to encrypt multiple items in parallel. We also benefit from being able to pass any type of pointer to Zinc, so we can get rid of the ridiculously complex custom page allocator that big_key really doesn't need. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Cc: David Howells <dhowells@redhat.com> Cc: Samuel Neves <sneves@dei.uc.pt> Cc: Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Greg KH <gregkh@linuxfoundation.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: kernel-hardening@lists.openwall.com
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c')
0 files changed, 0 insertions, 0 deletions