| /freebsd/share/doc/papers/sysperf/ |
| H A D | appendix.ms | 9 'ds - \(mi 10 'ds / \\h'\\w' 'u-\\w'/'u'/ 11 'ds /* \\h'\\w' 'u-\\w'/'u'/* 23 \f2\s12\h'\\n(.lu-\w'\\*(=f'u'\\*(=f\fP\s0\h'|0u' 44 'ds +K 45 'ds -K 47 'de -C 50 'ds +K \f3 51 'ds -K \fP 54 '-C [all …]
|
| /freebsd/tools/regression/ccd/layout/ |
| H A D | ccd0.sh | 3 set -e 11 if [ -f ref.$f ] ; then 12 diff -u -I '$FreeBSD' ref.$f _.$f 16 foo 128k 128k 128k 128k 0 0 17 foo 128k 128k 128k 128k 0 4 18 foo 128k 128k 128k 128k 4 0 19 foo 128k 128k 128k 128k 4 2 20 foo 128k 128k 128k 128k 4 4 22 foo 256k 128k 128k 128k 0 0 23 foo 256k 128k 128k 128k 0 4 [all …]
|
| /freebsd/contrib/lyaml/spec/ |
| H A D | ext_yaml_scanner_spec.yaml | 2 # Copyright (C) 2013-2022 Gary V. Vaughan 6 local k = yaml.scanner (str) 7 for n = 1, n do k () end 8 return k 12 - it scans empty streams: 13 k = yaml.scanner "" 14 expect (k ().type).to_be "STREAM_START" 15 expect (k ().type).to_be "STREAM_END" 16 expect (k ()).to_be (nil) 17 expect (k ()).to_be (nil) [all …]
|
| /freebsd/bin/ps/ |
| H A D | print.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 73 if (*vent->header != '\0') in printheader() 79 v = vent->var; in printheader() 80 if (v->flag & LJUST) { in printheader() 82 xo_emit("{T:/%hs}", vent->header); in printheader() 84 xo_emit("{T:/%-*hs}", vent->width, vent->header); in printheader() 86 xo_emit("{T:/%*hs}", vent->width, vent->header); in printheader() 94 arguments(KINFO *k, VARENT *ve) in arguments() argument 98 if ((vis_args = malloc(strlen(k->ki_args) * 4 + 1)) == NULL) in arguments() [all …]
|
| /freebsd/share/doc/papers/kernmalloc/ |
| H A D | appendix.ms | 9 'ds - \(mi 10 'ds / \\h'\\w' 'u-\\w'/'u'/ 11 'ds /* \\h'\\w' 'u-\\w'/'u'/* 23 \f2\s12\h'\\n(.lu-\w'\\*(=f'u'\\*(=f\fP\s0\h'|0u' 44 'ds +K 45 'ds -K 47 'de -C 50 'ds +K \f3 51 'ds -K \fP 54 '-C [all …]
|
| /freebsd/sys/contrib/dpdk_rte_lpm/ |
| H A D | rte_jhash.h | 1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2010-2015 Intel Corporation. 30 * These are functions for producing 32-bit hashes for hash table lookup. 39 #define rot(x, k) (((x) << (k)) | ((x) >> (32-(k)))) argument 43 a -= c; a ^= rot(c, 4); c += b; \ 44 b -= a; b ^= rot(a, 6); a += c; \ 45 c -= b; c ^= rot(b, 8); b += a; \ 46 a -= c; a ^= rot(c, 16); c += b; \ 47 b -= a; b ^= rot(a, 19); a += c; \ 48 c -= b; c ^= rot(b, 4); b += a; \ [all …]
|
| /freebsd/crypto/openssl/crypto/modes/asm/ |
| H A D | aes-gcm-armv8-unroll8_64.pl | 2 # Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved. 12 # derived from https://github.com/ARM-software/AArch64cryptolib, original 14 # licensed under OpenSSL and SPDX BSD-3-Clause licenses depending on where you 18 # Approach - We want to reload constants as we have plenty of spare ASIMD slots around crypto units… 27 # | CTR block 8k+13| AES block 8k+8 | GHASH block 8k+0 | 30 # | CTR block 8k+14| AES block 8k+9 | GHASH block 8k+1 | 33 # | CTR block 8k+15| AES block 8k+10| GHASH block 8k+2 | 36 # | CTR block 8k+16| AES block 8k+11| GHASH block 8k+3 | 39 # | CTR block 8k+17| AES block 8k+12| GHASH block 8k+4 | 42 # | CTR block 8k+18| AES block 8k+13| GHASH block 8k+5 | [all …]
|
| H A D | aes-gcm-armv8_64.pl | 2 # Copyright 2019-2025 The OpenSSL Project Authors. All Rights Reserved. 12 # derived from https://github.com/ARM-software/AArch64cryptolib, original 18 # Approach - assume we don't want to reload constants, so reserve ~half of vector register file for… 27 # | CTR block 4k+8 | AES block 4k+4 | GHASH block 4k+0 | 30 # | CTR block 4k+9 | AES block 4k+5 | GHASH block 4k+1 | 33 # | CTR block 4k+10| AES block 4k+6 | GHASH block 4k+2 | 36 # | CTR block 4k+11| AES block 4k+7 | GHASH block 4k+3 | 43 # Ensure previous generated intermediate hash is aligned and merged with result for GHASH 4k+0 45 # EOR res_curr (4k+0), res_curr (4k+0), low_acc 109 # We only have 64b->128b polynomial multipliers, naively that means we need to do 4 64b multipl… [all …]
|
| /freebsd/sys/libkern/ |
| H A D | jenkins_hash.c | 9 ------------------------------------------------------------------------------- 12 These are functions for producing 32-bit hashes for hash table lookup. 20 little-endian machines. Intel and AMD are little-endian machines. 22 hashlittle() except it returns two 32-bit hashes for the price of one. 33 4-byte integers to hash, use hashword(). If you have a byte array (like 37 Why is this so big? I read 12 bytes at a time into 3 4-byte integers, 41 ------------------------------------------------------------------------------- 44 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument 47 ------------------------------------------------------------------------------- 48 mix -- mix 3 32-bit values reversibly. [all …]
|
| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | osm_torus.c | 3 * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains 5 * Copyright (c) 2009-2011 ZIH, TU Dresden, Federal Republic of Germany. All rights reserved. 6 * Copyright (c) 2010-2012 Mellanox Technologies LTD. All rights reserved. 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 70 * UNKNOWN - Uninitialized endpoint. 71 * SRCSINK - generates or consumes traffic, and thus has an associated LID; 73 * PASSTHRU - Has no associated LID; i.e. a switch port. 75 * If it is possible to communicate in-band with a switch, it will require 92 * ==> This endpoint is the switch port used for in-band communication [all …]
|
| /freebsd/lib/libc/string/ |
| H A D | memmem.c | 1 /*- 2 * SPDX-License-Identifier: MIT 4 * Copyright (c) 2005-2014 Rich Felker, et al. 29 twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in twobyte_memmem() argument 32 for (h += 2, k -= 2; k; k--, hw = hw << 8 | *h++) in twobyte_memmem() 34 return (char *)h - 2; in twobyte_memmem() 35 return hw == nw ? (char *)h - 2 : 0; in twobyte_memmem() 39 threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in threebyte_memmem() argument 43 for (h += 3, k -= 3; k; k--, hw = (hw | *h++) << 8) in threebyte_memmem() 45 return (char *)h - 3; in threebyte_memmem() [all …]
|
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | memmem.c | 4 * Copyright (c) 2005-2020 Rich Felker, et al. 38 twobyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in twobyte_memmem() argument 41 for (h+=2, k-=2; k; k--, hw = hw<<8 | *h++) in twobyte_memmem() 42 if (hw == nw) return (char *)h-2; in twobyte_memmem() 43 return hw == nw ? (char *)h-2 : 0; in twobyte_memmem() 47 threebyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in threebyte_memmem() argument 51 for (h+=3, k-=3; k; k--, hw = (hw|*h++)<<8) in threebyte_memmem() 52 if (hw == nw) return (char *)h-3; in threebyte_memmem() 53 return hw == nw ? (char *)h-3 : 0; in threebyte_memmem() 57 fourbyte_memmem(const unsigned char *h, size_t k, const unsigned char *n) in fourbyte_memmem() argument [all …]
|
| /freebsd/sys/crypto/openssl/aarch64/ |
| H A D | aes-gcm-armv8_64.S | 1 /* Do not modify. This file is auto-generated from aes-gcm-armv8_64.pl. */ 5 .arch armv8-a+crypto 13 stp x19, x20, [sp, #-112]! 41 sub x5, x5, #1 //byte_len - 1 83 aesmc v1.16b, v1.16b //AES block 1 - round 0 87 aesmc v2.16b, v2.16b //AES block 2 - round 0 94 aesmc v0.16b, v0.16b //AES block 0 - round 0 98 aesmc v3.16b, v3.16b //AES block 3 - round 0 102 aesmc v2.16b, v2.16b //AES block 2 - round 1 106 aesmc v0.16b, v0.16b //AES block 0 - round 1 [all …]
|
| H A D | aes-gcm-armv8-unroll8_64.S | 1 /* Do not modify. This file is auto-generated from aes-gcm-armv8-unroll8_64.pl. */ 5 .arch armv8-a+crypto 13 stp d8, d9, [sp, #-80]! 30 sub x5, x5, #1 //byte_len - 1 61 aesmc v4.16b, v4.16b //AES block 4 - round 0 63 aesmc v6.16b, v6.16b //AES block 6 - round 0 65 aesmc v3.16b, v3.16b //AES block 3 - round 0 68 aesmc v0.16b, v0.16b //AES block 0 - round 0 70 aesmc v1.16b, v1.16b //AES block 1 - round 0 72 aesmc v2.16b, v2.16b //AES block 2 - round 0 [all …]
|
| /freebsd/contrib/unbound/util/storage/ |
| H A D | lookup3.c | 10 removed include of stdint - config.h takes care of platform independence. 15 ------------------------------------------------------------------------------- 18 These are functions for producing 32-bit hashes for hash table lookup. 26 little-endian machines. Intel and AMD are little-endian machines. 28 hashlittle() except it returns two 32-bit hashes for the price of one. 39 4-byte integers to hash, use hashword(). If you have a byte array (like 43 Why is this so big? I read 12 bytes at a time into 3 4-byte integers, 47 ------------------------------------------------------------------------------- 86 * My best guess at if you are big-endian or little-endian. This may 117 #define hashmask(n) (hashsize(n)-1) [all …]
|
| /freebsd/sys/net/ |
| H A D | bpf_filter.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 72 #define MINDEX(m, k) \ argument 74 int len = m->m_len; \ 76 while (k >= len) { \ 77 k -= len; \ 78 m = m->m_next; \ 81 len = m->m_len; \ 85 static u_int16_t m_xhalf(struct mbuf *m, bpf_u_int32 k, int *err); 86 static u_int32_t m_xword(struct mbuf *m, bpf_u_int32 k, int *err); [all …]
|
| /freebsd/crypto/openssh/regress/ |
| H A D | hostkey-agent.sh | 1 # $OpenBSD: hostkey-agent.sh,v 1.15 2024/12/04 10:51:13 dtucker Exp $ 6 rm -f $OBJ/agent-key.* $OBJ/ssh_proxy.orig $OBJ/known_hosts.orig $OBJ/agent-ca* 9 eval `${SSHAGENT} ${EXTRA_AGENT_ARGS} -s` > /dev/null 11 [ $r -ne 0 ] && fatal "could not start ssh-agent: exit code $r" 13 grep -vi 'hostkey' $OBJ/sshd_proxy > $OBJ/sshd_proxy.orig 18 ${SSHKEYGEN} -qt ed25519 -f $OBJ/agent-ca -N '' || fatal "ssh-keygen CA" 21 for k in $SSH_KEYTYPES ; do 22 ${SSHKEYGEN} -qt $k -f $OBJ/agent-key.$k -N '' || fatal "ssh-keygen $k" 23 ${SSHKEYGEN} -s $OBJ/agent-ca -qh -n localhost-with-alias \ 24 -I localhost-with-alias $OBJ/agent-key.$k.pub || \ [all …]
|
| /freebsd/crypto/krb5/src/lib/crypto/builtin/aes/ |
| H A D | aeskey.c | 2 --------------------------------------------------------------------------- 3 Copyright (c) 1998-2013, Brian Gladman, Worcester, UK. All rights reserved. 17 --------------------------------------------------------------------------- 30 /* map names here to provide the external API ('name' -> 'aes_name') */ 47 #define MARK_AS_ENCRYPTION_CTX(cx) (cx)->inf.b[2] |= (uint8_t)0x01 48 #define MARK_AS_DECRYPTION_CTX(cx) (cx)->inf.b[2] &= (uint8_t)0xfe 57 for each cx->n_col and nk value is: 60 ------------------------------ 61 cx->n_col = 4 10 9 8 7 7 62 cx->n_col = 5 14 11 10 9 9 [all …]
|
| /freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/aes/ |
| H A D | aeskey.c | 1 // SPDX-License-Identifier: Brian-Gladman-3-Clause 3 * --------------------------------------------------------------------------- 4 * Copyright (c) 1998-2007, Brian Gladman, Worcester, UK. All rights reserved. 25 * --------------------------------------------------------------------------- 42 * for each cx->n_col and nk value is: 45 * ------------------------------ 46 * cx->n_col = 4 10 9 8 7 7 47 * cx->n_col = 5 14 11 10 9 9 48 * cx->n_col = 6 19 15 12 11 11 49 * cx->n_col = 7 21 19 16 13 14 [all …]
|
| /freebsd/crypto/openssl/test/recipes/30-test_evp_data/ |
| H A D | evppkey_ecdsa_rfc6979.txt | 15 Title = RFC 6979 P-192 deterministic ECDSA tests 17 PrivateKey=P-192_PRIV 18 -----BEGIN PRIVATE KEY----- 21 -----END PRIVATE KEY----- 23 PublicKey=P-192_PUB 24 -----BEGIN PUBLIC KEY----- 27 -----END PUBLIC KEY----- 29 PrivPubKeyPair=P-192_PRIV:P-192_PUB 32 Key = P-192_PRIV 38 Key = P-192_PUB [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| H A D | send-cpL_varied_recsize.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 27 # of all combinations of -c -p and -L. Verify the stream is compressed, 31 # +---------+--------+------------+------------+-----------+-----------+ 35 # +---------+--------+------------+------------+-----------+-----------+ 36 # | 128k | | 128k | 128k | 128k | 128k | 37 # | 128k | -c | Fails | Fails | 128k | 128k | 38 # | 128k | -p | 128k | 128k | 128k | 128k | 39 # | 128k | -L | 128k | 128k | 128k | 128k | 40 # | 128k | -cp | Fails | Fails | 128k | 128k | [all …]
|
| /freebsd/contrib/bearssl/src/ec/ |
| H A D | ec_c25519_m64.c | 72 * A field element is encoded as four 64-bit integers, in basis 2^63. 77 #define MASK63 (((uint64_t)1 << 63) - (uint64_t)1) 87 m = -(uint64_t)ctl; in f255_cswap() 134 unsigned char k; in f255_add() 136 k = _addcarry_u64(0, a[0], b[0], &t0); in f255_add() 137 k = _addcarry_u64(k, a[1], b[1], &t1); in f255_add() 138 k = _addcarry_u64(k, a[2], b[2], &t2); in f255_add() 139 k = _addcarry_u64(k, a[3], b[3], &t3); in f255_add() 140 cc = (k << 1) + (t3 >> 63); in f255_add() 151 k = _addcarry_u64(0, t0, 19 * cc, &d[0]); in f255_add() [all …]
|
| /freebsd/crypto/openssl/crypto/camellia/ |
| H A D | camellia.c | 2 * Copyright 2006-2022 The OpenSSL Project Authors. All Rights Reserved. 53 #define RightRotate(x, s) ( ((x) >> (s)) + ((x) << (32 - s)) ) 54 #define LeftRotate(x, s) ( ((x) << (s)) + ((x) >> (32 - s)) ) 59 /* S-box data */ 275 * of bits are achieved by "rotating" order of s-elements and 276 * adjusting n accordingly, e.g. RotLeft128(s1,s2,s3,s0,n-32). 279 u32 _t0=_s0>>(32-_n);\ 280 _s0 = (_s0<<_n) | (_s1>>(32-_n));\ 281 _s1 = (_s1<<_n) | (_s2>>(32-_n));\ 282 _s2 = (_s2<<_n) | (_s3>>(32-_n));\ [all …]
|
| /freebsd/sbin/ipf/ipf/ |
| H A D | bpf_filter.c | 2 /*- 49 #include "bpf-ipf.h" 57 #include "pcap-ipf.h" 71 * XXX - IA-64? If not, this probably won't work on Win64 IA-64 73 * XXX - SuperH? If not, this probably won't work on WinCE SuperH 103 (_k) -= len; \ 104 (_m) = (_m)->m_next; \ 112 m_xword(mb_t *m, int k, int *err) in m_xword() argument 118 MINDEX(len, m, k); in m_xword() 119 cp = MTOD(m, u_char *) + k; in m_xword() [all …]
|
| /freebsd/contrib/ldns/ |
| H A D | keys.c | 8 * (c) NLnet Labs, 2004-2006 34 { LDNS_SIGN_RSASHA1_NSEC3, "RSASHA1-NSEC3-SHA1" }, 40 { LDNS_SIGN_ECC_GOST, "ECC-GOST" }, 54 { LDNS_SIGN_DSA_NSEC3, "DSA-NSEC3-SHA1" }, 56 { LDNS_SIGN_HMACMD5, "hmac-md5.sig-alg.reg.int" }, 57 { LDNS_SIGN_HMACSHA1, "hmac-sha1" }, 58 { LDNS_SIGN_HMACSHA256, "hmac-sha256" }, 59 { LDNS_SIGN_HMACSHA224, "hmac-sha224" }, 60 { LDNS_SIGN_HMACSHA384, "hmac-sha384" }, 61 { LDNS_SIGN_HMACSHA512, "hmac-sha512" }, [all …]
|