instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux işletim sistemi çekirdeği için 'lib/raid/xor/x86/xor_arch' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #include <asm/cpufeature.h> extern struct xor_block_template xor_block_pII_mmx; extern struct xor_block_template xor_block_p5_mmx; extern struct xor_block_template xor_block_sse; extern struct xor_block_template xor_block_sse_pf64; extern struct xor_block_template x...
Linux kernel'inde 'lib/raid/xor/riscv/xor' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2021 SiFive */ #include <linux/linkage.h> #include <linux/export.h> #include <asm/asm.h> SYM_FUNC_START(xor_regs_2_) vsetvli a3, a0, e8, m8, ta, ma vle8.v v0, (a1) vle8.v v8, (a2) sub a0, a0, a3 vxor.vv v16, v0, v8 add a2, a2, a3 v...
Linux işletim sistemi çekirdeği için 'lib/raid/xor/riscv/xor_arch' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2021 SiFive */ #include <asm/vector.h> extern struct xor_block_template xor_block_rvv; static __always_inline void __init arch_xor_init(void) { xor_register(&xor_block_8regs); xor_register(&xor_block_32regs); #ifdef CONFIG_RISCV_ISA_V if (ha...
Linux kernel'inin 'lib/raid/xor/riscv/xor-glue' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2021 SiFive */ #include <asm/vector.h> #include <asm/switch_to.h> #include <asm/asm-prototypes.h> #include "xor_impl.h" #include "xor_arch.h" DO_XOR_BLOCKS(vector_inner, xor_regs_2_, xor_regs_3_, xor_regs_4_, xor_regs_5_); static void xor_gen_vec...
Linux kernel'inin 'lib/lzo/lzo1x_compress_safe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * LZO1X Compressor from LZO * * Copyright (C) 1996-2012 Markus F.X.J. Oberhumer <markus@oberhumer.com> * * The full LZO package can be found at: * http://www.oberhumer.com/opensource/lzo/ * * Changed for Linux kernel use by: * Nitin Gupta <nitingupta910@gm...
Linux kernel'inin 'lib/lzo/lzo1x_compress' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * LZO1X Compressor from LZO * * Copyright (C) 1996-2012 Markus F.X.J. Oberhumer <markus@oberhumer.com> * * The full LZO package can be found at: * http://www.oberhumer.com/opensource/lzo/ * * Changed for Linux kernel use by: * Nitin Gupta <nitingupta910@gm...
Linux kernel'inin 'lib/lzo/lzo1x_decompress_safe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * LZO1X Decompressor from LZO * * Copyright (C) 1996-2012 Markus F.X.J. Oberhumer <markus@oberhumer.com> * * The full LZO package can be found at: * http://www.oberhumer.com/opensource/lzo/ * * Changed for Linux kernel use by: * Nitin Gupta <nitingupta910@...
Linux işletim sistemi çekirdeği için 'lib/lzo/lzodefs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * lzodefs.h -- architecture, OS and compiler specific defines * * Copyright (C) 1996-2012 Markus F.X.J. Oberhumer <markus@oberhumer.com> * * The full LZO package can be found at: * http://www.oberhumer.com/opensource/lzo/ * * Changed for Linux kernel use by: ...
Linux kernel'inin 'lib/pldmfw/pldmfw' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2018-2019, Intel Corporation. */ #include <linux/unaligned.h> #include <linux/crc32.h> #include <linux/device.h> #include <linux/firmware.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/pldmfw.h> #include <linux/sla...
Linux işletim sistemi çekirdeği için 'lib/pldmfw/pldmfw_private' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2018-2019, Intel Corporation. */ #ifndef _PLDMFW_PRIVATE_H_ #define _PLDMFW_PRIVATE_H_ /* The following data structures define the layout of a firmware binary * following the "PLDM For Firmware Update Specification", DMTF standard * #DSP0267. * * pldmfw...
Linux kernel'inin 'lib/reed_solomon/reed_solomon' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Generic Reed Solomon encoder / decoder library * * Copyright (C) 2004 Thomas Gleixner (tglx@kernel.org) * * Reed Solomon code lifted from reed solomon library written by Phil Karn * Copyright 2002 Phil Karn, KA9Q * * Description: * * The generic Reed Solomon libra...
Linux kernel'inin 'lib/reed_solomon/decode_rs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Generic Reed Solomon encoder / decoder library * * Copyright 2002, Phil Karn, KA9Q * May be used under the terms of the GNU General Public License (GPL) * * Adaption to the kernel by Thomas Gleixner (tglx@kernel.org) * * Generic data width independent code which is ...
Linux kernel'inin 'lib/reed_solomon/encode_rs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Generic Reed Solomon encoder / decoder library * * Copyright 2002, Phil Karn, KA9Q * May be used under the terms of the GNU General Public License (GPL) * * Adaption to the kernel by Thomas Gleixner (tglx@kernel.org) * * Generic data width independent code which is ...
Linux kernel'inin 'lib/reed_solomon/test_rslib' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Tests for Generic Reed Solomon encoder / decoder library * * Written by Ferdinand Blomqvist * Based on previous work by Phil Karn, KA9Q */ #include <linux/rslib.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/random...
Linux kernel'inin 'lib/tests/ffs_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * KUnit tests for ffs()-family functions */ #include <kunit/test.h> #include <linux/bitops.h> /* * Test data structures */ struct ffs_test_case { unsigned long input; int expected_ffs; /* ffs() result (1-based) */ int expected_fls; /* fls() result (1-based) */ c...
Linux kernel'inin 'lib/tests/test_hash' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Test cases for <linux/hash.h> and <linux/stringhash.h> * This just verifies that various ways of computing a hash * produce the same thing and, for cases where a k-bit hash * value is requested, is of the requested size. * * We fill a buffer with a 255-byte null-...
Linux kernel'inin 'lib/tests/siphash_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) /* Copyright (C) 2016-2022 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * Test cases for siphash.c * * SipHash: a fast short-input PRF * https://131002.net/siphash/ * * This implementation is specifically for SipHash2-4 for a secure ...
Linux kernel'inin 'lib/tests/test_fprobe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * test_fprobe.c - simple sanity test for fprobe */ #include <linux/kernel.h> #include <linux/fprobe.h> #include <linux/random.h> #include <kunit/test.h> #define div_factor 3 static struct kunit *current_test; static u32 rand1, entry_only_val, entry_val, exit_va...
Linux kernel'inin 'lib/tests/liveupdate' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2025, Google LLC. * Pasha Tatashin <pasha.tatashin@soleen.com> */ #define pr_fmt(fmt) KBUILD_MODNAME " test: " fmt #include <linux/cleanup.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/liveupdate.h> #include <linux/module.h> #includ...
Linux kernel'inin 'lib/tests/cpumask_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * KUnit tests for cpumask. * * Author: Sander Vanheule <sander@svanheule.net> */ #include <kunit/test.h> #include <linux/cpu.h> #include <linux/cpumask.h> #define MASK_MSG(m) \ "%s contains %sCPUs %*pbl", #m, (cpumask_weight(m) ? "" : "no "), \ nr_cpumask_bits, c...
Linux kernel'inin 'lib/tests/test_list_sort' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <kunit/test.h> #include <linux/kernel.h> #include <linux/list_sort.h> #include <linux/list.h> #include <linux/module.h> #include <linux/printk.h> #include <linux/slab.h> #include <linux/random.h> /* * The pattern of set bits in the list length determines which c...
Linux kernel'inin 'lib/tests/test_linear_ranges' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KUnit test for the linear_ranges helper. * * Copyright (C) 2020, ROHM Semiconductors. * Author: Matti Vaittinen <matti.vaittien@fi.rohmeurope.com> */ #include <kunit/test.h> #include <linux/linear_range.h> /* First things first. I deeply dislike unit-tests. I have se...
Linux kernel'inin 'lib/tests/kfifo_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KUnit test for the generic kernel FIFO implementation. * * Copyright (C) 2024 Diego Vieira <diego.daniel.professional@gmail.com> */ #include <kunit/test.h> #include <linux/kfifo.h> #define KFIFO_SIZE 32 #define N_ELEMENTS 5 static void kfifo_test_reset_should_clear_t...
Linux kernel'inin 'lib/tests/hashtable_test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KUnit test for the Kernel Hashtable structures. * * Copyright (C) 2022, Google LLC. * Author: Rae Moar <rmoar@google.com> */ #include <kunit/test.h> #include <linux/hashtable.h> struct hashtable_test_entry { int key; int data; struct hlist_node node; int visited;...
Linux kernel'inin 'lib/tests/base64_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * base64_kunit_test.c - KUnit tests for base64 encoding and decoding functions * * Copyright (c) 2025, Guan-Chun Wu <409411716@gms.tku.edu.tw> */ #include <kunit/test.h> #include <linux/base64.h> /* ---------- Benchmark helpers ---------- */ static u64 bench_encode_ns(c...
Linux kernel'inin 'lib/tests/string_helpers_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* * Test cases for lib/string_helpers.c module. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <kunit/test.h> #include <linux/array_size.h> #include <linux/kernel.h> #include <linux/random.h> #include <linux/string.h> #include <linux/string_helpers.h...
Linux kernel'inin 'lib/tests/is_signed_type_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR MIT /* * ./tools/testing/kunit/kunit.py run is_signed_type [--raw_output] */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <kunit/test.h> #include <linux/compiler.h> enum unsigned_enum { constant_a = 3, }; enum signed_enum { constant_b = -1, constant_c = 2, }; ...
Linux kernel'inin 'lib/tests/scanf_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Test cases for sscanf facility. */ #include <kunit/test.h> #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/overflow.h> #include <linux/prandom.h> #include <linux/slab.h> #include <linux/string.h> #define BUF_SIZE 1024 ...
Linux kernel'inin 'lib/tests/bitops_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2020 Intel Corporation * Copyright (C) 2026 Ryota Sakamoto <sakamo.ryota@gmail.com> */ #include <linux/bitops.h> #include <linux/module.h> #include <kunit/test.h> /* use an enum because that's the most common BITMAP usage */ enum bitops_fun { BITOPS...
Linux kernel'inin 'lib/tests/test_bits' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Test cases for functions and macros in bits.h */ #include <kunit/test.h> #include <linux/bits.h> #include <linux/types.h> #define assert_type(t, x) _Generic(x, t: x, default: 0) static_assert(assert_type(u8, BIT_U8(0)) == 1u); static_assert(assert_type(u16, BIT_U16(0)...
Linux kernel'inin 'lib/tests/test_sort' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <kunit/test.h> #include <linux/sort.h> #include <linux/slab.h> #include <linux/module.h> /* a simple boot-time regression test */ #define TEST_LEN 1000 static int cmpint(const void *a, const void *b) { return *(int *)a - *(int *)b; } static void test_sort(st...
Linux kernel'inin 'lib/tests/randstruct_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Test cases for struct randomization, i.e. CONFIG_RANDSTRUCT=y. * * For example, see: * "Running tests with kunit_tool" at Documentation/dev-tools/kunit/start.rst * ./tools/testing/kunit/kunit.py run randstruct [--raw_output] \ * [--make_option LLVM=1] \ * ...
Linux kernel'inin 'lib/tests/slub_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <kunit/test.h> #include <kunit/test-bug.h> #include <linux/mm.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/rcupdate.h> #include <linux/delay.h> #include <linux/perf_event.h> #include "../mm/slab.h" static struct kunit_r...
Linux kernel'inin 'lib/tests/test_ratelimit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <kunit/test.h> #include <linux/ratelimit.h> #include <linux/module.h> #include <linux/kthread.h> #include <linux/cpumask.h> /* a simple boot-time regression test */ #define TESTRL_INTERVAL (5 * HZ) static DEFINE_RATELIMIT_STATE(testrl, TESTRL_INTERVAL, 3); #de...
Linux kernel'inin 'lib/tests/overflow_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR MIT /* * Test cases for arithmetic overflow checks. See: * "Running tests with kunit_tool" at Documentation/dev-tools/kunit/start.rst * ./tools/testing/kunit/kunit.py run overflow [--raw_output] */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <kunit/device.h> #in...
Linux kernel'inin 'lib/tests/bitfield_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Test cases for bitfield helpers. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <kunit/test.h> #include <linux/bitfield.h> #define CHECK_ENC_GET_U(tp, v, field, res) do { \ { \ u##tp _res; \ \ _res = u##tp##_encode_bits(v, field)...
Linux kernel'inin 'lib/tests/fortify_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Runtime test cases for CONFIG_FORTIFY_SOURCE. For additional memcpy() * testing see FORTIFY_MEM_* tests in LKDTM (drivers/misc/lkdtm/fortify.c). * * For corner cases with UBSAN, try testing with: * * ./tools/testing/kunit/kunit.py run --arch=x86_64 \ * --kconfig_add ...
Linux kernel'inin 'lib/tests/checksum_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Test cases csum_partial, csum_fold, ip_fast_csum, csum_ipv6_magic */ #include <kunit/test.h> #include <asm/checksum.h> #include <net/ip6_checksum.h> #define MAX_LEN 512 #define MAX_ALIGN 64 #define TEST_BUFLEN (MAX_LEN + MAX_ALIGN) #define IPv4_MIN_WORDS 5 #define IPv...
Linux kernel'inin 'lib/tests/usercopy_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Kernel module for testing copy_to/from_user infrastructure. * * Copyright 2013 Google Inc. All Rights Reserved * * Authors: * Kees Cook <keescook@chromium.org> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/mman.h> #include <linux/mo...
Linux kernel'inin 'lib/tests/list-private-test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KUnit compilation/smoke test for Private list primitives. * * Copyright (c) 2025, Google LLC. * Pasha Tatashin <pasha.tatashin@soleen.com> */ #include <linux/list_private.h> #include <kunit/test.h> /* * This forces compiler to warn if you access it directly, because ...
Linux kernel'inin 'lib/tests/printf_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Test cases for printf facility. */ #include <kunit/test.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/printk.h> #include <linux/random.h> #include <linux/rtc.h> #include <linux/slab.h> #include <linux/sprintf.h> #include <linux/string.h> #i...
Linux kernel'inin 'lib/tests/longest_symbol_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Test the longest symbol length. Execute with: * ./tools/testing/kunit/kunit.py run longest-symbol * --arch=x86_64 --kconfig_add CONFIG_KPROBES=y --kconfig_add CONFIG_MODULES=y * --kconfig_add CONFIG_CPU_MITIGATIONS=n --kconfig_add CONFIG_GCOV_KERNEL=n */ #define pr...
Linux kernel'inin 'lib/tests/uuid_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /* * Test cases for lib/uuid.c module. */ #include <kunit/test.h> #include <linux/uuid.h> struct test_uuid_data { const char *uuid; guid_t le; uuid_t be; }; static const struct test_uuid_data test_uuid_test_data[] = { { .uuid = "c33f4995-3701-450e-9fbf...
Linux kernel'inin 'lib/tests/seq_buf_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KUnit tests for the seq_buf API * * Copyright (C) 2025, Google LLC. */ #include <kunit/test.h> #include <linux/seq_buf.h> static void seq_buf_init_test(struct kunit *test) { char buf[32]; struct seq_buf s; seq_buf_init(&s, buf, sizeof(buf)); KUNIT_EXPECT_EQ(test...
Linux kernel'inin 'lib/tests/list-test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KUnit test for the Kernel Linked-list structures. * * Copyright (C) 2019, Google LLC. * Author: David Gow <davidgow@google.com> */ #include <kunit/test.h> #include <linux/list.h> #include <linux/klist.h> struct list_test_struct { int data; struct list_head list; };...
Linux kernel'inin 'lib/tests/string_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Test cases for string functions. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <kunit/test.h> #include <linux/ktime.h> #include <linux/math64.h> #include <linux/minmax.h> #include <linux/mm.h> #include <linux/module.h> #include <linux/prandom.h> #include ...
Linux kernel'inin 'lib/tests/glob_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: MIT OR GPL-2.0 /* * Test cases for glob functions. */ #include <kunit/test.h> #include <linux/glob.h> #include <linux/module.h> /** * struct glob_test_case - Test case for glob matching. * @pat: Pattern to match. * @str: String to match against. * @expected: Expected glob_match ...
Linux kernel'inin 'lib/tests/memcpy_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Test cases for memcpy(), memmove(), and memset(). */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <kunit/test.h> #include <linux/device.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/module.h> #include <linux/overflow.h...
Linux kernel'inin 'lib/tests/util_macros_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Test cases for bitfield helpers. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <kunit/test.h> #include <linux/util_macros.h> #define FIND_CLOSEST_RANGE_CHECK(from, to, array, exp_idx) \ { \ int i; \ for (i = from; i <= to; i++) { \ in...
Linux kernel'inin 'lib/tests/test_kprobes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * test_kprobes.c - simple sanity test for k*probes * * Copyright IBM Corp. 2008 */ #include <linux/kernel.h> #include <linux/kprobes.h> #include <linux/random.h> #include <kunit/test.h> #define div_factor 3 #define KP_CLEAR(_kp) \ do { \ (_kp).addr = NULL; \ ...
Linux kernel'inin 'lib/tests/min_heap_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Test cases for the min max heap. */ #include <kunit/test.h> #include <linux/min_heap.h> #include <linux/module.h> #include <linux/random.h> struct min_heap_test_case { const char *str; bool min_heap; }; static struct min_heap_test_case min_heap_cases[] = { { ...
Linux kernel'inin 'lib/tests/kunit_iov_iter' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* I/O iterator tests. This can only test kernel-backed iterator types. * * Copyright (C) 2023 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> #include <linux...
Linux kernel'inin 'lib/tests/blackhole_dev_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * This tests the blackhole_dev that is created during the * net subsystem initialization. The test this module performs is * by injecting an skb into the stack with skb->dev as the * blackhole_dev and expects kernel to behave in a sane manner * (in other words, *not cras...
Linux kernel'inin 'lib/tests/stackinit_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Test cases for compiler-based stack variable zeroing via * -ftrivial-auto-var-init={zero,pattern}. * For example, see: * "Running tests with kunit_tool" at Documentation/dev-tools/kunit/start.rst * ./tools/testing/kunit/kunit.py run stackinit [--raw_output] \ ...
Linux kernel'inin 'lib/tests/cmdline_kunit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Test cases for API provided by cmdline.c */ #include <kunit/test.h> #include <linux/kernel.h> #include <linux/random.h> #include <linux/string.h> static const char *cmdline_test_strings[] = { "\"\"", "" , "=" , "\"-", "," , "-," , ",-" , "-" , "+," , "--", "...
Linux kernel'inin 'lib/lz4/lz4_compress' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * LZ4 - Fast LZ compression algorithm * Copyright (C) 2011 - 2016, Yann Collet. * BSD 2 - Clause License (http://www.opensource.org/licenses/bsd - license.php) * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * me...
Linux kernel'inin 'lib/lz4/lz4hc_compress' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * LZ4 HC - High Compression Mode of LZ4 * Copyright (C) 2011-2015, Yann Collet. * * BSD 2 - Clause License (http://www.opensource.org/licenses/bsd - license.php) * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are *...
Linux kernel'inin 'lib/lz4/lz4_decompress' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * LZ4 - Fast LZ compression algorithm * Copyright (C) 2011 - 2016, Yann Collet. * BSD 2 - Clause License (http://www.opensource.org/licenses/bsd - license.php) * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * me...
Linux işletim sistemi çekirdeği için 'lib/lz4/lz4defs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c #ifndef __LZ4DEFS_H__ #define __LZ4DEFS_H__ /* * lz4defs.h -- common and architecture specific defines for the kernel usage * LZ4 - Fast LZ compression algorithm * Copyright (C) 2011-2016, Yann Collet. * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) * Redistribution and use in so...
Linux kernel'inin 'lib/xz/xz_crc32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: 0BSD /* * CRC32 using the polynomial from IEEE-802.3 * * Authors: Lasse Collin <lasse.collin@tukaani.org> * Igor Pavlov <https://7-zip.org/> */ /* * This is not the fastest implementation, but it is pretty compact. * The fastest versions of xz_crc32() on modern CPUs wi...
Linux işletim sistemi çekirdeği için 'lib/xz/xz_private' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: 0BSD */ /* * Private includes and definitions * * Author: Lasse Collin <lasse.collin@tukaani.org> */ #ifndef XZ_PRIVATE_H #define XZ_PRIVATE_H #ifdef __KERNEL__ # include <linux/xz.h> # include <linux/kernel.h> # include <linux/unaligned.h> /* XZ_PREBOOT may be defined only via ...
Linux kernel'inin 'lib/xz/xz_dec_test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: 0BSD /* * XZ decoder tester * * Author: Lasse Collin <lasse.collin@tukaani.org> */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/fs.h> #include <linux/uaccess.h> #include <linux/crc32.h> #include <linux/xz.h> /* Maximum supported dictionary size */ #define D...
Linux kernel'inin 'lib/xz/xz_dec_syms' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: 0BSD /* * XZ decoder module information * * Author: Lasse Collin <lasse.collin@tukaani.org> */ #include <linux/module.h> #include <linux/xz.h> EXPORT_SYMBOL(xz_dec_init); EXPORT_SYMBOL(xz_dec_reset); EXPORT_SYMBOL(xz_dec_run); EXPORT_SYMBOL(xz_dec_end); #ifdef CONFIG_XZ_DEC_MICR...
Linux kernel'inin 'lib/xz/xz_dec_stream' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: 0BSD /* * .xz Stream decoder * * Author: Lasse Collin <lasse.collin@tukaani.org> */ #include "xz_private.h" #include "xz_stream.h" /* Hash used to validate the Index field */ struct xz_dec_hash { vli_type unpadded; vli_type uncompressed; uint32_t crc32; }; struct xz_dec { /*...
Linux kernel'inin 'lib/xz/xz_dec_lzma2' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: 0BSD /* * LZMA2 decoder * * Authors: Lasse Collin <lasse.collin@tukaani.org> * Igor Pavlov <https://7-zip.org/> */ #include "xz_private.h" #include "xz_lzma2.h" /* * Range decoder initialization eats the first five bytes of each LZMA chunk. */ #define RC_INIT_BYTES 5 ...
Linux kernel'inin 'lib/xz/xz_dec_bcj' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: 0BSD /* * Branch/Call/Jump (BCJ) filter decoders * * Authors: Lasse Collin <lasse.collin@tukaani.org> * Igor Pavlov <https://7-zip.org/> */ #include "xz_private.h" /* * The rest of the file is inside this ifdef. It makes things a little more * convenient when building...
Linux işletim sistemi çekirdeği için 'lib/xz/xz_stream' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: 0BSD */ /* * Definitions for handling the .xz file format * * Author: Lasse Collin <lasse.collin@tukaani.org> */ #ifndef XZ_STREAM_H #define XZ_STREAM_H #if defined(__KERNEL__) && !XZ_INTERNAL_CRC32 # include <linux/crc32.h> # undef crc32 # define xz_crc32(buf, size, crc) \ (~c...
Linux işletim sistemi çekirdeği için 'lib/xz/xz_lzma2' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: 0BSD */ /* * LZMA2 definitions * * Authors: Lasse Collin <lasse.collin@tukaani.org> * Igor Pavlov <https://7-zip.org/> */ #ifndef XZ_LZMA2_H #define XZ_LZMA2_H /* Range coder constants */ #define RC_SHIFT_BITS 8 #define RC_TOP_BITS 24 #define RC_TOP_VALUE (1 << RC_TOP_B...
Linux kernel'inin 'lib/crypto/gf128mul' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* gf128mul.c - GF(2^128) multiplication functions * * Copyright (c) 2003, Dr Brian Gladman, Worcester, UK. * Copyright (c) 2006, Rik Snel <rsnel@cube.dyndns.org> * * Based on Dr Brian Gladman's (GPL'd) work published at * http://gladman.plushost.co.uk/oldsite/cryptography_technology/index.php * See the ori...
Linux kernel'inin 'lib/crypto/blake2b' 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. * Copyright 2025 Google LLC * * This is an implementation of the BLAKE2b hash and PRF functions. * * Information: https://blake2.net/ */ #include <crypto/blake2b.h> #include <l...
Linux kernel'inin 'lib/crypto/sha256' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * SHA-224, SHA-256, HMAC-SHA224, and HMAC-SHA256 library functions * * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com> * Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk> * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> * Copyright (c) 20...
Linux kernel'inin 'lib/crypto/sha512' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * SHA-384, SHA-512, HMAC-SHA384, and HMAC-SHA512 library functions * * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com> * Copyright (c) Andrew McDonald <andrew@mcdonald.org.uk> * Copyright (c) 2003 Kyle McMartin <kyle@debian.org> * Copyright 2025 Google LL...
Linux kernel'inin 'lib/crypto/chacha' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * The ChaCha stream cipher (RFC7539) * * Copyright (C) 2015 Martin Willi */ #include <crypto/chacha.h> #include <crypto/utils.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/module.h> static void __maybe_unused chacha_crypt_generic(struct...
Linux kernel'inin 'lib/crypto/mldsa' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Support for verifying ML-DSA signatures * * Copyright 2025 Google LLC */ #include <crypto/mldsa.h> #include <crypto/sha3.h> #include <kunit/visibility.h> #include <linux/export.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/string.h> #inc...
Linux kernel'inin 'lib/crypto/md5' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * MD5 and HMAC-MD5 library functions * * md5_block_generic() is derived from cryptoapi implementation, originally * based on the public domain implementation written by Colin Plumb in 1993. * * Copyright (c) Cryptoapi developers. * Copyright (c) 2002 James Mor...
Linux kernel'inin 'lib/crypto/aes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2017-2019 Linaro Ltd <ard.biesheuvel@linaro.org> * Copyright 2026 Google LLC */ #include <crypto/aes-cbc-macs.h> #include <crypto/aes.h> #include <crypto/utils.h> #include <linux/cache.h> #include <linux/crypto.h> #include <linux/export.h> #include <linux/...
Linux kernel'inin 'lib/crypto/curve25519' 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. * * This is an implementation of the Curve25519 ECDH algorithm, using either an * architecture-optimized implementation or a generic implementation. The * generic implementation i...
Linux kernel'inin 'lib/crypto/chacha-block-generic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * The "hash function" used as the core of the ChaCha stream cipher (RFC7539) * * Copyright (C) 2015 Martin Willi */ #include <crypto/chacha.h> #include <linux/bitops.h> #include <linux/bug.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/st...
Linux kernel'inin 'lib/crypto/memneq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Constant-time equality testing of memory regions. * * Authors: * * James Yonan <james@openvpn.net> * Daniel Borkmann <dborkman@redhat.com> * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUM...
Linux kernel'inin 'lib/crypto/hash_info' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Hash Info: Hash algorithms information * * Copyright (c) 2013 Dmitry Kasatkin <d.kasatkin@samsung.com> */ #include <linux/export.h> #include <crypto/hash_info.h> const char *const hash_algo_name[HASH_ALGO__LAST] = { [HASH_ALGO_MD4] = "md4", [HASH_ALGO_MD5]...
Linux kernel'inin 'lib/crypto/poly1305' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Poly1305 authenticator algorithm, RFC7539 * * Copyright (C) 2015 Martin Willi * * Based on public domain code by Andrew Moon and Daniel J. Bernstein. */ #include <crypto/internal/poly1305.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux...
Linux kernel'inin 'lib/crypto/curve25519-hacl64' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR MIT /* * Copyright (C) 2016-2017 INRIA and Microsoft Corporation. * Copyright (C) 2018-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * This is a machine-generated formally verified implementation of Curve25519 * ECDH from: <https://github.com/mitls/ha...
Linux kernel'inin 'lib/crypto/chacha20poly1305' 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. * * This is an implementation of the ChaCha20Poly1305 AEAD construction. * * Information: https://tools.ietf.org/html/rfc8439 */ #include <crypto/chacha.h> #include <crypto/chac...
Linux kernel'inin 'lib/crypto/simd' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * SIMD testing utility functions * * Copyright 2024 Google LLC */ #include <crypto/internal/simd.h> DEFINE_PER_CPU(bool, crypto_simd_disabled_for_test); EXPORT_PER_CPU_SYMBOL_GPL(crypto_simd_disabled_for_test); ```
Linux kernel'inin 'lib/crypto/blake2s' 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. * * This is an implementation of the BLAKE2s hash and PRF functions. * * Information: https://blake2.net/ * */ #include <crypto/blake2s.h> #include <linux/bug.h> #include <linu...
Linux kernel'inin 'lib/crypto/sha1' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * SHA-1 and HMAC-SHA1 library functions */ #include <crypto/hmac.h> #include <crypto/sha1.h> #include <linux/bitops.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/string.h> #include <linux/unaligned.h> #include <linux/wordp...
Linux işletim sistemi çekirdeği için 'lib/crypto/fips' 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: gen-fips-testvecs.py */ #include <linux/fips.h> static const u8 fips_test_data[] __initconst __maybe_unused = { 0x66, 0x69, 0x70, 0x73, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x64, 0x61, 0x74, 0x61, 0x00, 0x00, }; static const u8 fips...
Linux kernel'inin 'lib/crypto/sm3' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * SM3 secure hash, as specified by OSCCA GM/T 0004-2012 SM3 and described * at https://datatracker.ietf.org/doc/html/draft-sca-cfrg-sm3-02 * * Copyright (C) 2017 ARM Limited or its affiliates. * Copyright (C) 2017 Gilad Ben-Yossef <gilad@benyossef.com> * Copyrig...
Linux işletim sistemi çekirdeği için 'lib/crypto/fips-mldsa' 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 vector extracted from leancrypto */ #include <linux/fips.h> static const u8 fips_test_mldsa65_signature[] __initconst __maybe_unused = { 0xda, 0xcf, 0x8d, 0x67, 0x59, 0x60, 0x6c, 0x39, 0x2d, 0x89, 0xb6, 0xa1, 0xf3, 0x8c, 0x70, 0xcf, 0x25, 0x...
Linux kernel'inin 'lib/crypto/utils' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Crypto library utility functions * * Copyright (c) 2006 Herbert Xu <herbert@gondor.apana.org.au> */ #include <crypto/utils.h> #include <linux/export.h> #include <linux/module.h> #include <linux/unaligned.h> /* * XOR @len bytes from @src1 and @src2 together, ...
Linux kernel'inin 'lib/crypto/gf128hash' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * GF(2^128) polynomial hashing: GHASH and POLYVAL * * Copyright 2025 Google LLC */ #include <crypto/gf128hash.h> #include <linux/export.h> #include <linux/module.h> #include <linux/string.h> #include <linux/unaligned.h> /* * GHASH and POLYVAL are almost-XOR-un...
Linux kernel'inin 'lib/crypto/arc4' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Cryptographic API * * ARC4 Cipher Algorithm * * Jon Oberheide <jon@oberheide.org> */ #include <crypto/arc4.h> #include <linux/export.h> #include <linux/module.h> int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len) { int i, j = 0, ...
Linux kernel'inin 'lib/crypto/aescfb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Minimal library implementation of AES in CFB mode * * Copyright 2023 Google LLC */ #include <crypto/aes.h> #include <crypto/utils.h> #include <linux/export.h> #include <linux/module.h> /** * aescfb_encrypt - Perform AES-CFB encryption on a block of data * * @key: T...
Linux kernel'inin 'lib/crypto/aesgcm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Minimal library implementation of GCM * * Copyright 2022 Google LLC */ #include <crypto/gcm.h> #include <crypto/utils.h> #include <linux/export.h> #include <linux/module.h> /** * aesgcm_expandkey - Expands the AES and GHASH keys for the AES-GCM key * schedule...
Linux kernel'inin 'lib/crypto/des' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Cryptographic API. * * DES & Triple DES EDE Cipher Algorithms. * * Copyright (c) 2005 Dag Arne Osvik <da@osvik.no> */ #include <crypto/des.h> #include <crypto/internal/des.h> #include <linux/bitops.h> #include <linux/compiler.h> #include <linux/crypto.h> #in...
Linux kernel'inin 'lib/crypto/sha3' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * SHA-3, as specified in * https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf * * SHA-3 code by Jeff Garzik <jeff@garzik.org> * Ard Biesheuvel <ard.biesheuvel@linaro.org> * David Howells <dhowells@redhat.com> * * See also Doc...
Linux kernel'inin 'lib/crypto/poly1305-donna64' 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. * * This is based in part on Andrew Moon's poly1305-donna, which is in the * public domain. */ #include <crypto/internal/poly1305.h> #include <linux/export.h> #include <linux/ker...
Linux kernel'inin 'lib/crypto/poly1305-donna32' 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. * * This is based in part on Andrew Moon's poly1305-donna, which is in the * public domain. */ #include <crypto/internal/poly1305.h> #include <linux/export.h> #include <linux/ker...
Linux kernel'inin 'lib/crypto/nh' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright 2018 Google LLC */ /* * Implementation of the NH almost-universal hash function, specifically the * variant of NH used in Adiantum. This is *not* a cryptographic hash function. * * Reference: section 6.3 of "Adiantum: length-preserving encryption for * en...
Linux kernel'inin 'lib/crypto/curve25519-fiat32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR MIT /* * Copyright (C) 2015-2016 The fiat-crypto Authors. * Copyright (C) 2018-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * This is a machine-generated formally verified implementation of Curve25519 * ECDH from: <https://github.com/mit-plv/fiat-cry...