diff options
author | 2017-10-03 04:19:59 +0200 | |
---|---|---|
committer | 2017-10-12 22:55:06 +0800 | |
commit | 9e49451d7a15365d172a75a7ab8f1c305458253a (patch) | |
tree | 0ecae232f400570d1779a98264a299f21167f890 /crypto/algapi.c | |
parent | crypto: dh - return unsigned value for crypto_dh_key_len() (diff) | |
download | wireguard-linux-9e49451d7a15365d172a75a7ab8f1c305458253a.tar.xz wireguard-linux-9e49451d7a15365d172a75a7ab8f1c305458253a.zip |
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>
Diffstat (limited to 'crypto/algapi.c')
0 files changed, 0 insertions, 0 deletions