crypto: blake2b - merge _final implementation to callback
authorDavid Sterba <dsterba@suse.com>
Tue, 12 Nov 2019 10:20:24 +0000 (11:20 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:34 +0000 (18:48 +0800)
commit086db43b5a2281f7ce7d8a67a171b91e1e8fe0ec
tree64d375d5af416fc4e20e91601cf574a6f148468a
parentc7351845b2d685b3ea695f02047bd1b825fb6c98
crypto: blake2b - merge _final implementation to callback

blake2b_final is called only once, merge it to the crypto API callback
and simplify. This avoids the temporary buffer and swaps the bytes of
internal buffer.

Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/blake2b_generic.c