data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
linux
// SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2021-2022 Intel Corporation */ #undef pr_fmt #define pr_fmt(fmt) "tdx: " fmt #include <linux/cpufeature.h> #include <linux/export.h> #include <linux/io.h> #include <linux/kexec.h> #include <asm/coco.h> #include <asm/tdx.h> #include <asm/vmx.h> #include <asm/ia3...
arch/x86/coco/tdx/tdx.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * AES-NI + SSE4.1 implementation of AEGIS-128 * * Copyright (c) 2017-2018 Ondrej Mosnacek <omosnacek@gmail.com> * Copyright (C) 2017-2018 Red Hat, Inc. All rights reserved. * Copyright 2024 Google LLC */ #include <linux/linkage.h> #define STATE0 %xmm0 #define STATE...
arch/x86/crypto/aegis128-aesni-asm.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * The AEGIS-128 Authenticated-Encryption Algorithm * Glue for AES-NI + SSE4.1 implementation * * Copyright (c) 2017-2018 Ondrej Mosnacek <omosnacek@gmail.com> * Copyright (C) 2017-2018 Red Hat, Inc. All rights reserved. */ #include <crypto/internal/aead.h> #inclu...
arch/x86/crypto/aegis128-aesni-glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */ // // Copyright 2025 Google LLC // // Author: Eric Biggers <ebiggers@google.com> // // This file is dual-licensed, meaning that you can use it under your choice of // either of the following two licenses: // // Licensed under the Apache License 2.0 (the "License...
arch/x86/crypto/aes-ctr-avx-x86_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */ // // AES-NI optimized AES-GCM for x86_64 // // Copyright 2024 Google LLC // // Author: Eric Biggers <ebiggers@google.com> // //------------------------------------------------------------------------------ // // This file is dual-licensed, meaning that you can ...
arch/x86/crypto/aes-gcm-aesni-x86_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */ // // AES-GCM implementation for x86_64 CPUs that support the following CPU // features: VAES && VPCLMULQDQ && AVX2 // // Copyright 2025 Google LLC // // Author: Eric Biggers <ebiggers@google.com> // //------------------------------------------------------------...
arch/x86/crypto/aes-gcm-vaes-avx2.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */ // // AES-GCM implementation for x86_64 CPUs that support the following CPU // features: VAES && VPCLMULQDQ && AVX512BW && AVX512VL && BMI2 // // Copyright 2024 Google LLC // // Author: Eric Biggers <ebiggers@google.com> // //------------------------------------...
arch/x86/crypto/aes-gcm-vaes-avx512.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */ // // AES-XTS for modern x86_64 CPUs // // Copyright 2024 Google LLC // // Author: Eric Biggers <ebiggers@google.com> // //------------------------------------------------------------------------------ // // This file is dual-licensed, meaning that you can use i...
arch/x86/crypto/aes-xts-avx-x86_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Implement AES algorithm in Intel AES-NI instructions. * * The white paper of AES-NI instructions can be downloaded from: * http://softwarecommunity.intel.com/isn/downloads/intelavx/AES-Instructions-Set_WP.pdf * * Copyright (C) 2008, Intel Corp. * Author: ...
arch/x86/crypto/aesni-intel_asm.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Support for AES-NI and VAES instructions. This file contains glue code. * The real AES implementations are in aesni-intel_asm.S and other .S files. * * Copyright (C) 2008, Intel Corp. * Author: Huang Ying <ying.huang@intel.com> * * Added RFC4106 AES-GCM suppo...
arch/x86/crypto/aesni-intel_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * ARIA Cipher 16-way parallel algorithm (AVX) * * Copyright (c) 2022 Taehee Yoo <ap420073@gmail.com> * */ #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/asm-offsets.h> #include <asm/frame.h> /* register macros */ #define CTX %rdi #define...
arch/x86/crypto/aria-aesni-avx-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * ARIA Cipher 32-way parallel algorithm (AVX2) * * Copyright (c) 2022 Taehee Yoo <ap420073@gmail.com> * */ #include <linux/linkage.h> #include <asm/frame.h> #include <asm/asm-offsets.h> #include <linux/cfi_types.h> /* register macros */ #define CTX %rdi #define...
arch/x86/crypto/aria-aesni-avx2-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef ASM_X86_ARIA_AVX_H #define ASM_X86_ARIA_AVX_H #include <linux/types.h> #define ARIA_AESNI_PARALLEL_BLOCKS 16 #define ARIA_AESNI_PARALLEL_BLOCK_SIZE (ARIA_BLOCK_SIZE * ARIA_AESNI_PARALLEL_BLOCKS) #define ARIA_AESNI_AVX2_PARALLEL_BLOCKS 32 #define ARIA_AESNI_AVX...
arch/x86/crypto/aria-avx.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * ARIA Cipher 64-way parallel algorithm (AVX512) * * Copyright (c) 2022 Taehee Yoo <ap420073@gmail.com> * */ #include <linux/linkage.h> #include <asm/frame.h> #include <asm/asm-offsets.h> #include <linux/cfi_types.h> /* register macros */ #define CTX %rdi #def...
arch/x86/crypto/aria-gfni-avx512-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Glue Code for the AVX2/AES-NI/GFNI assembler implementation of the ARIA Cipher * * Copyright (c) 2022 Taehee Yoo <ap420073@gmail.com> */ #include <crypto/algapi.h> #include <crypto/aria.h> #include <linux/crypto.h> #include <linux/err.h> #include <linux/export.h...
arch/x86/crypto/aria_aesni_avx2_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Glue Code for the AVX/AES-NI/GFNI assembler implementation of the ARIA Cipher * * Copyright (c) 2022 Taehee Yoo <ap420073@gmail.com> */ #include <crypto/algapi.h> #include <crypto/aria.h> #include <linux/crypto.h> #include <linux/err.h> #include <linux/export.h>...
arch/x86/crypto/aria_aesni_avx_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Glue Code for the AVX512/GFNI assembler implementation of the ARIA Cipher * * Copyright (c) 2022 Taehee Yoo <ap420073@gmail.com> */ #include <crypto/algapi.h> #include <crypto/aria.h> #include <linux/crypto.h> #include <linux/err.h> #include <linux/module.h> #in...
arch/x86/crypto/aria_gfni_avx512_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Blowfish Cipher Algorithm (x86_64) * * Copyright (C) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> */ #include <linux/linkage.h> .file "blowfish-x86_64-asm.S" .text /* structure of crypto context */ #define p 0 #define s0 ((16 + 2) * 4) #define s1 ((16 + 2 +...
arch/x86/crypto/blowfish-x86_64-asm_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for assembler optimized version of Blowfish * * Copyright (c) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * CBC & ECB parts based on code (crypto/cbc.c,ecb.c) by: * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> */ #include <crypto...
arch/x86/crypto/blowfish_glue.c
null
null
null
null
null
source
linux
/* * x86_64/AVX/AES-NI assembler implementation of Camellia * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * the Free Software Foundation; either version 2 of the License, or * */ /* * Version licensed under 2-clause BSD License is available at: * http://koti.mbnet.fi/axh/crypto/camellia...
arch/x86/crypto/camellia-aesni-avx-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * x86_64/AVX2/AES-NI assembler implementation of Camellia * * Copyright © 2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/linkage.h> #include <linux/cfi_types.h> #include <asm/frame.h> #define CAMELLIA_TABLE_BYTE_LEN 272 /* struct camellia_ctx: ...
arch/x86/crypto/camellia-aesni-avx2-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Camellia Cipher Algorithm (x86_64) * * Copyright (C) 2012 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> */ #include <linux/linkage.h> #include <linux/cfi_types.h> .file "camellia-x86_64-asm_64.S" .text .extern camellia_sp10011110; .extern camellia_sp22000222; .ex...
arch/x86/crypto/camellia-x86_64-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef ASM_X86_CAMELLIA_H #define ASM_X86_CAMELLIA_H #include <crypto/b128ops.h> #include <linux/crypto.h> #include <linux/kernel.h> #define CAMELLIA_MIN_KEY_SIZE 16 #define CAMELLIA_MAX_KEY_SIZE 32 #define CAMELLIA_BLOCK_SIZE 16 #define CAMELLIA_TABLE_BYTE_LEN 272 #define CAME...
arch/x86/crypto/camellia.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for x86_64/AVX2/AES-NI assembler optimized version of Camellia * * Copyright © 2013 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> */ #include <crypto/algapi.h> #include <linux/crypto.h> #include <linux/err.h> #include <linux/module.h> #include <linux/types.h...
arch/x86/crypto/camellia_aesni_avx2_glue.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for x86_64/AVX/AES-NI assembler optimized version of Camellia * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <crypto/algapi.h> #include <linux/crypto.h> #include <linux/err.h> #include <linux/export.h> #include <linux/modul...
arch/x86/crypto/camellia_aesni_avx_glue.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for assembler optimized version of Camellia * * Copyright (c) 2012 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Camellia parts based on code by: * Copyright (C) 2006 NTT (Nippon Telegraph and Telephone Corporation) */ #include <linux/unaligned.h> #i...
arch/x86/crypto/camellia_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Cast5 Cipher 16-way parallel algorithm (AVX/x86_64) * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2012 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> */ #include <linux/linkage.h> #include <...
arch/x86/crypto/cast5-avx-x86_64-asm_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for the AVX assembler implementation of the Cast5 Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> */ #include <crypto/algapi.h> #include <crypto/cast5.h> #include <linux/crypto.h> #include <li...
arch/x86/crypto/cast5_avx_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Cast6 Cipher 8-way parallel algorithm (AVX/x86_64) * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/linkage.h> #include...
arch/x86/crypto/cast6-avx-x86_64-asm_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for the AVX assembler implementation of the Cast6 Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/module.h> #...
arch/x86/crypto/cast6_avx_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * des3_ede-asm_64.S - x86-64 assembly implementation of 3DES cipher * * Copyright © 2014 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/linkage.h> .file "des3_ede-asm_64.S" .text #define s1 .L_s1 #define s2 ((s1) + (64*8)) #define s3 ((s2) + (64*8...
arch/x86/crypto/des3_ede-asm_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for assembler optimized version of 3DES * * Copyright © 2014 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * CBC & ECB parts based on code (crypto/cbc.c,ecb.c) by: * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> */ #include <crypto/algap...
arch/x86/crypto/des3_ede_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _CRYPTO_ECB_CBC_HELPER_H #define _CRYPTO_ECB_CBC_HELPER_H #include <crypto/internal/skcipher.h> #include <asm/fpu/api.h> /* * Mode helpers to instantiate parameterized skcipher ECB/CBC modes without * having to rely on indirect calls and retpolines. */ #define ECB_W...
arch/x86/crypto/ecb_cbc_helpers.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Accelerated GHASH implementation with Intel PCLMULQDQ-NI * instructions. This file contains accelerated part of ghash * implementation. More information about PCLMULQDQ can be found at: * * https://www.intel.com/content/dam/develop/external/us/en/documents/clmul-wp-...
arch/x86/crypto/ghash-clmulni-intel_asm.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Accelerated GHASH implementation with Intel PCLMULQDQ-NI * instructions. This file contains glue code. * * Copyright (c) 2009 Intel Corp. * Author: Huang Ying <ying.huang@intel.com> */ #include <asm/cpu_device_id.h> #include <asm/simd.h> #include <crypto/b128ops.h>...
arch/x86/crypto/ghash-clmulni-intel_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Shared glue code for 128bit block ciphers, AVX assembler macros * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #define load_8way(src, x0, x1, x2, x3, x4, x5, x6, x7) \ vmovdqu (0*16)(src), x0; \ vmovdqu (1*16)(src), x1; \ vmovdqu (2*16)...
arch/x86/crypto/glue_helper-asm-avx.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Shared glue code for 128bit block ciphers, AVX2 assembler macros * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> */ #define load_16way(src, x0, x1, x2, x3, x4, x5, x6, x7) \ vmovdqu (0*32)(src), x0; \ vmovdqu (1*32)(src), x1; \ vmovdqu (2...
arch/x86/crypto/glue_helper-asm-avx2.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Serpent Cipher 8-way parallel algorithm (x86_64/AVX) * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2011-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/linkage.h> #inclu...
arch/x86/crypto/serpent-avx-x86_64-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef ASM_X86_SERPENT_AVX_H #define ASM_X86_SERPENT_AVX_H #include <crypto/b128ops.h> #include <crypto/serpent.h> #include <linux/types.h> struct crypto_skcipher; #define SERPENT_PARALLEL_BLOCKS 8 asmlinkage void serpent_ecb_enc_8way_avx(const void *ctx, u8 *dst, const...
arch/x86/crypto/serpent-avx.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * x86_64/AVX2 assembler optimized version of Serpent * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Based on AVX assembler implementation of Serpent by: * Copyright © 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud...
arch/x86/crypto/serpent-avx2-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Serpent Cipher 4-way parallel algorithm (i586/SSE2) * * Copyright (C) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Based on crypto/serpent.c by * Copyright (C) 2002 Dag Arne Osvik <osvik@ii.uib.no> * 2003 Herbert Valerio Riedel <hvr@gnu....
arch/x86/crypto/serpent-sse2-i586-asm_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Serpent Cipher 8-way parallel algorithm (x86_64/SSE2) * * Copyright (C) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Based on crypto/serpent.c by * Copyright (C) 2002 Dag Arne Osvik <osvik@ii.uib.no> * 2003 Herbert Valerio Riedel <hvr@gn...
arch/x86/crypto/serpent-sse2-x86_64-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef ASM_X86_SERPENT_SSE2_H #define ASM_X86_SERPENT_SSE2_H #include <linux/crypto.h> #include <crypto/serpent.h> #ifdef CONFIG_X86_32 #define SERPENT_PARALLEL_BLOCKS 4 asmlinkage void __serpent_enc_blk_4way(const struct serpent_ctx *ctx, u8 *dst, const u8 *src, b...
arch/x86/crypto/serpent-sse2.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for x86_64/AVX2 assembler optimized version of Serpent * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> */ #include <linux/module.h> #include <linux/types.h> #include <linux/crypto.h> #include <linux/err.h> #include <crypto/algapi.h> #...
arch/x86/crypto/serpent_avx2_glue.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for AVX assembler versions of Serpent Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2011-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/module.h> #include...
arch/x86/crypto/serpent_avx_glue.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for SSE2 assembler versions of Serpent Cipher * * Copyright (c) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> * * Glue code based on aesni-intel_glue.c by: * Copyright (C) 2008, Intel Corp. * Author: Huang Ying <ying.huang@intel.com> * * CBC & E...
arch/x86/crypto/serpent_sse2_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SM3 AVX accelerated transform. * specified in: https://datatracker.ietf.org/doc/html/draft-sca-cfrg-sm3-02 * * Copyright (C) 2021 Jussi Kivilinna <jussi.kivilinna@iki.fi> * Copyright (C) 2021 Tianjia Zhang <tianjia.zhang@linux.alibaba.com> */ /* Based on SM3 A...
arch/x86/crypto/sm3-avx-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SM3 Secure Hash Algorithm, AVX assembler accelerated. * specified in: https://datatracker.ietf.org/doc/html/draft-sca-cfrg-sm3-02 * * Copyright (C) 2021 Tianjia Zhang <tianjia.zhang@linux.alibaba.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <cr...
arch/x86/crypto/sm3_avx_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SM4 Cipher Algorithm, AES-NI/AVX optimized. * as specified in * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html * * Copyright (C) 2018 Markku-Juhani O. Saarinen <mjos@iki.fi> * Copyright (C) 2020 Jussi Kivilinna <jussi.kivilinna@iki.fi> * Copyright (c)...
arch/x86/crypto/sm4-aesni-avx-asm_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * SM4 Cipher Algorithm, AES-NI/AVX2 optimized. * as specified in * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html * * Copyright (C) 2018 Markku-Juhani O. Saarinen <mjos@iki.fi> * Copyright (C) 2020 Jussi Kivilinna <jussi.kivilinna@iki.fi> * Copyright (c) 2...
arch/x86/crypto/sm4-aesni-avx2-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef ASM_X86_SM4_AVX_H #define ASM_X86_SM4_AVX_H #include <linux/types.h> #include <crypto/sm4.h> typedef void (*sm4_crypt_func)(const u32 *rk, u8 *dst, const u8 *src, u8 *iv); int sm4_avx_ecb_encrypt(struct skcipher_request *req); int sm4_avx_ecb_decrypt(struct skc...
arch/x86/crypto/sm4-avx.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SM4 Cipher Algorithm, AES-NI/AVX2 optimized. * as specified in * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html * * Copyright (c) 2021, Alibaba Group. * Copyright (c) 2021 Tianjia Zhang <tianjia.zhang@linux.alibaba.com> */ #include <asm/fpu/api.h> #i...
arch/x86/crypto/sm4_aesni_avx2_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SM4 Cipher Algorithm, AES-NI/AVX optimized. * as specified in * https://tools.ietf.org/id/draft-ribose-cfrg-sm4-10.html * * Copyright (c) 2021, Alibaba Group. * Copyright (c) 2021 Tianjia Zhang <tianjia.zhang@linux.alibaba.com> */ #include <asm/fpu/api.h> #in...
arch/x86/crypto/sm4_aesni_avx_glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Twofish Cipher 8-way parallel algorithm (AVX/x86_64) * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/linkage.h> #inclu...
arch/x86/crypto/twofish-avx-x86_64-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /*************************************************************************** * Copyright (C) 2006 by Joachim Fritschi, <jfritschi@freenet.de> * * * *******************************************...
arch/x86/crypto/twofish-i586-asm_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Twofish Cipher 3-way parallel algorithm (x86_64) * * Copyright (C) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> */ #include <linux/linkage.h> #include <linux/cfi_types.h> .file "twofish-x86_64-asm-3way.S" .text /* structure of crypto context */ #define s0 0...
arch/x86/crypto/twofish-x86_64-asm_64-3way.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /*************************************************************************** * Copyright (C) 2006 by Joachim Fritschi, <jfritschi@freenet.de> * * * *******************************************...
arch/x86/crypto/twofish-x86_64-asm_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef ASM_X86_TWOFISH_H #define ASM_X86_TWOFISH_H #include <linux/crypto.h> #include <crypto/twofish.h> #include <crypto/b128ops.h> /* regular block cipher functions from twofish_x86_64 module */ asmlinkage void twofish_enc_blk(const void *ctx, u8 *dst, const u8 *src); asmlink...
arch/x86/crypto/twofish.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for AVX assembler version of Twofish Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/module.h> #include <linu...
arch/x86/crypto/twofish_avx_glue.c
null
null
null
null
null
source
linux
/* * Glue Code for assembler optimized version of TWOFISH * * Originally Twofish for GPG * By Matthew Skala <mskala@ansuz.sooke.bc.ca>, July 26, 1998 * 256-bit key length added March 20, 1999 * Some modifications to reduce the text size by Werner Koch, April, 1998 * Ported to the kerneli patch by Marc Mutz <Marc...
arch/x86/crypto/twofish_glue.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue Code for 3-way parallel assembler optimized version of Twofish * * Copyright (c) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi> */ #include <asm/cpu_device_id.h> #include <crypto/algapi.h> #include <crypto/twofish.h> #include <linux/crypto.h> #include <linux/...
arch/x86/crypto/twofish_glue_3way.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/jump_label.h> #include <asm/unwind_hints.h> #include <asm/cpufeatures.h> #include <asm/page_types.h> #include <asm/percpu.h> #include <asm/asm-offsets.h> #include <asm/processor-flags.h> #include <asm/ptrace-abi.h> #include <asm/msr.h> #include <asm/nospec-branch.h...
arch/x86/entry/calling.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Common place for both 32- and 64-bit entry routines. */ #include <linux/export.h> #include <linux/kvm_types.h> #include <linux/linkage.h> #include <linux/objtool.h> #include <asm/msr-index.h> #include <asm/unwind_hints.h> #include <asm/segment.h> #include <asm/cache.h> #in...
arch/x86/entry/entry.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 1991,1992 Linus Torvalds * * entry_32.S contains the system-call and low-level fault and trap handling routines. * * Stack layout while running C code: * ptrace needs to have all registers on the stack. * If the order here is changed, it needs to be * ...
arch/x86/entry/entry_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/x86_64/entry.S * * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 2000, 2001, 2002 Andi Kleen SuSE Labs * Copyright (C) 2000 Pavel Machek <pavel@suse.cz> * * entry.S contains the system-call and fault low-level handling routines. * * Some o...
arch/x86/entry/entry_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Compatibility mode system call entry point for x86-64. * * Copyright 2000-2002 Andi Kleen, SuSE Labs. */ #include <asm/asm-offsets.h> #include <asm/current.h> #include <asm/errno.h> #include <asm/thread_info.h> #include <asm/segment.h> #include <asm/irqflags.h> #include <...
arch/x86/entry/entry_64_compat.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * The actual FRED entry points. */ #include <linux/export.h> #include <linux/kvm_types.h> #include <asm/asm.h> #include <asm/fred.h> #include <asm/segment.h> #include "calling.h" .code64 .section .noinstr.text, "ax" .macro FRED_ENTER UNWIND_HINT_END_OF_STACK ANNOTATE...
arch/x86/entry/entry_64_fred.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * The FRED specific kernel/user entry functions which are invoked from * assembly code and dispatch to the associated handlers. */ #include <linux/kernel.h> #include <linux/kdebug.h> #include <linux/nospec.h> #include <asm/desc.h> #include <asm/fred.h> #include <asm/idtentr...
arch/x86/entry/entry_fred.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* 32-bit system call dispatch */ #include <linux/linkage.h> #include <linux/sys.h> #include <linux/cache.h> #include <linux/syscalls.h> #include <linux/entry-common.h> #include <linux/nospec.h> #include <linux/uaccess.h> #include <asm/apic.h> #include <asm/traps.h> #include <a...
arch/x86/entry/syscall_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* 64-bit system call dispatch */ #include <linux/linkage.h> #include <linux/sys.h> #include <linux/cache.h> #include <linux/syscalls.h> #include <linux/entry-common.h> #include <linux/nospec.h> #include <asm/syscall.h> #define __SYSCALL(nr, sym) extern long __x64_##sym(const ...
arch/x86/entry/syscall_64.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Save registers before calling assembly functions. This avoids * disturbance of register allocation in some inline assembly constructs. * Copyright 2001,2002 by Andi Kleen, SuSE Labs. */ #include <linux/export.h> #include <linux/linkage.h> #include "calling.h" #includ...
arch/x86/entry/thunk.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/err.h> #include <linux/mm.h> #include <asm/current.h> #include <asm/traps.h> #include <asm/vdso.h> struct vdso_exception_table_entry { int insn, fixup; }; bool fixup_vdso_exception(struct pt_regs *regs, int trapnr, unsigned long error_code, unsigned long fault...
arch/x86/entry/vdso/extable.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __VDSO_EXTABLE_H #define __VDSO_EXTABLE_H /* * Inject exception fixup for vDSO code. Unlike normal exception fixup, * vDSO uses a dedicated handler the addresses are relative to the overall * exception table, not each individual entry. */ #ifdef __ASSEMBLER__ #define...
arch/x86/entry/vdso/extable.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * (C) Copyright 2002 Linus Torvalds * Portions based on the vdso-randomization code from exec-shield: * Copyright(C) 2005-2006, Red Hat, Inc., Ingo Molnar * * This file contains the needed initializations to support sysenter. */ #include <linux/init.h> #include <linux/smp.h...
arch/x86/entry/vdso/vdso32-setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2007 Andi Kleen, SUSE Labs. * * This contains most of the x86 vDSO kernel-side code. */ #include <linux/mm.h> #include <linux/err.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/slab.h> #include <linux/init.h> #include <linux/ra...
arch/x86/entry/vdso/vma.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text. * Here we can supply some information useful to userland. */ #include <linux/build-salt.h> #include <linux/version.h> #include <linux/elfnote.h> /* Ideally this would use UTS_NAME, but using a qu...
arch/x86/entry/vdso/common/note.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Fast user context implementation of clock_gettime, gettimeofday, and time. * * Copyright 2006 Andi Kleen, SUSE Labs. * Copyright 2019 ARM Limited * * 32 Bit compat layer by Stefani Seibold <stefani@seibold.net> * sponsored by Rohde & Schwarz GmbH & Co. KG Munich/Ger...
arch/x86/entry/vdso/common/vclock_gettime.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm/vdso.h> #include <asm/vdso/vsyscall.h> #include <vdso/datapage.h> /* * Linker script for vDSO. This is an ELF shared object prelinked to * its virtual address, and with only one read-only segment. * This script controls its layout. */ SECTIONS { /* * User/k...
arch/x86/entry/vdso/common/vdso-layout.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2006 Andi Kleen, SUSE Labs. * * Fast user context implementation of getcpu() */ #include <linux/kernel.h> #include <asm/segment.h> #include <vdso/processor.h> notrace long __vdso_getcpu(unsigned *cpu, unsigned *node, void *unused) { vdso_read_cpunode(cpu, n...
arch/x86/entry/vdso/common/vgetcpu.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifdef CONFIG_X86_64 /* * in case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel * configuration */ #undef CONFIG_64BIT #undef CONFIG_X86_64 #undef CONFIG_COMPAT #undef CONFIG_PGTABLE_LEVELS #undef CONFIG_ILLEGAL_POINTER_VALUE #undef CONFIG_SPARSEMEM_VMEMMAP #undef ...
arch/x86/entry/vdso/vdso32/fake_32bit_build.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/unistd_32.h> #include <asm/dwarf2.h> #include <asm/asm-offsets.h> .macro STARTPROC_SIGNAL_FRAME sc CFI_STARTPROC simple CFI_SIGNAL_FRAME /* -4 as pretcode has already been popped */ CFI_DEF_CFA esp, \sc - 4 CFI_OFFSET eip, IA32_SIG...
arch/x86/entry/vdso/vdso32/sigreturn.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * AT_SYSINFO entry point */ #include <linux/linkage.h> #include <asm/dwarf2.h> #include <asm/cpufeatures.h> #include <asm/alternative.h> .text .globl __kernel_vsyscall .type __kernel_vsyscall,@function ALIGN __kernel_vsyscall: CFI_STARTPROC /* * If using int $0x80, ...
arch/x86/entry/vdso/vdso32/system_call.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Linker script for 32-bit vDSO. * We #include the file to define the layout details. * * This file defines the version script giving the user-exported symbols in * the DSO. */ #include <asm/page.h> #define BUILD_VDSO32 #include "common/vdso-layout.lds.S" /* The ELF e...
arch/x86/entry/vdso/vdso32/vdso32.lds.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Linker script for 64-bit vDSO. * We #include the file to define the layout details. * * This file defines the version script giving the user-exported symbols in * the DSO. */ #define BUILD_VDSO64 #include "common/vdso-layout.lds.S" /* * This controls what userland s...
arch/x86/entry/vdso/vdso64/vdso64.lds.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Linker script for x32 vDSO. * We #include the file to define the layout details. * * This file defines the version script giving the user-exported symbols in * the DSO. */ #define BUILD_VDSOX32 #include "common/vdso-layout.lds.S" /* * This controls what userland sym...
arch/x86/entry/vdso/vdso64/vdsox32.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2022-2024 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ #include <linux/linkage.h> #include <asm/frame.h> .section .rodata, "a" .align 16 CONSTANTS: .octa 0x6b20657479622d323320646e61707865 .text /* * Very basic SSE2 implementation of ChaCha20...
arch/x86/entry/vdso/vdso64/vgetrandom-chacha.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2022-2024 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ #include <linux/types.h> #include "lib/vdso/getrandom.c" ssize_t __vdso_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_len) { return __cvdso...
arch/x86/entry/vdso/vdso64/vgetrandom.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/errno.h> #include <asm/enclu.h> #include "extable.h" /* Relative to %rbp. */ #define SGX_ENCLAVE_OFFSET_OF_RUN 16 /* The offsets relative to struct sgx_enclave_run. */ #define SGX_ENCLAVE_RUN_TCS 0 #define SGX_ENCLAVE_RUN_LEAF 8 #d...
arch/x86/entry/vdso/vdso64/vsgx.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2012-2014 Andy Lutomirski <luto@amacapital.net> * * Based on the original implementation which is: * Copyright (C) 2001 Andrea Arcangeli <andrea@suse.de> SuSE * Copyright 2003 Andi Kleen, SuSE Labs. * * Parts of the original code have been moved to arch/x...
arch/x86/entry/vsyscall/vsyscall_64.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * vsyscall_emu_64.S: Vsyscall emulation page * * Copyright (c) 2011 Andy Lutomirski */ #include <linux/linkage.h> #include <asm/irq_vectors.h> #include <asm/page_types.h> #include <asm/unistd_64.h> __PAGE_ALIGNED_DATA .globl __vsyscall_page .balign PAGE_SIZE, 0xcc...
arch/x86/entry/vsyscall/vsyscall_emu_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM #define TRACE_SYSTEM vsyscall #if !defined(__VSYSCALL_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) #define __VSYSCALL_TRACE_H #include <linux/tracepoint.h> TRACE_EVENT(emulate_vsyscall, TP_PROTO(int nr), TP_ARGS(nr), TP_STRUCT__entry(__fiel...
arch/x86/entry/vsyscall/vsyscall_trace.h
null
null
null
null
null
source
linux
/* * Performance events x86 architecture code * * Copyright (C) 2008 Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright (C) 2008-2009 Red Hat, Inc., Ingo Molnar * Copyright (C) 2009 Jaswinder Singh Rajput * Copyright (C) 2009 Advanced Micro Devices, Inc., Robert Richter * Copyright (C) 2008-2009...
arch/x86/events/core.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/perf_event.h> #include <linux/sysfs.h> #include <linux/nospec.h> #include <asm/cpu_device_id.h> #include <asm/msr.h> #include "probe.h" enum perf_msr_id { PERF_MSR_TSC = 0, PERF_MSR_APERF = 1, PERF_MSR_MPERF = 2, PERF_MSR_PPERF = 3, PERF_MSR_SMI = 4, ...
arch/x86/events/msr.c
null
null
null
null
null
source
linux
/* * Performance events x86 architecture header * * Copyright (C) 2008 Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright (C) 2008-2009 Red Hat, Inc., Ingo Molnar * Copyright (C) 2009 Jaswinder Singh Rajput * Copyright (C) 2009 Advanced Micro Devices, Inc., Robert Richter * Copyright (C) 2008-20...
arch/x86/events/perf_event.h
null
null
null
null
null
source
linux
/* * struct hw_perf_event.flags flags */ PERF_ARCH(PEBS_LDLAT, 0x0000001) /* ld+ldlat data address sampling */ PERF_ARCH(PEBS_ST, 0x0000002) /* st data address sampling */ PERF_ARCH(PEBS_ST_HSW, 0x0000004) /* haswell style datala, store */ PERF_ARCH(PEBS_LD_HSW, 0x0000008) /* haswell style datala, load */ PERF_AR...
arch/x86/events/perf_event_flags.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include <linux/types.h> #include <linux/bits.h> #include <asm/msr.h> #include "probe.h" static umode_t not_visible(struct kobject *kobj, struct attribute *attr, int i) { return 0; } /* * Accepts msr[] array with non populated entries as long as either ...
arch/x86/events/probe.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ARCH_X86_EVENTS_PROBE_H__ #define __ARCH_X86_EVENTS_PROBE_H__ #include <linux/sysfs.h> struct perf_msr { u64 msr; struct attribute_group *grp; bool (*test)(int idx, void *data); bool no_check; u64 mask; }; unsigned long perf_msr_probe(struct perf_msr *msr,...
arch/x86/events/probe.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Support Intel/AMD RAPL energy consumption counters * Copyright (C) 2013 Google, Inc., Stephane Eranian * * Intel RAPL interface is specified in the IA-32 Manual Vol3b * section 14.7.1 (September 2013) * * AMD RAPL interface for Fam17h is described in the public PPR: ...
arch/x86/events/rapl.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <asm/insn.h> #include <linux/mm.h> #include <asm/msr.h> #include "perf_event.h" static int decode_branch_type(struct insn *insn) { int ext; if (insn_get_opcode(insn)) return X86_BR_ABORT; switch (insn->opcode.bytes[0]) { case 0xf: switch (insn->opcode.bytes[1]) {...
arch/x86/events/utils.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Implement support for AMD Fam19h Branch Sampling feature * Based on specifications published in AMD PPR Fam19 Model 01 * * Copyright 2021 Google LLC * Contributed by Stephane Eranian <eranian@google.com> */ #include <linux/kernel.h> #include <linux/jump_label.h> #include <...
arch/x86/events/amd/brs.c
null
null
null
null
null