/freebsd/contrib/capsicum-test/ |
H A D | GNUmakefile | 3 # Set ARCH to 32 or x32 for i386/x32 ABIs 5 ARCHFLAG=-m$(ARCH) 8 EXTRA_LIBS=-lprocstat 12 PROCESSOR:=$(shell uname -p) 14 ifneq ($(wildcard /usr/lib/$(PROCESSOR)-linux-gnu),) 16 PLATFORM_LIBDIR=/usr/lib/$(PROCESSOR)-linux-gnu 19 PLATFORM_LIBDIR=$(shell gcc -v 2>&1 | grep "Configured with:" | sed 's/.*--libdir=\(\/usr\/[^ ]*\).… 24 # assumption that any installed version is 64-bit. 25 ifeq ($(ARCHFLAG),-m32) 30 ifeq ($(ARCHFLAG),-mx32) [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUGenRegisterBankInfo.def | 1 //===- AMDGPUGenRegisterBankInfo.def -----------------------------*- C++ -*-==// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 17 None = - 1, 108 {nullptr, 0}, // Illegal power of 2 sizes 111 {&PartMappings[2], 1}, // 16 162 {0, 32, SGPRRegBank}, // 32-bit op 163 {0, 32, SGPRRegBank}, // 2x32-bit op 165 {0, 64, SGPRRegBank}, // <2x32-bit> op [all …]
|
/freebsd/sys/contrib/openzfs/config/ |
H A D | host-cpu-c-abi.m4 | 1 # host-cpu-c-abi.m4 serial 11 2 dnl Copyright (C) 2002-2019 Free Software Foundation, Inc. 24 dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit 25 dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit 36 dnl - 'arm': test __ARMEL__. 37 dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL. 38 dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN. 41 dnl - Instructions that do not exist on all of these CPUs (cmpxchg, 45 dnl - Speed of execution of the common instruction set is reasonable across 66 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. [all …]
|
/freebsd/crypto/libecc/include/libecc/curves/known/ |
H A D | ec_params_brainpoolp512r1.h | 2 * Copyright (C) 2017 - This file is part of libecc project 7 * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr> 47 0x51, 0x32, 0x5e, 0xd5, 0x19, 0x5c, 0x7f, 0x19, 68 * mpinv is -p^-1 mod 2^(bitsizeof(hword_t)), this means it depends 72 0x83, 0x9b, 0x32, 0x20, 0x7d, 0x89, 0xef, 0xc5 83 #if (WORD_BYTES == 8) /* 64-bit words */ 87 #elif (WORD_BYTES == 4) /* 32-bit words */ 91 #elif (WORD_BYTES == 2) /* 16-bit words */ 102 0xE2, 0x32, 0x71, 0x45, 0xAC, 0x23, 0x4C, 0xC5, 142 0x5A, 0x21, 0x32, 0x2E, 0x9C, 0x4C, 0x6A, 0x93, [all …]
|
H A D | ec_params_gost_R3410_2012_256_paramSetA.h | 23 #if (WORD_BYTES == 8) /* 64-bit words */ 63 #elif (WORD_BYTES == 4) /* 32-bit words */ 103 #elif (WORD_BYTES == 2) /* 16-bit words */ 186 0x32, 0x87, 0x94, 0x23, 0xab, 0x1a, 0x03, 0x75, 189 0xaf, 0x26, 0x8a, 0xdb, 0x32, 0x32, 0x2e, 0x5c, 272 * Compute max bit length of all curves for p and q
|
H A D | ec_params_brainpoolp192t1.h | 22 #if (WORD_BYTES == 8) /* 64-bit words */ 24 0x3c, 0xfd, 0x0b, 0xe2, 0x6c, 0xd5, 0xc9, 0x32, 65 #elif (WORD_BYTES == 4) /* 32-bit words */ 67 0x3c, 0xfd, 0x0b, 0xe2, 0x6c, 0xd5, 0xc9, 0x32, 108 #elif (WORD_BYTES == 2) /* 16-bit words */ 110 0x3c, 0xfd, 0x0b, 0xe2, 0x6c, 0xd5, 0xc9, 0x32, 272 * Compute max bit length of all curves for p and q
|
H A D | ec_params_brainpoolp192r1.h | 2 * Copyright (C) 2017 - This file is part of libecc project 7 * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr> 37 #if (WORD_BYTES == 8) /* 64-bit words */ 39 0x3c, 0xfd, 0x0b, 0xe2, 0x6c, 0xd5, 0xc9, 0x32, 80 #elif (WORD_BYTES == 4) /* 32-bit words */ 82 0x3c, 0xfd, 0x0b, 0xe2, 0x6c, 0xd5, 0xc9, 0x32, 123 #elif (WORD_BYTES == 2) /* 16-bit words */ 125 0x3c, 0xfd, 0x0b, 0xe2, 0x6c, 0xd5, 0xc9, 0x32, 290 * Compute max bit length of all curves for p and q
|
H A D | ec_params_secp224r1.h | 2 * Copyright (C) 2017 - This file is part of libecc project 7 * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr> 37 #if (WORD_BYTES == 8) /* 64-bit words */ 66 #elif (WORD_BYTES == 4) /* 32-bit words */ 95 #elif (WORD_BYTES == 2) /* 16-bit words */ 150 0xF5, 0x41, 0x32, 0x56, 0x50, 0x44, 0xB0, 0xB7, 169 0x32, 0x13, 0x90, 0xB9, 0x4A, 0x03, 0xC1, 0xD3, 170 0x56, 0xC2, 0x11, 0x22, 0x34, 0x32, 0x80, 0xD6, 262 * Compute max bit length of all curves for p and q
|
H A D | ec_params_brainpoolp384r1.h | 2 * Copyright (C) 2017 - This file is part of libecc project 7 * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr> 61 #if (WORD_BYTES == 8) /* 64-bit words */ 65 #elif (WORD_BYTES == 4) /* 32-bit words */ 69 #elif (WORD_BYTES == 2) /* 16-bit words */ 85 #if (WORD_BYTES == 8) /* 64-bit words */ 89 #elif (WORD_BYTES == 4) /* 32-bit words */ 93 #elif (WORD_BYTES == 2) /* 16-bit words */ 130 0x3B, 0x88, 0x32, 0x02, 0xE9, 0x04, 0x65, 0x65 175 0x3B, 0x88, 0x32, 0x02, 0xE9, 0x04, 0x65, 0x65 [all …]
|
H A D | ec_params_brainpoolp512t1.h | 27 #if (WORD_BYTES == 8) /* 64-bit words */ 34 0x51, 0x32, 0x5e, 0xd5, 0x19, 0x5c, 0x7f, 0x19, 55 0x83, 0x9b, 0x32, 0x20, 0x7d, 0x89, 0xef, 0xc5, 85 #elif (WORD_BYTES == 4) /* 32-bit words */ 92 0x51, 0x32, 0x5e, 0xd5, 0x19, 0x5c, 0x7f, 0x19, 143 #elif (WORD_BYTES == 2) /* 16-bit words */ 150 0x51, 0x32, 0x5e, 0xd5, 0x19, 0x5c, 0x7f, 0x19, 266 0xe1, 0x98, 0xb6, 0x1e, 0x00, 0xf8, 0xb3, 0x32, 357 * Compute max bit length of all curves for p and q
|
/freebsd/crypto/libecc/src/examples/sig/gostr34_10_94/ |
H A D | gostr34_10_94.c | 2 * Copyright (C) 2021 - This file is part of libecc project 24 * The purpose of this example is to implement the GOSTR34-10-94 44 * All-in-all, this piece of code can be useful in some contexts, or risky to 45 * use in other sensitive ones where advanced side-channels or fault attacks 91 /* N is the bit length of q */ in gostr34_10_94_sign() 115 p = &(priv->p); in gostr34_10_94_sign() 116 q = &(priv->q); in gostr34_10_94_sign() 117 g = &(priv->g); in gostr34_10_94_sign() 118 x = &(priv->x); in gostr34_10_94_sign() 126 /* Let N be the bit length of q. Let min(N, outlen) denote the minimum in gostr34_10_94_sign() [all …]
|
/freebsd/sys/dev/cfi/ |
H A D | cfi_core.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 5 * Copyright (c) 2012-2013, SRI International 10 * (FA8750-10-C-0237) ("CTSRD"), as part of the DARPA CRASH research 18 * 2. Redistributions in binary form must reproduce the above copyright 21 * 3. Neither the name of the author nor the names of any co-contributors 69 ofs &= ~(sc->sc_width - 1); in cfi_read_raw() 70 switch (sc->sc_width) { in cfi_read_raw() 72 val = bus_space_read_1(sc->sc_tag, sc->sc_handle, ofs); in cfi_read_raw() 74 case 2: in cfi_read_raw() [all …]
|
/freebsd/share/man/man7/ |
H A D | arch.7 | 1 .\" Copyright (c) 2016-2017 The FreeBSD Foundation. 11 .\" 2. Redistributions in binary form must reproduce the above copyright 32 .Nd Architecture-specific details 40 For full details consult the processor-specific ABI supplement 86 .Bl -column -offset indent "Architecture" "Initial Release" 100 .Bl -column -offset indent "Architecture" "Initial Release" "Final Release" 128 .Bl -tag -width "Dv ILP32" 133 types machine representations all have 4-byte size. 147 Typically these are 64-bit machines, where the 153 environment, which was the historical 32-bit predecessor for 64-bit evolution. [all …]
|
/freebsd/contrib/netbsd-tests/crypto/opencrypto/ |
H A D | h_aesctr1.c | 3 /*- 12 * 2. Redistributions in binary form must reproduce the above copyright 44 * 36-byte (ie, unpadded) operations. 50 unsigned char key[36]; /* Includes 32-bit nonce */ 55 /* Test Vector #1: Encrypting 16 octets using AES-CTR w/ 128-bit key*/ 67 /* Test Vector #2: Encrypting 32 octets using AES-CTR w/ 128-bit key */ 70 0x43, 0xD6, 0xCE, 0x1F, 0x32, 0x53, 0x91, 0x63, 83 /* Test Vector #3: Encrypting 36 octets using AES-CTR w/ 128-bit key */ 101 /* Test Vector #4: Encrypting 16 octets using AES-CTR w/ 192-bit key */ 114 /* Test Vector #5: Encrypting 32 octets using AES-CTR w/ 192-bit key */ [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | RegisterBankInfo.h | 1 //===- llvm/CodeGen/RegisterBankInfo.h --------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 46 /// This can be represented as a Mask of contiguous bit starting 47 /// at StartIdx bit and spanning Length bits. 57 /// from StartIdx to StartIdx + Length -1. 71 /// significant bit that this partial mapping covers. 72 unsigned getHighBitIdx() const { return StartIdx + Length - 1; } in getHighBitIdx() 101 /// Let say we have a 32-bit add and a <2 x 32-bit> vadd. We [all …]
|
/freebsd/contrib/bearssl/src/hash/ |
H A D | ghash_ctmul32.c | 28 * This implementation uses 32-bit multiplications, and only the low 37 * The implementation trick that is used here is bit-reversing (bit 0 38 * is swapped with bit 31, bit 1 with bit 30, and so on). In GF(2)[X], 41 * In other words, if we bit-reverse (over 32 bits) the operands, then we 42 * bit-reverse (over 64 bits) the result. 46 * Multiplication in GF(2)[X], truncated to its low 32 bits. 75 * Bit-reverse a 32-bit word. 86 RMS(0x33333333, 2); in rev32() 101 * "normal" and "bit reversed" operands. Hence we end up with in br_ghash_ctmul32() 102 * eighteen 32-bit multiplications instead of nine. in br_ghash_ctmul32() [all …]
|
/freebsd/contrib/bearssl/src/symcipher/ |
H A D | poly1305_ctmul32.c | 34 * Implementation notes: we split the 130-bit values into ten in poly1305_inner() 35 * 13-bit words. This gives us some space for carries and allows in poly1305_inner() 36 * using only 32x32->32 multiplications, which are way faster than in poly1305_inner() 37 * 32x32->64 multiplications on the ARM Cortex-M0/M0+, and also in poly1305_inner() 38 * help in making constant-time code on the Cortex-M3. in poly1305_inner() 40 * Since we compute modulo 2^130-5, the "upper words" become in poly1305_inner() 41 * low words with a factor of 5; that is, x*2^130 = x*5 mod p. in poly1305_inner() 45 * In each loop iteration, a[] and r[] words are 13-bit each, in poly1305_inner() 58 * If there is a partial block, right-pad it with zeros. in poly1305_inner() 68 * Decode next block and apply the "high bit"; that value in poly1305_inner() [all …]
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | dh_groups.c | 2 * Diffie-Hellman groups 19 /* RFC 4306, B.1. Group 1 - 768 Bit MODP 20 * Generator: 2 21 * Prime: 2^768 - 2 ^704 - 1 + 2^64 * { [2^638 pi] + 149686 } 53 /* RFC 4306, B.2. Group 2 - 1024 Bit MODP 54 * Generator: 2 55 * Prime: 2^1024 - 2^960 - 1 + 2^64 * { [2^894 pi] + 129093 } 97 /* RFC 3526, 2. Group 5 - 1536 Bit MODP 98 * Generator: 2 99 * Prime: 2^1536 - 2^1472 - 1 + 2^64 * { [2^1406 pi] + 741804 } [all …]
|
/freebsd/contrib/libucl/src/ |
H A D | mum.h | 25 input data by 64x64-bit multiplication and mixing hi- and low-parts 28 with the equal probability of their bit values for the 38 strings (at least up to 512-bit) on Haswell and Power7. The MUM bulk 59 /* Macro saying to use 128-bit integers implemented by GCC for some 90 probability of their bit values. They are used to randomize input 107 /* Multiply 64-bit V and P and return sum of high and low parts of the 114 /* AARCH64 needs 2 insns to calculate 128-bit result of the in _mum() 116 function doing 128x128->128 bit multiplication. The function is in _mum() 119 asm ("umulh %0, %1, %2" : "=r" (hi) : "r" (v), "r" (p)); in _mum() 126 /* Implementation of 64x64->128-bit multiplication by four 32x32->64 in _mum() [all …]
|
/freebsd/crypto/openssl/crypto/ec/ |
H A D | ec_curve.c | 2 * Copyright 2002-2021 The OpenSSL Project Authors. All Rights Reserved. 85 0xB4, 0x05, 0x0A, 0x85, 0x0C, 0x04, 0xB3, 0xAB, 0xF5, 0x41, 0x32, 0x56, 89 0xB7, 0x0E, 0x0C, 0xBD, 0x6B, 0xB4, 0xBF, 0x7F, 0x32, 0x13, 0x90, 0xB9, 90 0x4A, 0x03, 0xC1, 0xD3, 0x56, 0xC2, 0x11, 0x22, 0x34, 0x32, 0x80, 0xD6, 157 0x39, 0x32, 0x84, 0xAA, 0xA0, 0xDA, 0x64, 0xBA, 279 0x8E, 0x94, 0x80, 0x60, 0xF8, 0x32, 0x1B, 0x7D, 327 0x61, 0x7F, 0xAB, 0x68, 0x32, 0x57, 0x6C, 0xBB, 0xFE, 0xD5, 0x0D, 0x99, 336 0x01, 0xd9, 0xb0, 0x81, 0x32, 0x9f, 0xb5, 0x55, 0xde, 0x6e, 0xf4, 0x60, 541 0x7B, 0x6A, 0xA5, 0xD8, 0x5E, 0x57, 0x29, 0x83, 0xE6, 0xFB, 0x32, 0xA7, 607 0x12, 0x04, 0x23, 0x51, 0x37, 0x7a, 0xc5, 0xfb, 0x32, [all …]
|
/freebsd/crypto/libecc/src/examples/sig/kcdsa/ |
H A D | kcdsa.c | 2 * Copyright (C) 2021 - This file is part of libecc project 24 * based on libecc arithmetic primitives, as described in the ISO14888-3 44 * All-in-all, this piece of code can be useful in some contexts, or risky to 45 * use in other sensitive ones where advanced side-channels or fault attacks 113 buf[i - shift] = buf[i]; in buf_lshift() 118 buf[buflen - i] = 0; in buf_lshift() 135 /* alpha is the bit length of p, beta is the bit length of q */ in kcdsa_sign() 148 /* This is a bit too much for stack space, but we need it for in kcdsa_sign() 170 p = &(priv->p); in kcdsa_sign() 171 q = &(priv->q); in kcdsa_sign() [all …]
|
/freebsd/sys/dev/mii/ |
H A D | dp83867phy.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 12 * 2. Redistributions in binary form must reproduce the above copyright 52 #define BIT(x) (1 << (x)) macro 61 #define DP83867_RGMIICTL 0x32 65 #define DP83867_PHYSTS_LINK_UP BIT(10) 66 #define DP83867_PHYSTS_ANEG_PENDING BIT(11) 67 #define DP83867_PHYSTS_FD BIT(13) 68 #define DP83867_PHYSTS_SPEED_MASK (BIT(15) | BIT(14)) 69 #define DP83867_PHYSTS_SPEED_1000 BIT(15) [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/memory-controllers/ |
H A D | nvidia,tegra124-mc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/nvidia,tegra124-mc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jon Hunter <jonathanh@nvidia.com> 11 - Thierry Reding <thierry.reding@gmail.com> 14 Tegra124 SoC features a hybrid 2x32-bit / 1x64-bit memory controller. 22 const: nvidia,tegra124-mc 30 clock-names: 32 - const: mc [all …]
|
/freebsd/lib/libpmc/pmu-events/arch/x86/tigerlake/ |
H A D | cache.json | 4 "CollectPEBSRecord": "2", 5 "Counter": "0,1,2,3", 8 "PEBScounters": "0,1,2,3", 9 …opportunistic replacements, and replacements that require stall-for-replace or block-for-replace.", 15 "CollectPEBSRecord": "2", 16 "Counter": "0,1,2,3", 19 "PEBScounters": "0,1,2,3", 26 "CollectPEBSRecord": "2", 27 "Counter": "0,1,2,3", 32 "PEBScounters": "0,1,2,3", [all …]
|
/freebsd/contrib/wireguard-tools/ |
H A D | curve25519-fiat32.h | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 3 * Copyright (C) 2015-2016 The fiat-crypto Authors. 4 * Copyright (C) 2018-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 6 * This is a machine-generated formally verified implementation of Curve25519 7 * ECDH from: <https://github.com/mit-plv/fiat-crypto>. Though originally 9 * It is optimized for 32-bit machines and machines that cannot work efficiently 10 * with 128-bit integer types. 13 /* fe means field element. Here the field is \Z/(2^255-19). An element t, 14 * entries t[0]...t[9], represents the integer t[0]+2^26 t[1]+2^51 t[2]+2^77 15 * t[3]+2^102 t[4]+...+2^230 t[9]. [all …]
|