/freebsd/sys/crypto/rijndael/ |
H A D | rijndael-api-fst.c | 1 /* $KAME: rijndael-api-fst.c,v 1.10 2001/05/27 09:34:18 itojun Exp $ */ 4 * rijndael-api-fst.c v2.3 April '2000 26 #include <crypto/rijndael/rijndael-api-fst.h> 42 key->direction = direction; in rijndael_makeKey() 48 key->keyLen = keyLen; in rijndael_makeKey() 54 memcpy(key->keyMaterial, keyMaterial, keyLen/8); in rijndael_makeKey() 59 key->Nr = rijndaelKeySetupEnc(key->rk, key->keyMaterial, keyLen); in rijndael_makeKey() 61 key->Nr = rijndaelKeySetupDec(key->rk, key->keyMaterial, keyLen); in rijndael_makeKey() 63 rijndaelKeySetupEnc(key->ek, key->keyMaterial, keyLen); in rijndael_makeKey() 69 cipher->mode = mode; in rijndael_cipherInit() [all …]
|
/freebsd/sys/dev/sfxge/common/ |
H A D | efx_hash.c | 1 /*- 9 * These are functions for producing 32-bit hashes for hash table lookup... 13 * Copyright (c) 2014-2016 Solarflare Communications Inc. 50 * Rotate a 32-bit value left 53 * fall-back to a simple shift based implementation. 63 (((_value) << (_shift)) | ((_value) >> (32 - (_shift)))) 67 /* Mix three 32-bit values reversibly */ 70 _a -= _c; \ 73 _b -= _a; \ 76 _c -= _b; \ [all …]
|
/freebsd/crypto/openssl/crypto/chacha/ |
H A D | chacha_enc.c | 2 * Copyright 2015-2020 The OpenSSL Project Authors. All Rights Reserved. 21 u32 u[16]; 25 # define ROTATE(v, n) (((v) << (n)) | ((v) >> (32 - (n)))) 30 (p)[2] = (u8)(v >> 16); \ 36 x[a] += x[b], x[d] = ROTATE((x[d] ^ x[a]),16), \ 41 /* chacha_core performs 20 rounds of ChaCha on the input words in 42 * |input| and writes the 64 output bytes to |output|. */ 43 static void chacha20_core(chacha_buf *output, const u32 input[16]) in chacha20_core() argument 45 u32 x[16]; in chacha20_core() 49 memcpy(x, input, sizeof(x)); in chacha20_core() [all …]
|
/freebsd/contrib/unbound/compat/ |
H A D | chacha_private.h | 2 chacha-merged.c version 20080118 14 u32 input[16]; /* could be compressed */ member 24 (U32V((v) << (n)) | ((v) >> (32 - (n)))) 29 ((u32)((p)[2]) << 16) | \ 36 (p)[2] = U8V((v) >> 16); \ 46 a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \ 51 static const char sigma[16] = "expand 32-byte k"; 52 static const char tau[16] = "expand 16-byte k"; 59 x->input[4] = U8TO32_LITTLE(k + 0); in chacha_keysetup() 60 x->input[5] = U8TO32_LITTLE(k + 4); in chacha_keysetup() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | chacha_private.h | 4 chacha-merged.c version 20080118 16 u32 input[16]; /* could be compressed */ member 26 (U32V((v) << (n)) | ((v) >> (32 - (n)))) 31 ((u32)((p)[2]) << 16) | \ 38 (p)[2] = U8V((v) >> 16); \ 48 a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \ 53 static const char sigma[16] = "expand 32-byte k"; 54 static const char tau[16] = "expand 16-byte k"; 61 x->input[4] = U8TO32_LITTLE(k + 0); in chacha_keysetup() 62 x->input[5] = U8TO32_LITTLE(k + 4); in chacha_keysetup() [all …]
|
/freebsd/sys/crypto/chacha20/ |
H A D | chacha.c | 2 chacha-merged.c version 20080118 26 (U32V((v) << (n)) | ((v) >> (32 - (n)))) 31 ((u32)((p)[2]) << 16) | \ 38 (p)[2] = U8V((v) >> 16); \ 48 a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \ 53 static const char sigma[16] = "expand 32-byte k"; 54 static const char tau[16] = "expand 16-byte k"; 61 x->input[4] = U8TO32_LITTLE(k + 0); in chacha_keysetup() 62 x->input[5] = U8TO32_LITTLE(k + 4); in chacha_keysetup() 63 x->input[6] = U8TO32_LITTLE(k + 8); in chacha_keysetup() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | xxhash.cpp | 2 * xxHash - Extremely Fast Hash algorithm 3 * Copyright (C) 2012-2023, Yann Collet 5 * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) 31 * - xxHash homepage: http://www.xxhash.com 32 * - xxHash source repository : https://github.com/Cyan4973/xxHash 67 return (X << R) | (X >> (64 - R)); in rotl64() 80 static uint64_t round(uint64_t Acc, uint64_t Input) { in round() argument 81 Acc += Input * PRIME64_2; in round() 111 const unsigned char *const Limit = BEnd - 32; in xxHash64() 115 uint64_t V4 = Seed - PRIME64_1; in xxHash64() [all …]
|
/freebsd/crypto/openssh/ |
H A D | chacha.c | 3 chacha-merged.c version 20080118 24 (U32V((v) << (n)) | ((v) >> (32 - (n)))) 29 ((u32)((p)[2]) << 16) | \ 36 (p)[2] = U8V((v) >> 16); \ 46 a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \ 51 static const char sigma[16] = "expand 32-byte k"; 52 static const char tau[16] = "expand 16-byte k"; 59 x->input[4] = U8TO32_LITTLE(k + 0); in chacha_keysetup() 60 x->input[5] = U8TO32_LITTLE(k + 4); in chacha_keysetup() 61 x->input[6] = U8TO32_LITTLE(k + 8); in chacha_keysetup() [all …]
|
/freebsd/tests/sys/devrandom/ |
H A D | uint128_test.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 38 #include <crypto/rijndael/rijndael-api-fst.h> 44 #include <atf-c.h> 47 vec_u32_tole128(uint8_t dst[static 16], const uint32_t src[static 4]) in vec_u32_tole128() 56 le128_to_vec_u32(uint32_t dst[static 4], const uint8_t src[static 16]) in le128_to_vec_u32() 67 uint8_t le128x[16]; in formatu128() 81 sz -= rc; in formatu128() 84 buf[-1] = '\0'; in formatu128() 103 uint32_t input[4]; in ATF_TC_BODY() member [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/clock/ |
H A D | amlogic,c3-peripherals-clkc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2022-2023 Amlogic, Inc. All rights reserved 4 --- 5 $id: http://devicetree.org/schemas/clock/amlogic,c3-peripherals-clkc.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Neil Armstrong <neil.armstrong@linaro.org> 12 - Jerome Brunet <jbrunet@baylibre.com> 13 - Xianwei Zhao <xianwei.zhao@amlogic.com> 14 - Chuan Liu <chuan.liu@amlogic.com> 18 const: amlogic,c3-peripherals-clkc [all …]
|
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/ |
H A D | evpmac_siphash.txt | 2 # Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved. 14 # SIPHASH tests - default values: 2,4 rounds, 16-byte mac 21 Input = 26 Input = 00 31 Input = 0001 36 Input = 000102 41 Input = 00010203 46 Input = 0001020304 51 Input = 000102030405 56 Input = 00010203040506 [all …]
|
/freebsd/sys/crypto/openssl/arm/ |
H A D | chacha-armv4.S | 1 /* Do not modify. This file is auto-generated from chacha-armv4.pl. */ 21 .long 0x61707865,0x3320646e,0x79622d32,0x6b206574 @ endian-neutral 29 .word OPENSSL_armcap_P-.LChaCha20_ctr32 32 .word -1 41 stmdb sp!,{r0,r1,r2,r4-r11,lr} 43 sub r14,pc,#16 @ ChaCha20_ctr32 56 ldr r4,[r14,#-32] 68 sub sp,sp,#4*(16) @ off-load area 75 str r10,[sp,#4*(16+10)] @ off-load "rx" 76 str r11,[sp,#4*(16+11)] @ off-load "rx" [all …]
|
/freebsd/usr.bin/clang/llvm-size/ |
H A D | llvm-size.1 | 4 .nr rst2man-indent-level 0 7 \\$1 \\n[an-margin] 8 level \\n[rst2man-indent-level] 9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] 10 - 11 \\n[rst2man-indent0] 12 \\n[rst2man-indent1] 13 \\n[rst2man-indent2] 18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] 19 . nr rst2man-indent-level +1 [all …]
|
/freebsd/share/man/man7/ |
H A D | crypto.7 | 1 .\" Copyright (c) 2014-2021 The FreeBSD Foundation 3 .\" Portions of this documentation were written by John-Mark Gurney 38 The in-kernel OpenCrypto framework supports several different encryption 44 over an input of bytes. 45 In-kernel requests can either compute the value for a given input, 46 or verify if a given tag matches the computed tag for a given input. 48 .Bl -column "CRYPTO_AES_CCM_CBC_MAC" "XXX" "16, 24, 32" "Digest" 50 .It Dv CRYPTO_AES_CCM_CBC_MAC Ta 12 Ta 16, 24, 32 Ta 16 Ta 51 Authentication-only mode of AES-CCM 52 .It Dv CRYPTO_AES_NIST_GMAC Ta 12 Ta 16, 24, 32 Ta 16 Ta [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/i386/ |
H A D | floatundisf.S | 3 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 11 // a write-small read-large stall, so the software implementation here is 14 // This is a branch-free implementation. A branchy implementation might be 15 // faster for the common case if you know something a priori about the input 18 /* branch-free x87 implementation - one cycle slower than without x87. 28 #define TWOp64 twop64-0b(%ecx,%eax,8) 52 // branch-free, x87-free implementation - faster at the expense of code size 58 .balign 16 63 .balign 16 68 .balign 16 [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/chacha20/ref/ |
H A D | chacha20_ref.c | 3 chacha-merged.c version 20080118 21 uint32_t input[16]; member 37 d = ROTATE(XOR(d, a), 16); \ 48 ctx->input[0] = U32C(0x61707865); in chacha_keysetup() 49 ctx->input[1] = U32C(0x3320646e); in chacha_keysetup() 50 ctx->input[2] = U32C(0x79622d32); in chacha_keysetup() 51 ctx->input[3] = U32C(0x6b206574); in chacha_keysetup() 52 ctx->input[4] = LOAD32_LE(k + 0); in chacha_keysetup() 53 ctx->input[5] = LOAD32_LE(k + 4); in chacha_keysetup() 54 ctx->input[6] = LOAD32_LE(k + 8); in chacha_keysetup() [all …]
|
/freebsd/crypto/openssl/crypto/sha/asm/ |
H A D | sha512-ia64.pl | 2 # Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved. 20 # faster than gcc and >60%(!) faster than code generated by HP-UX 21 # compiler (yes, HP-UX is generating slower code, because unlike gcc, 23 # substitutes for 64-bit rotate). 26 # and HP-UX compiler - by >40% (yes, gcc won sha512_block, but lost 28 # too much. I mean it's 64 32-bit rounds vs. 80 virtually identical 29 # 64-bit ones and 1003*64/80 gives 802. Extra cycles, 2 per round, 30 # are spent on extra work to provide for 32-bit rotations. 32-bit 32 # reason lower 32 bits are deposited to upper half of 64-bit register 34 # operations, X[16] values are *maintained* with copies of lower [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/ |
H A D | salsa20_xmm6int-sse2.c | 19 # include "salsa20_xmm6int-sse2.h" 24 uint32_t input[16]; member 27 static const int TR[16] = { 34 ctx->input[TR[1]] = LOAD32_LE(k + 0); in salsa_keysetup() 35 ctx->input[TR[2]] = LOAD32_LE(k + 4); in salsa_keysetup() 36 ctx->input[TR[3]] = LOAD32_LE(k + 8); in salsa_keysetup() 37 ctx->input[TR[4]] = LOAD32_LE(k + 12); in salsa_keysetup() 38 ctx->input[TR[11]] = LOAD32_LE(k + 16); in salsa_keysetup() 39 ctx->input[TR[12]] = LOAD32_LE(k + 20); in salsa_keysetup() 40 ctx->input[TR[13]] = LOAD32_LE(k + 24); in salsa_keysetup() [all …]
|
H A D | salsa20_xmm6int-avx2.c | 27 # include "salsa20_xmm6int-avx2.h" 32 uint32_t input[16]; member 35 static const int TR[16] = { 42 ctx->input[TR[1]] = LOAD32_LE(k + 0); in salsa_keysetup() 43 ctx->input[TR[2]] = LOAD32_LE(k + 4); in salsa_keysetup() 44 ctx->input[TR[3]] = LOAD32_LE(k + 8); in salsa_keysetup() 45 ctx->input[TR[4]] = LOAD32_LE(k + 12); in salsa_keysetup() 46 ctx->input[TR[11]] = LOAD32_LE(k + 16); in salsa_keysetup() 47 ctx->input[TR[12]] = LOAD32_LE(k + 20); in salsa_keysetup() 48 ctx->input[TR[13]] = LOAD32_LE(k + 24); in salsa_keysetup() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | xxhash.c | 2 xxHash - Fast Hash algorithm 3 Copyright (C) 2012-2014, Yann Collet. 4 BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) 30 - xxHash source repository : http://code.google.com/p/xxhash/ 47 ** You can also enable this parameter if you know your input data will always be aligned (boundarie… 54 ** If the input pointer is a null pointer, xxHash default behavior is to trigger a memory access er… 55 …n this option is enabled, xxHash output for null input pointers will be the same as a null-length … 61 ** By default, xxHash library provides endian-independent Hash values, based on little-endian conve… 62 ** Results are therefore identical for little-endian and big-endian CPU. 63 ** This comes at a performance cost for big-endian CPU, since some swapping is required to emulate … [all …]
|
/freebsd/sys/contrib/alpine-hal/eth/ |
H A D | al_hal_eth_ec_regs.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 86 /* [0x0] Rx FIFO input controller configuration 1 */ 88 /* [0x4] Rx FIFO input controller configuration 2 */ 96 /* [0x14] Rx FIFO input controller loopback FIFO configuratio ... */ 119 /* [0x20] Input result vector, default values for parser inpu ... */ 121 /* [0x24] Result input vector selection */ 214 /* [0x38] VLAN p-bits table address */ 216 /* [0x3c] VLAN p-bits table data */ 280 /* [0xb8] Tuple (4/2) Hash configuration , mask for the input ... */ [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/timer/ |
H A D | renesas,rz-mtu3.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/timer/renesas,rz-mtu [all...] |
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_config.h | 41 /*--------------------------CONFIG VALUES------------------------*/ 75 #define LIO_CN23XX_OQ_REFIL_THRESHOLD 16 90 #define LIO_CN23XX_MAX_INPUT_JABBER (LIO_CN23XX_PKI_MAX_FRAME_SIZE - \ 102 #define LIO_GET_IQ_CFG(cfg) ((cfg)->iq) 103 #define LIO_GET_IQ_MAX_Q_CFG(cfg) ((cfg)->iq.max_iqs) 104 #define LIO_GET_IQ_INSTR_TYPE_CFG(cfg) ((cfg)->iq.instr_type) 106 #define LIO_GET_IQ_INTR_PKT_CFG(cfg) ((cfg)->iq.iq_intr_pkt) 108 #define LIO_GET_OQ_MAX_Q_CFG(cfg) ((cfg)->oq.max_oqs) 109 #define LIO_GET_OQ_PKTS_PER_INTR_CFG(cfg) ((cfg)->oq.pkts_per_intr) 110 #define LIO_GET_OQ_REFILL_THRESHOLD_CFG(cfg) ((cfg)->oq.refill_threshold) [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | xxhash.c | 2 * xxHash - Fast Hash algorithm 3 * Copyright (c) 2012-2020, Yann Collet, Facebook, Inc. 6 * - xxHash homepage: http://www.xxhash.com 7 * - xxHash source repository : https://github.com/Cyan4973/xxHash 9 * This source code is licensed under both the BSD-style license (found in the 12 * You may select, at your option, one of the above-listed licenses. 21 * Unfortunately, on some target/compiler combinations, the generated assembly is sub-optimal. 43 …* If the input pointer is a null pointer, xxHash default behavior is to trigger a memory access er… 44 …n this option is enabled, xxHash output for null input pointers will be the same as a null-length … 50 …* By default, xxHash library provides endian-independent Hash values, based on little-endian conve… [all …]
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | xxhash.h | 2 * xxHash - Fast Hash algorithm 6 * - xxHash homepage: http://www.xxhash.com 7 * - xxHash source repository : https://github.com/Cyan4973/xxHash 9 * This source code is licensed under both the BSD-style license (found in the 12 * You may select, at your option, one of the above-listed licenses. 49 MD5-32 0.33 GB/s 10 Ronald L. Rivest 50 SHA1-32 0.28 GB/s 10 57 Other speed-oriented implementations can be faster, 59 https://fastcompression.blogspot.com/2019/03/presenting-xxh3.html?showComment=1552696407071#c349009… 61 A 64-bit version, named XXH64, is available since r35. [all …]
|