linux/arch/x86/crypto/nhpoly1305-avx2-glue.c

// SPDX-License-Identifier: GPL-2.0
/*
 * NHPoly1305 - ε-almost-∆-universal hash function for Adiantum
 * (AVX2 accelerated version)
 *
 * Copyright 2018 Google LLC
 */

#include <crypto/internal/hash.h>
#include <crypto/internal/simd.h>
#include <crypto/nhpoly1305.h>
#include <linux/module.h>
#include <linux/sizes.h>
#include <asm/simd.h>

asmlinkage void nh_avx2(const u32 *key, const u8 *message, size_t message_len,
			__le64 hash[NH_NUM_PASSES]);

static int nhpoly1305_avx2_update(struct shash_desc *desc,
				  const u8 *src, unsigned int srclen)
{}

static int nhpoly1305_avx2_digest(struct shash_desc *desc,
				  const u8 *src, unsigned int srclen, u8 *out)
{}

static struct shash_alg nhpoly1305_alg =;

static int __init nhpoly1305_mod_init(void)
{}

static void __exit nhpoly1305_mod_exit(void)
{}

module_init();
module_exit(nhpoly1305_mod_exit);

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_ALIAS_CRYPTO();
MODULE_ALIAS_CRYPTO();