cregit-Linux how code gets into the kernel

Release 4.18 arch/x86/crypto/morus640-sse2-glue.c

Directory: arch/x86/crypto
/*
 * The MORUS-640 Authenticated-Encryption Algorithm
 *   Glue for SSE2 implementation
 *
 * Copyright (c) 2016-2018 Ondrej Mosnacek <omosnacek@gmail.com>
 * Copyright (C) 2017-2018 Red Hat, Inc. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 */

#include <crypto/internal/aead.h>
#include <crypto/morus640_glue.h>
#include <linux/module.h>
#include <asm/fpu/api.h>
#include <asm/cpu_device_id.h>

asmlinkage void crypto_morus640_sse2_init(void *state, const void *key,
					  const void *iv);
asmlinkage void crypto_morus640_sse2_ad(void *state, const void *data,
					unsigned int length);

asmlinkage void crypto_morus640_sse2_enc(void *state, const void *src,
					 void *dst, unsigned int length);
asmlinkage void crypto_morus640_sse2_dec(void *state, const void *src,
					 void *dst, unsigned int length);

asmlinkage void crypto_morus640_sse2_enc_tail(void *state, const void *src,
					      void *dst, unsigned int length);
asmlinkage void crypto_morus640_sse2_dec_tail(void *state, const void *src,
					      void *dst, unsigned int length);

asmlinkage void crypto_morus640_sse2_final(void *state, void *tag_xor,
					   u64 assoclen, u64 cryptlen);

MORUS640_DECLARE_ALGS(sse2, "morus640-sse2", 400);


static int __init crypto_morus640_sse2_module_init(void) { if (!boot_cpu_has(X86_FEATURE_XMM2) || !boot_cpu_has(X86_FEATURE_OSXSAVE) || !cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL)) return -ENODEV; return crypto_register_aeads(crypto_morus640_sse2_algs, ARRAY_SIZE(crypto_morus640_sse2_algs)); }

Contributors

PersonTokensPropCommitsCommitProp
Ondrej Mosnáček46100.00%2100.00%
Total46100.00%2100.00%


static void __exit crypto_morus640_sse2_module_exit(void) { crypto_unregister_aeads(crypto_morus640_sse2_algs, ARRAY_SIZE(crypto_morus640_sse2_algs)); }

Contributors

PersonTokensPropCommitsCommitProp
Ondrej Mosnáček19100.00%1100.00%
Total19100.00%1100.00%

module_init(crypto_morus640_sse2_module_init); module_exit(crypto_morus640_sse2_module_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Ondrej Mosnacek <omosnacek@gmail.com>"); MODULE_DESCRIPTION("MORUS-640 AEAD algorithm -- SSE2 implementation"); MODULE_ALIAS_CRYPTO("morus640"); MODULE_ALIAS_CRYPTO("morus640-sse2");

Overall Contributors

PersonTokensPropCommitsCommitProp
Ondrej Mosnáček269100.00%2100.00%
Total269100.00%2100.00%
Directory: arch/x86/crypto
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.