// SPDX-License-Identifier: GPL-2.0 /* Multipath TCP cryptographic functions * Copyright (c) 2017 - 2019, Intel Corporation. * * Note: This code is based on mptcp_ctrl.c, mptcp_ipv4.c, and * mptcp_ipv6 from multipath-tcp.org, authored by: * * Sébastien Barré <[email protected]> * Christoph Paasch <[email protected]> * Jaakko Korkeaniemi <[email protected]> * Gregory Detal <[email protected]> * Fabien Duchêne <[email protected]> * Andreas Seelinger <[email protected]> * Lavkesh Lahngir <[email protected]> * Andreas Ripke <[email protected]> * Vlad Dogaru <[email protected]> * Octavian Purdila <[email protected]> * John Ronan <[email protected]> * Catalin Nicutar <[email protected]> * Brandon Heller <[email protected]> */ #include <linux/kernel.h> #include <crypto/sha2.h> #include <asm/unaligned.h> #include "protocol.h" #define SHA256_DIGEST_WORDS … void mptcp_crypto_key_sha(u64 key, u32 *token, u64 *idsn) { … } void mptcp_crypto_hmac_sha(u64 key1, u64 key2, u8 *msg, int len, void *hmac) { … } #if IS_MODULE(CONFIG_MPTCP_KUNIT_TEST) EXPORT_SYMBOL_GPL(mptcp_crypto_hmac_sha); #endif