]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: keywrap - simplify code
authorStephan Mueller <smueller@chronox.de>
Tue, 3 Oct 2017 02:19:59 +0000 (04:19 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Oct 2017 14:55:06 +0000 (22:55 +0800)
commite6a320e386eef30ac774c1fab52448c5f9101f15
tree0ecae232f400570d1779a98264a299f21167f890
parent23a4f41aefbce804d257afd35cffcc220450a132
crypto: keywrap - simplify code

The code is simplified by using two __be64 values for the operation
instead of using two arrays of u8. This allows to get rid of the memory
alignment code. In addition, the crypto_xor can be replaced with a
native XOR operation. Finally, the definition of the variables is
re-arranged such that the data structures come before simple variables
to potentially reduce memory space.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/keywrap.c