From 2f6995456ea8019ed7124578feeb1b5738978d5a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 27 Sep 2018 05:07:28 +0200 Subject: blake2s: rename arch function and use slicker le32 helper --- src/compat/compat.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/compat/compat.h') diff --git a/src/compat/compat.h b/src/compat/compat.h index 17606f5..2e67edb 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -689,6 +689,13 @@ static inline void *skb_put_data(struct sk_buff *skb, const void *data, unsigned #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0) +static inline void le32_to_cpu_array(u32 *buf, unsigned int words) +{ + while (words--) { + __le32_to_cpus(buf); + buf++; + } +} static inline void cpu_to_le32_array(u32 *buf, unsigned int words) { while (words--) { -- cgit v1.2.3-59-g8ed1b