instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/curve25519' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2024- IBM Corp. * * X25519 scalar multiplication with 51 bits limbs for PPC64le. * Based on RFC7748 and AArch64 optimized implementation for X25519 * - Algorithm 1 Scalar multiplication of a variable point */ #include <linux/types.h> #include...
Linux kernel'inde 'lib/crypto/powerpc/aes-spe-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Fast AES implementation for SPE instruction set (PPC) * * This code makes use of the SPE SIMD instruction set as defined in * http://cache.freescale.com/files/32bit/doc/ref_manual/SPEPIM.pdf * Implementation is based on optimization guide notes from ...
Linux kernel'inde 'lib/crypto/powerpc/sha1-powerpc-asm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * SHA-1 implementation for PowerPC. * * Copyright (C) 2005 Paul Mackerras <paulus@samba.org> */ #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/asm-compat.h> #ifdef __BIG_ENDIAN__ #define LWZ(rt, d, ra) \ lwz rt,d(ra) #else #define LWZ(rt,...
Linux kernel'inde 'lib/crypto/powerpc/md5-asm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Fast MD5 implementation for PPC * * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> */ #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/asm-compat.h> #define rHP r3 #define rWP r4 #define rH0 r0 #define rH1 r6 #def...
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/aes-spe-regs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Common registers for PPC AES implementation * * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> */ #define rKS r0 /* copy of en-/decryption key pointer */ #define rDP r3 /* destination pointer */ #define rSP r4 /* source pointer */...
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/md5' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * MD5 optimized for PowerPC */ void ppc_md5_transform(u32 *state, const u8 *data, size_t nblocks); static void md5_blocks(struct md5_block_state *state, const u8 *data, size_t nblocks) { ppc_md5_transform(state->h, data, nblocks); } ```
Linux kernel'inde 'lib/crypto/powerpc/aes-spe-keys' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Key handling functions for PPC AES implementation * * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> */ #include <asm/ppc_asm.h> #ifdef __BIG_ENDIAN__ #define LOAD_KEY(d, s, off) \ lwz d,off(s); #else #define LOAD_KEY(d, s, off) \...
Linux kernel'inde 'lib/crypto/powerpc/poly1305-p10le_64' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ # # Accelerated poly1305 implementation for ppc64le. # # Copyright 2023- IBM Corp. All rights reserved # #=================================================================================== # Written by Danny Tsen <dtsen@us.ibm.com> # # Poly1305 - this version...
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/gf128hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * GHASH routines supporting VMX instructions on the Power 8 * * Copyright (C) 2015, 2019 International Business Machines Inc. * Copyright (C) 2014 - 2018 Linaro Ltd. * Copyright 2026 Google LLC */ #include <asm/simd.h> #include <asm/switch_to.h> #include <linux/cpuf...
Linux kernel'inde 'lib/crypto/powerpc/aes-spe-modes' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * AES modes (ECB/CBC/CTR/XTS) for PPC AES implementation * * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> */ #include <asm/ppc_asm.h> #include "aes-spe-regs.h" #ifdef __BIG_ENDIAN__ /* Macros for big endian builds */ #define LOAD...
Linux kernel'inde 'lib/crypto/powerpc/aes-tab-4k' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * 4K AES tables for PPC AES implementation * * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> */ /* * These big endian AES encryption/decryption tables have been taken from * crypto/aes_generic.c and are designed to be simply accesse...
Linux kernel'inde 'lib/crypto/powerpc/chacha-p10le-8x' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ # # Accelerated chacha20 implementation for ppc64le. # # Copyright 2023- IBM Corp. All rights reserved # #=================================================================================== # Written by Danny Tsen <dtsen@us.ibm.com> # # do rounds, 8 quarter r...
Linux kernel'inde 'lib/crypto/powerpc/sha1-spe-asm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Fast SHA-1 implementation for SPE instruction set (PPC) * * This code makes use of the SPE SIMD instruction set as defined in * http://cache.freescale.com/files/32bit/doc/ref_manual/SPEPIM.pdf * Implementation is based on optimization guide notes fro...
Linux kernel'inde 'lib/crypto/powerpc/curve25519-ppc64le_asm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ # # This code is taken from CRYPTOGAMs[1] and is included here using the option # in the license to distribute the code under the GPL. Therefore this program # is free software; you can redistribute it and/or modify it under the terms of # the GNU General Publ...
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/poly1305' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Poly1305 authenticator algorithm, RFC7539. * * Copyright 2023- IBM Corp. All rights reserved. */ #include <asm/switch_to.h> #include <linux/cpufeature.h> #include <linux/jump_label.h> #include <linux/kernel.h> #include <linux/unaligned.h> asmlinkage void poly1305_p1...
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/sha1' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SHA-1 optimized for PowerPC * * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> */ #include <asm/switch_to.h> #include <linux/preempt.h> #ifdef CONFIG_SPE /* * MAX_BYTES defines the number of bytes that are allowed to be processed * betwe...
Linux kernel'inde 'lib/crypto/powerpc/sha256-spe-asm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Fast SHA-256 implementation for SPE instruction set (PPC) * * This code makes use of the SPE SIMD instruction set as defined in * http://cache.freescale.com/files/32bit/doc/ref_manual/SPEPIM.pdf * Implementation is based on optimization guide notes f...
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/aes' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> * Copyright (C) 2015 International Business Machines Inc. * Copyright 2026 Google LLC */ #include <asm/simd.h> #include <asm/switch_to.h> #include <linux/cpufeature.h> #include <linux/jump_label.h> ...
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/sha256' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SHA-256 Secure Hash Algorithm, SPE optimized * * Based on generic implementation. The assembler module takes care * about the SPE registers so it can run from interrupt context. * * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> */ #incl...
Linux işletim sistemi çekirdeği için 'lib/crypto/powerpc/chacha' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * ChaCha stream cipher (P10 accelerated) * * Copyright 2023- IBM Corp. All rights reserved. */ #include <crypto/internal/simd.h> #include <linux/kernel.h> #include <linux/cpufeature.h> #include <linux/sizes.h> #include <asm/simd.h> #include <asm/switch_to.h> ...
Linux işletim sistemi çekirdeği için 'lib/crypto/s390/gf128hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * GHASH optimized using the CP Assist for Cryptographic Functions (CPACF) * * Copyright 2026 Google LLC */ #include <asm/cpacf.h> #include <linux/cpufeature.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_cpacf_ghash); #define ghash_preparekey_arch gh...
Linux işletim sistemi çekirdeği için 'lib/crypto/s390/chacha-s390' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * s390 ChaCha stream cipher. * * Copyright IBM Corp. 2021 */ #ifndef _CHACHA_S390_H #define _CHACHA_S390_H void chacha20_vx(u8 *out, const u8 *inp, size_t len, const u32 *key, const u32 *counter); #endif /* _CHACHA_S390_H */ ```
Linux işletim sistemi çekirdeği için 'lib/crypto/s390/sha1' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SHA-1 optimized using the CP Assist for Cryptographic Functions (CPACF) * * Copyright 2025 Google LLC */ #include <asm/cpacf.h> #include <linux/cpufeature.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_cpacf_sha1); static void sha1_blocks(struct sh...
Linux işletim sistemi çekirdeği için 'lib/crypto/s390/aes' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * AES optimized using the CP Assist for Cryptographic Functions (CPACF) * * Copyright 2026 Google LLC */ #include <asm/cpacf.h> #include <linux/cpufeature.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_cpacf_aes128); static __ro_after_init DEFINE_STAT...
Linux işletim sistemi çekirdeği için 'lib/crypto/s390/sha256' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SHA-256 optimized using the CP Assist for Cryptographic Functions (CPACF) * * Copyright 2025 Google LLC */ #include <asm/cpacf.h> #include <linux/cpufeature.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_cpacf_sha256); static void sha256_blocks(str...
Linux kernel'inde 'lib/crypto/s390/chacha-s390' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Original implementation written by Andy Polyakov, @dot-asm. * This is an adaptation of the original code for kernel use. * * Copyright (C) 2006-2019 CRYPTOGAMS by <appro@openssl.org>. All Rights Reserved. */ #include <linux/linkage.h> #include <asm/nospec-in...
Linux işletim sistemi çekirdeği için 'lib/crypto/s390/sha3' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SHA-3 optimized using the CP Assist for Cryptographic Functions (CPACF) * * Copyright 2025 Google LLC */ #include <asm/cpacf.h> #include <linux/cpufeature.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_sha3); static __ro_after_init DEFINE_STATIC_KEY...
Linux işletim sistemi çekirdeği için 'lib/crypto/s390/sha512' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SHA-512 optimized using the CP Assist for Cryptographic Functions (CPACF) * * Copyright 2025 Google LLC */ #include <asm/cpacf.h> #include <linux/cpufeature.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_cpacf_sha512); static void sha512_blocks(str...
Linux işletim sistemi çekirdeği için 'lib/crypto/s390/chacha' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * ChaCha stream cipher (s390 optimized) * * Copyright IBM Corp. 2021 */ #include <linux/cpufeature.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/sizes.h> #include <asm/fpu.h> #include "chacha-s390.h" #define hchacha_block_arch hchacha_block_g...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/curve25519' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c // SPDX-License-Identifier: GPL-2.0 OR MIT /* * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * Based on public domain code from Daniel J. Bernstein and Peter Schwabe. This * began from SUPERCOP's curve25519/neon2/scalarmult.s, but has subsequently been * manually rework...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/blake2b' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * BLAKE2b digest algorithm, NEON accelerated * * Copyright 2020 Google LLC */ #include <asm/neon.h> #include <asm/simd.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_neon); asmlinkage void blake2b_compress_neon(struct blake2b_ctx *ctx, con...
Linux kernel'inde 'lib/crypto/arm/sha1-ce-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * SHA-1 secure hash using ARMv8 Crypto Extensions * * Copyright (C) 2015 Linaro Ltd. * Author: Ard Biesheuvel <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> .text .arch armv8-a .fpu crypto-neon-fp-armv8 k0 .r...
Linux kernel'inde 'lib/crypto/arm/sha1-armv4-large' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly #define __ARM_ARCH__ __LINUX_ARM_ARCH__ @ SPDX-License-Identifier: GPL-2.0 @ This code is taken from the OpenSSL project but the author (Andy Polyakov) @ has relicensed it under the GPLv2. Therefore this program is free software; @ you can redistribute it and/or modify it under the terms of the GNU General...
Linux kernel'inde 'lib/crypto/arm/chacha-neon-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* * ChaCha/HChaCha NEON helper functions * * Copyright (C) 2016 Linaro, Ltd. <ard.biesheuvel@linaro.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Bas...
Linux kernel'inde 'lib/crypto/arm/sha256-ce' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * SHA-224/256 secure hash using ARMv8 Crypto Extensions * * Copyright (C) 2015 Linaro Ltd. * Author: Ard Biesheuvel <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> .text .arch armv8-a .fpu crypto-neon-fp-armv8 ...
Linux kernel'inde 'lib/crypto/arm/ghash-neon-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * Accelerated GHASH implementation with NEON vmull.p8 instructions. * * Copyright (C) 2015 - 2017 Linaro Ltd. * Copyright (C) 2023 Google LLC. <ardb@google.com> */ #include <linux/linkage.h> #include <asm/assembler.h> .fpu neon SHASH .req q0 T1 .r...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/blake2s' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* defined in blake2s-core.S */ void blake2s_compress(struct blake2s_ctx *ctx, const u8 *data, size_t nblocks, u32 inc); ```
Linux kernel'inde 'lib/crypto/arm/nh-neon-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * NH - ε-almost-universal hash function, NEON accelerated version * * Copyright 2018 Google LLC * * Author: Eric Biggers <ebiggers@google.com> */ #include <linux/linkage.h> .text .fpu neon KEY .req r0 MESSAGE .req r1 MESSAGE_LEN .req r2 HASH .req ...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/gf128hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * GHASH, arm optimized * * Copyright 2026 Google LLC */ #include <asm/hwcap.h> #include <asm/neon.h> #include <asm/simd.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_neon); void pmull_ghash_update_p8(size_t blocks, struct polyval_elem *dg, co...
Linux kernel'inde 'lib/crypto/arm/sha1-armv7-neon' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* ARM/NEON accelerated SHA-1 transform function * * Copyright © 2013-2014 Jussi Kivilinna <jussi.kivilinna@iki.fi> */ #include <linux/linkage.h> #include <asm/assembler.h> .syntax unified .fpu neon .text /* Context structure */ #define state_h0 0 #de...
Linux kernel'inde 'lib/crypto/arm/chacha-scalar-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2018 Google, Inc. */ #include <linux/linkage.h> #include <asm/assembler.h> /* * Design notes: * * 16 registers would be needed to hold the state matrix, but only 14 are * available because 'sp' and 'pc' cannot be used. So we spill the elemen...
Linux kernel'inde 'lib/crypto/arm/blake2s-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * BLAKE2s digest algorithm, ARM scalar implementation. This is faster * than the generic implementations of BLAKE2s and BLAKE2b, but slower * than the NEON implementation of BLAKE2b. There is no NEON * implementation of BLAKE2s, since NEON doesn't rea...
Linux kernel'inde 'lib/crypto/arm/aes-cipher-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * Scalar AES core transform * * Copyright (C) 2017 Linaro Ltd. * Author: Ard Biesheuvel <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/cache.h> .text .align 5 rk .req r0 rounds .req r1 in .req...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/nh' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * ARM32 accelerated implementation of NH * * Copyright 2018 Google LLC */ #include <asm/neon.h> #include <asm/simd.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_neon); asmlinkage void nh_neon(const u32 *key, const u8 *message, size_t message_len, __le64 ...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/poly1305' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * OpenSSL/Cryptogams accelerated Poly1305 transform for ARM * * Copyright (C) 2019 Linaro Ltd. <ard.biesheuvel@linaro.org> */ #include <asm/hwcap.h> #include <asm/simd.h> #include <linux/cpufeature.h> #include <linux/jump_label.h> #include <linux/kernel.h> asmlinkage...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/sha1' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SHA-1 optimized for ARM * * Copyright 2025 Google LLC */ #include <asm/simd.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_neon); static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_ce); asmlinkage void sha1_block_data_order(struct sha1_block_state...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/aes' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * AES block cipher, optimized for ARM * * Copyright (C) 2017 Linaro Ltd. * Copyright 2026 Google LLC */ asmlinkage void __aes_arm_encrypt(const u32 rk[], int rounds, const u8 in[AES_BLOCK_SIZE], u8 out[AES_BLOCK_SIZE]); asmlinkage void __aes_arm_decr...
Linux kernel'inde 'lib/crypto/arm/curve25519-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 OR MIT */ /* * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * Based on public domain code from Daniel J. Bernstein and Peter Schwabe. This * began from SUPERCOP's curve25519/neon2/scalarmult.s, but has subsequently been * manua...
Linux kernel'inde 'lib/crypto/arm/blake2b-neon-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * BLAKE2b digest algorithm optimized with ARM NEON instructions. On ARM * processors that have NEON support but not the ARMv8 Crypto Extensions, * typically this BLAKE2b implementation is much faster than the SHA-2 family * and slightly faster than SHA...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/sha256' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SHA-256 optimized for ARM * * Copyright 2025 Google LLC */ #include <asm/neon.h> #include <asm/simd.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_neon); static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_ce); asmlinkage void sha256_block_data_ord...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/sha512' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * arm32-optimized SHA-512 block function * * Copyright 2025 Google LLC */ #include <asm/neon.h> #include <asm/simd.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_neon); asmlinkage void sha512_block_data_order(struct sha512_block_state *state, co...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm/chacha' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * ChaCha and HChaCha functions (ARM optimized) * * Copyright (C) 2016-2019 Linaro, Ltd. <ard.biesheuvel@linaro.org> * Copyright (C) 2015 Martin Willi */ #include <crypto/internal/simd.h> #include <linux/jump_label.h> #include <linux/kernel.h> #include <asm/cputype.h...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/sha1-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py sha1 */ static const struct { size_t data_len; u8 digest[SHA1_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, 0x0d, 0x32, 0x5...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/sha256-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py sha256 */ static const struct { size_t data_len; u8 digest[SHA256_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a,...
Linux kernel'inin 'lib/crypto/tests/sha384_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/sha2.h> #include "sha384-testvecs.h" #define HASH sha384 #define HASH_CTX sha384_ctx #define HASH_SIZE SHA384_DIGEST_SIZE #define HASH_INIT sha384_init #define HASH_UPDATE sha384_update #define HASH_FINAL sha384_fina...
Linux kernel'inin 'lib/crypto/tests/polyval_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/gf128hash.h> #include "polyval-testvecs.h" /* * A fixed key used when presenting POLYVAL as an unkeyed hash function in order * to reuse hash-test-template.h. At the beginning of the test suite, this is * initial...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/hash-test-template' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Test cases for hash functions, including a benchmark. This is included by * KUnit test suites that want to use it. See sha512_kunit.c for an example. * * Copyright 2025 Google LLC */ #include <kunit/run-in-irq-context.h> #include <kunit/test.h> #include <...
Linux kernel'inin 'lib/crypto/tests/mldsa_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * KUnit tests and benchmark for ML-DSA * * Copyright 2025 Google LLC */ #include <crypto/mldsa.h> #include <kunit/test.h> #include <linux/random.h> #include <linux/unaligned.h> #define Q 8380417 /* The prime q = 2^23 - 2^13 + 1 */ /* ML-DSA parameters that the ...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/mldsa-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* ML-DSA test vectors extracted from leancrypto */ struct mldsa_testvector { enum mldsa_alg alg; int sig_len; int msg_len; int pk_len; const u8 *sig; const u8 *msg; const u8 *pk; }; static const struct mldsa_testvector mldsa44_testvector = { .alg = ...
Linux kernel'inin 'lib/crypto/tests/sha1_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/sha1.h> #include "sha1-testvecs.h" #define HASH sha1 #define HASH_CTX sha1_ctx #define HASH_SIZE SHA1_DIGEST_SIZE #define HASH_INIT sha1_init #define HASH_UPDATE sha1_update #define HASH_FINAL sha1_final #define HMAC...
Linux kernel'inin 'lib/crypto/tests/sha224_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/sha2.h> #include "sha224-testvecs.h" #define HASH sha224 #define HASH_CTX sha224_ctx #define HASH_SIZE SHA224_DIGEST_SIZE #define HASH_INIT sha224_init #define HASH_UPDATE sha224_update #define HASH_FINAL sha224_fina...
Linux kernel'inin 'lib/crypto/tests/poly1305_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/poly1305.h> #include "poly1305-testvecs.h" /* * A fixed key used when presenting Poly1305 as an unkeyed hash function in * order to reuse hash-test-template.h. At the beginning of the test suite, * this is initia...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/aes-cmac-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py aes-cmac */ static const struct { size_t data_len; u8 digest[AES_BLOCK_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0x9a, 0xeb, 0x94, 0xc1, 0xe9, 0xc1, 0x57, 0x49, 0x7e, 0...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/polyval-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py polyval */ static const struct { size_t data_len; u8 digest[POLYVAL_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0...
Linux kernel'inin 'lib/crypto/tests/aes_cbc_macs_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2026 Google LLC */ #include <crypto/aes-cbc-macs.h> #include "aes-cmac-testvecs.h" /* * A fixed key used when presenting AES-CMAC as an unkeyed hash function in * order to reuse hash-test-template.h. At the beginning of the test suite, * this is in...
Linux kernel'inin 'lib/crypto/tests/nh_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/nh.h> #include <kunit/test.h> #include "nh-testvecs.h" static void test_nh(struct kunit *test) { u32 *key = kunit_kmalloc(test, NH_KEY_BYTES, GFP_KERNEL); __le64 hash[NH_NUM_PASSES]; KUNIT_ASSERT_NOT_NULL(test, k...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/sm3-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py sm3 */ static const struct { size_t data_len; u8 digest[SM3_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0x1a, 0xb2, 0x1d, 0x83, 0x55, 0xcf, 0xa1, 0x7f, 0x8e, 0x61,...
Linux kernel'inin 'lib/crypto/tests/sha256_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/sha2.h> #include "sha256-testvecs.h" /* Generate the HASH_KUNIT_CASES using hash-test-template.h. */ #define HASH sha256 #define HASH_CTX sha256_ctx #define HASH_SIZE SHA256_DIGEST_SIZE #define HASH_INIT sha256_init ...
Linux kernel'inin 'lib/crypto/tests/md5_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/md5.h> #include "md5-testvecs.h" #define HASH md5 #define HASH_CTX md5_ctx #define HASH_SIZE MD5_DIGEST_SIZE #define HASH_INIT md5_init #define HASH_UPDATE md5_update #define HASH_FINAL md5_final #define HMAC_KEY hma...
Linux kernel'inin 'lib/crypto/tests/curve25519_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR MIT /* * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ #include <crypto/curve25519.h> #include <kunit/test.h> #include <linux/timekeeping.h> struct curve25519_test_vector { u8 private[CURVE25519_KEY_SIZE]; u8 public[CURVE25519_KEY...
Linux kernel'inin 'lib/crypto/tests/sha512_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/sha2.h> #include "sha512-testvecs.h" #define HASH sha512 #define HASH_CTX sha512_ctx #define HASH_SIZE SHA512_DIGEST_SIZE #define HASH_INIT sha512_init #define HASH_UPDATE sha512_update #define HASH_FINAL sha512_fina...
Linux kernel'inin 'lib/crypto/tests/sha3_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2025 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #include <crypto/sha3.h> #include "sha3-testvecs.h" #define HASH sha3_256 #define HASH_CTX sha3_ctx #define HASH_SIZE SHA3_256_DIGEST_SIZE #define HASH_IN...
Linux kernel'inin 'lib/crypto/tests/blake2b_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/blake2b.h> #include "blake2b-testvecs.h" /* * The following are compatibility functions that present BLAKE2b as an unkeyed * hash function that produces hashes of fixed length BLAKE2B_HASH_SIZE, so that * hash-tes...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/blake2b-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py blake2b */ static const struct { size_t data_len; u8 digest[BLAKE2B_HASH_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0x78, 0x6a, 0x02, 0xf7, 0x42, 0x01, 0x59, 0x03, 0xc6,...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/nh-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py nh */ static const u8 nh_test_key[NH_KEY_BYTES] = { 0x04, 0x59, 0x66, 0x92, 0x81, 0xd7, 0xe9, 0x25, 0x68, 0xfa, 0xb0, 0xca, 0x9f, 0xea, 0x98, 0xca, 0xcd, 0xbf, 0x6d, 0xa5, 0x0c, 0x22, 0xc3, 0x57...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/sha512-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py sha512 */ static const struct { size_t data_len; u8 digest[SHA512_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0xcf, 0x83, 0xe1, 0x35, 0x7e, 0xef, 0xb8, 0xbd, 0xf1,...
Linux kernel'inin 'lib/crypto/tests/chacha20poly1305_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR MIT /* * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ #include <crypto/chacha20poly1305.h> #include <crypto/chacha.h> #include <crypto/poly1305.h> #include <kunit/test.h> #include <linux/unaligned.h> #include <linux/init.h> #include...
Linux kernel'inin 'lib/crypto/tests/blake2s_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2025 Google LLC */ #include <crypto/blake2s.h> #include "blake2s-testvecs.h" /* * The following are compatibility functions that present BLAKE2s as an unkeyed * hash function that produces hashes of fixed length BLAKE2S_HASH_SIZE, so that * hash-tes...
Linux kernel'inin 'lib/crypto/tests/sm3_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2026 Google LLC */ #include <crypto/sm3.h> #include "sm3-testvecs.h" #define HASH sm3 #define HASH_CTX sm3_ctx #define HASH_SIZE SM3_DIGEST_SIZE #define HASH_INIT sm3_init #define HASH_UPDATE sm3_update #define HASH_FINAL sm3_final #include "hash-test-...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/sha384-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py sha384 */ static const struct { size_t data_len; u8 digest[SHA384_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0x38, 0xb0, 0x60, 0xa7, 0x51, 0xac, 0x96, 0x38, 0x4c,...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/ghash-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py ghash */ static const struct { size_t data_len; u8 digest[GHASH_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/blake2s-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py blake2s */ static const struct { size_t data_len; u8 digest[BLAKE2S_HASH_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0x69, 0x21, 0x7a, 0x30, 0x79, 0x90, 0x80, 0x94, 0xe1,...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/poly1305-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py poly1305 */ static const struct { size_t data_len; u8 digest[POLY1305_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0xe8, 0x2d, 0x67, 0x2c, 0x01, 0x48, 0xf9, 0xb7, 0...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/md5-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py md5 */ static const struct { size_t data_len; u8 digest[MD5_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04, 0xe9, 0x80,...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/sha224-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py sha224 */ static const struct { size_t data_len; u8 digest[SHA224_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0xd1, 0x4a, 0x02, 0x8c, 0x2a, 0x3a, 0x2b, 0xc9, 0x47,...
Linux kernel'inin 'lib/crypto/tests/ghash_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2026 Google LLC */ #include <crypto/gf128hash.h> #include "ghash-testvecs.h" /* * A fixed key used when presenting GHASH as an unkeyed hash function in order * to reuse hash-test-template.h. At the beginning of the test suite, this is * initialized...
Linux işletim sistemi çekirdeği için 'lib/crypto/tests/sha3-testvecs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* This file was generated by: ./scripts/crypto/gen-hash-testvecs.py sha3 */ /* SHA3-256 test vectors */ static const struct { size_t data_len; u8 digest[SHA3_256_DIGEST_SIZE]; } hash_testvecs[] = { { .data_len = 0, .digest = { 0xa7, 0xff, 0xc6, 0xf8, 0xb...
Linux kernel'inde 'lib/crypto/arm64/polyval-ce-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Implementation of POLYVAL using ARMv8 Crypto Extensions. * * Copyright 2021 Google LLC */ /* * This is an efficient implementation of POLYVAL using ARMv8 Crypto Extensions * It works on 8 blocks at a time, by precomputing the first 8 keys powers h^8, * ...,...
Linux kernel'inde 'lib/crypto/arm64/sha1-ce-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * SHA-1 secure hash using ARMv8 Crypto Extensions * * Copyright (C) 2014 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> .text .arch armv8-a+crypto k0 .req v0 k1 .req v1 k2 .req v2 k3 .req v3 t...
Linux kernel'inde 'lib/crypto/arm64/chacha-neon-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* * ChaCha/HChaCha NEON helper functions * * Copyright (C) 2016-2018 Linaro, Ltd. <ard.biesheuvel@linaro.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * ...
Linux kernel'inde 'lib/crypto/arm64/sha256-ce' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * Core SHA-224/SHA-256 transform using v8 Crypto Extensions * * Copyright (C) 2014 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> .text .arch armv8-a+crypto dga .req q20 dgav .req v20 dgb .req q21...
Linux kernel'inde 'lib/crypto/arm64/ghash-neon-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * Accelerated GHASH implementation with ARMv8 ASIMD instructions. * * Copyright (C) 2014 - 2018 Linaro Ltd. <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> SHASH .req v0 SHASH2 .req v1 T1 .req v2 T2 .req v3 XM...
Linux kernel'inde 'lib/crypto/arm64/sm3-neon-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly // SPDX-License-Identifier: GPL-2.0-or-later /* * sm3-neon-core.S - SM3 secure hash using NEON instructions * * Linux/arm64 port of the libgcrypt SM3 implementation for AArch64 * * Copyright (C) 2021 Jussi Kivilinna <jussi.kivilinna@iki.fi> * Copyright (c) 2022 Tianjia Zhang <tianjia.zhang@linux.aliba...
Linux kernel'inde 'lib/crypto/arm64/nh-neon-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * NH - ε-almost-universal hash function, ARM64 NEON accelerated version * * Copyright 2018 Google LLC * * Author: Eric Biggers <ebiggers@google.com> */ #include <linux/linkage.h> KEY .req x0 MESSAGE .req x1 MESSAGE_LEN .req x2 HASH .req x3 PASS0_SUM...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm64/sm3' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * SM3 optimized for ARM64 * * Copyright 2026 Google LLC */ #include <asm/simd.h> #include <linux/cpufeature.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_neon); static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_ce); asmlinkage void sm3_neon_transf...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm64/gf128hash' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * GHASH and POLYVAL, arm64 optimized * * Copyright 2025 Google LLC */ #include <asm/simd.h> #include <linux/cpufeature.h> #define NUM_H_POWERS 8 static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_asimd); static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_p...
Linux kernel'inde 'lib/crypto/arm64/aes-ce' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * AES cipher for ARMv8 with Crypto Extensions * * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> #define AES_FUNC_START(func) SYM_FUNC_START(ce_ ## func) #define AES_FUNC_END(func...
Linux kernel'inde 'lib/crypto/arm64/aes-cipher-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-only */ /* * Scalar AES core transform * * Copyright (C) 2017 Linaro Ltd <ard.biesheuvel@linaro.org> */ #include <linux/linkage.h> #include <asm/assembler.h> #include <asm/cache.h> .text rk .req x0 out .req x1 in .req x2 rounds .req x3 tt .req x2 .macr...
Linux işletim sistemi çekirdeği için 'lib/crypto/arm64/nh' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * ARM64 accelerated implementation of NH * * Copyright 2018 Google LLC */ #include <asm/hwcap.h> #include <asm/simd.h> #include <linux/cpufeature.h> static __ro_after_init DEFINE_STATIC_KEY_FALSE(have_neon); asmlinkage void nh_neon(const u32 *key, const u8 *message,...
Linux kernel'inde 'lib/crypto/arm64/sha3-ce-core' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Core SHA-3 transform using v8.2 Crypto Extensions * * Copyright (C) 2018 Linaro Ltd <ard.biesheuvel@linaro.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * pu...