Cherry-pick crypto/internal.h changes from 1e469e45a4 Change-Id: Ic81fe8fbccf43e9f490e3ed50aa5b7516598cd89
diff --git a/crypto/internal.h b/crypto/internal.h index c9b5e8e..2e94399 100644 --- a/crypto/internal.h +++ b/crypto/internal.h
@@ -881,6 +881,16 @@ OPENSSL_memcpy(out, &v, sizeof(v)); } +static inline uint64_t CRYPTO_load_u64_le(const void *in) { + uint64_t v; + OPENSSL_memcpy(&v, in, sizeof(v)); + return v; +} + +static inline void CRYPTO_store_u64_le(void *out, uint64_t v) { + OPENSSL_memcpy(out, &v, sizeof(v)); +} + static inline uint64_t CRYPTO_load_u64_be(const void *ptr) { uint64_t ret; OPENSSL_memcpy(&ret, ptr, sizeof(ret));