/freebsd/crypto/openssl/crypto/cast/ |
H A D | c_skey.c | 36 CAST_LONG k[32]; in CAST_set_key() local 38 CAST_LONG l, *K; in CAST_set_key() local 47 if (len <= 10) in CAST_set_key() 52 K = &k[0]; in CAST_set_key() 55 X[2] = ((x[8] << 24) | (x[9] << 16) | (x[10] << 8) | x[11]) & 0xffffffffL; in CAST_set_key() 62 l = X[2] ^ S4[z[0]] ^ S5[z[2]] ^ S6[z[1]] ^ S7[z[3]] ^ S7[x[10]]; in CAST_set_key() 66 l = X[1] ^ S4[z[10]] ^ S5[z[9]] ^ S6[z[11]] ^ S7[z[8]] ^ S5[x[11]]; in CAST_set_key() 69 K[0] = S4[z[8]] ^ S5[z[9]] ^ S6[z[7]] ^ S7[z[6]] ^ S4[z[2]]; in CAST_set_key() 70 K[1] = S4[z[10]] ^ S5[z[11]] ^ S6[z[5]] ^ S7[z[4]] ^ S5[z[6]]; in CAST_set_key() 71 K[2] = S4[z[12]] ^ S5[z[13]] ^ S6[z[3]] ^ S7[z[2]] ^ S6[z[9]]; in CAST_set_key() [all …]
|
/freebsd/crypto/openssl/crypto/chacha/asm/ |
H A D | chacha-armv8.pl | 204 mov.32 @x[10],@d[5] 211 mov $ctr,#10 217 foreach (&ROUND(0, 5,10,15)) { eval; } 231 add.32 @x[10],@x[10],@d[5] 247 add @x[10],@x[10],@x[11],lsl#32 259 rev @x[10],@x[10] 268 eor @x[10],@x[10],@x[11] 275 stp @x[8],@x[10],[$out,#32] 307 add @x[10],@x[10],@x[11],lsl#32 316 rev @x[10],@x[10] [all …]
|
/freebsd/sys/libkern/ |
H A D | jenkins_hash.c | 44 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument 67 Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that 121 10 8 15 26 3 22 24 150 const uint32_t *k, /* the key, an array of uint32_t values */ in jenkins_hash32() argument 162 a += k[0]; in jenkins_hash32() 163 b += k[1]; in jenkins_hash32() 164 c += k[2]; in jenkins_hash32() 167 k += 3; in jenkins_hash32() 173 case 3 : c+=k[2]; in jenkins_hash32() 174 case 2 : b+=k[1]; in jenkins_hash32() [all …]
|
/freebsd/contrib/gdtoa/ |
H A D | gdtoa.c | 41 int i, k; local 46 k = 0; 49 k++; 52 if (!k) 53 k = 1; 55 b = Balloc(k); 84 * to determine k = floor(log10(d)). We scale relevant 85 * quantities using O(log2(k)) rather than O(k) multiplications. 105 * the correctly rounded result. For k requested digits and 107 * something like 10^(k-15) that we must resort to the Long [all …]
|
H A D | dtoa.c | 41 * to determine k = floor(log10(d)). We scale relevant 42 * quantities using O(log2(k)) rather than O(k) multiplications. 62 * the correctly rounded result. For k requested digits and 64 * something like 10^(k-15) that we must resort to the Long 119 j, j1, k, k0, k_check, leftright, m2, m5, s2, s5, local 215 * log10(x) = log(x) / log(10) 216 * ~=~ log(1.5)/log(10) + (x-1.5)/(1.5*log(10)) 217 * log10(&d) = (i-Bias)*log(2)/log(10) + log10(&d2) 219 * This suggests computing an approximation k to log10(&d) by 221 * k = (i - Bias)*0.301029995663981 [all …]
|
/freebsd/contrib/bearssl/test/ |
H A D | test_speed.c | 44 for (i = 0; i < 10; i ++) { \ 49 num = 10; \ 53 long k; \ 57 for (k = num; k > 0; k --) { \ 97 for (i = 0; i < 10; i ++) { \ 101 num = 10; \ 105 long k; \ 109 for (k = num; k > 0; k --) { \ 146 for (i = 0; i < 10; i ++) { \ 150 num = 10; \ [all …]
|
/freebsd/contrib/unbound/util/storage/ |
H A D | lookup3.c | 118 #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) argument 150 Some k values for my "a-=c; a^=rot(c,k); c+=b;" arrangement that 204 10 8 15 26 3 22 24 233 const uint32_t *k, /* the key, an array of uint32_t values */ in hashword() argument 245 a += k[0]; in hashword() 246 b += k[1]; in hashword() 247 c += k[2]; in hashword() 250 k += 3; in hashword() 256 case 3 : c+=k[2]; in hashword() 259 case 2 : b+=k[1]; in hashword() [all …]
|
/freebsd/crypto/openssl/crypto/modes/asm/ |
H A D | aes-gcm-armv8_64.pl | 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 458 eor $input_l0, $input_l0, $rk10_l @ AES block 0 - round 10 low 459 eor $input_h0, $input_h0, $rk10_h @ AES block 0 - round 10 high 461 eor $input_l2, $input_l2, $rk10_l @ AES block 2 - round 10 low 464 eor $input_l1, $input_l1, $rk10_l @ AES block 1 - round 10 low [all …]
|
/freebsd/sys/dev/cxgb/common/ |
H A D | jhash.h | 28 b -= c; b -= a; b ^= (a<<10); \ 42 const u8 *k = key; in jhash() local 49 a += (k[0] +((u32)k[1]<<8) +((u32)k[2]<<16) +((u32)k[3]<<24)); in jhash() 50 b += (k[4] +((u32)k[5]<<8) +((u32)k[6]<<16) +((u32)k[7]<<24)); in jhash() 51 c += (k[8] +((u32)k[9]<<8) +((u32)k[10]<<16)+((u32)k[11]<<24)); in jhash() 55 k += 12; in jhash() 61 case 11: c += ((u32)k[10]<<24); in jhash() 62 case 10: c += ((u32)k[9]<<16); in jhash() 63 case 9 : c += ((u32)k[8]<<8); in jhash() 64 case 8 : b += ((u32)k[7]<<24); in jhash() [all …]
|
/freebsd/sys/crypto/openssl/aarch64/ |
H A D | aes-gcm-armv8_64.S | 245 eor x6, x6, x13 //AES block 0 - round 10 low 246 eor x7, x7, x14 //AES block 0 - round 10 high 248 eor x21, x21, x13 //AES block 2 - round 10 low 251 eor x19, x19, x13 //AES block 1 - round 10 low 252 eor x22, x22, x14 //AES block 2 - round 10 high 256 eor x20, x20, x14 //AES block 1 - round 10 high 258 eor x23, x23, x13 //AES block 3 - round 10 low 262 eor x24, x24, x14 //AES block 3 - round 10 high 308 ldp x23, x24, [x0, #48] //AES block 4k+3 - load plaintext 313 rev64 v4.16b, v4.16b //GHASH block 4k (only t0 is free) [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/aes/ |
H A D | aeskey.c | 45 * cx->n_col = 4 10 9 8 7 7 46 * cx->n_col = 5 14 11 10 9 9 81 #define ke4(k, i) \ argument 82 { k[4 * (i) + 4] = ss[0] ^= ls_box(ss[3], 3) ^ t_use(r, c)[i]; \ 83 k[4 * (i) + 5] = ss[1] ^= ss[0]; \ 84 k[4 * (i) + 6] = ss[2] ^= ss[1]; \ 85 k[4 * (i) + 7] = ss[3] ^= ss[2]; \ 115 #define kef6(k, i) \ argument 116 { k[6 * (i) + 6] = ss[0] ^= ls_box(ss[5], 3) ^ t_use(r, c)[i]; \ 117 k[6 * (i) + 7] = ss[1] ^= ss[0]; \ [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_create/ |
H A D | zfs_create_008_neg.ksh | 64 "-blah" "-cV 12k" "-s -cV 1P" "-sc" "-Vs 5g" "-o" "--o" "-O" "--O" \ 67 "-o recorDSize=64k" "-o recordsize=256K" "-o recordsize=256" \ 92 "-o used=10K" "-o used=10K -V $VOLSIZE" \ 93 "-o available=10K" "-o available=10K -V $VOLSIZE" \ 94 "-o referenced=10K" "-o referenced=10K -V $VOLSIZE" \ 96 "-o version=0" "-o version=1.234" "-o version=10K" "-o version=-1" \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/ |
H A D | zfs_create_008_neg.ksh | 56 "-blah" "-cV 12k" "-s -cV 1P" "-sc" "-Vs 5g" "-o" "--o" "-O" "--O" \ 59 "-o recorDSize=64k" "-o recordsize=32768K" "-o recordsize=32M" \ 83 "-o used=10K" "-o used=10K -V $VOLSIZE" \ 84 "-o available=10K" "-o available=10K -V $VOLSIZE" \ 85 "-o referenced=10K" "-o referenced=10K -V $VOLSIZE" \ 87 "-o version=0" "-o version=1.234" "-o version=10K" "-o version=-1" \
|
/freebsd/lib/libusbhid/ |
H A D | usage.c | 1 /* $NetBSD: usage.c,v 1.8 2000/10/10 19:23:58 is Exp $ */ 113 curpage->pagesizemax += 10; in hid_init() 143 curpage->pagesizemax = 10; in hid_init() 160 static char b[10]; in hid_usage_page() 161 int k; in hid_usage_page() local 166 for (k = 0; k < npages; k++) in hid_usage_page() 167 if (pages[k].usage == i) in hid_usage_page() 168 return pages[k].name; in hid_usage_page() 179 int j, k, us; in hid_usage_in_page() local 181 for (k = 0; k < npages; k++) in hid_usage_in_page() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | jhash.h | 35 b -= c; b -= a; b ^= (a<<10); \ 49 const u8 *k = key; in jhash() local 56 a += (k[0] +((u32)k[1]<<8) +((u32)k[2]<<16) +((u32)k[3]<<24)); in jhash() 57 b += (k[4] +((u32)k[5]<<8) +((u32)k[6]<<16) +((u32)k[7]<<24)); in jhash() 58 c += (k[8] +((u32)k[9]<<8) +((u32)k[10]<<16)+((u32)k[11]<<24)); in jhash() 62 k += 12; in jhash() 68 case 11: c += ((u32)k[10]<<24); in jhash() 69 case 10: c += ((u32)k[9]<<16); in jhash() 70 case 9 : c += ((u32)k[8]<<8); in jhash() 71 case 8 : b += ((u32)k[7]<<24); in jhash() [all …]
|
/freebsd/secure/lib/libcrypto/man/man3/ |
H A D | X509_check_private_key.3 | 29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" 98 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' 99 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' 100 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' 101 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' 102 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' 148 \& int X509_check_private_key(X509 *x, EVP_PKEY *k); 150 \& int X509_REQ_check_private_key(X509_REQ *x, EVP_PKEY *k); 155 key \fBk\fR with the public key in \fBx\fR. [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/ |
H A D | tst.lib_base.lua | 34 X = X+10 49 local a, t = {10,20,30; x="10", y="20"}, {} 66 assert(a[1] == 10 and a.z == 28 and a[4] == 27 and a.x == "10") 81 a[1] = 10; a[2] = 20; a[3] = 90 82 assert(c[1] == 10 and c[2] == 20 and c[3] == 90) 91 for i=0,10 do 100 for i=1,10 do a[i] = 0; a['a'..i] = 0; end 101 setmetatable(a, {__newindex = function (t,k,v) foi=true; rawset(t,k,v) end}) 172 t = setmetatable({1,2,3}, {__len = function () return 10 end}) 173 assert(#t == 10 and rawlen(t) == 3) [all …]
|
/freebsd/crypto/openssh/regress/ |
H A D | rekey.sh | 52 ssh_data_rekeying "$opt" -oRekeyLimit=256k 60 ssh_data_rekeying "KexAlgorithms=$kex" -oRekeyLimit=256k -oCiphers=$c 65 for s in 16 1k 128k 256k; do 70 for s in 5 10; do 74 $OBJ/ssh_proxy somehost "cat >${COPY};sleep $s;sleep 10" 87 for s in 5 10; do 91 $OBJ/ssh_proxy somehost "sleep $s;sleep 10" 103 for s in 16 1k 128k 256k; do 122 for s in 5 10; do 127 ${SSH} -oCompression=no -F $OBJ/ssh_proxy somehost "sleep $s;sleep 10" [all …]
|
/freebsd/contrib/bearssl/src/ec/ |
H A D | ec_c25519_i31.c | 30 * - R^2 mod p (R = 2^(31k) for the smallest k such that R >= p) 59 uint32_t y[10]; 118 for (i = 0; i < 10; i ++) { in cswap() 133 uint32_t t[10]; in c255_add() 145 uint32_t t[10]; in c255_sub() 155 uint32_t t[10]; in c255_mul() 179 uint32_t x1[10], x2[10], x3[10], z2[10], z3[10]; in api_mul() 180 uint32_t a[10], aa[10], b[10], bb[10]; in api_mul() 181 uint32_t c[10], d[10], e[10], da[10], cb[10]; in api_mul() 182 unsigned char k[32]; in api_mul() local [all …]
|
/freebsd/secure/lib/libcrypto/man/man7/ |
H A D | EVP_KDF-HKDF.7 | 29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 97 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" 98 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' 99 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' 100 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' 101 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' 102 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' 148 and \*(L"extracts\*(R" from it a fixed-length pseudorandom key K. The second stage 149 \&\*(L"expands\*(R" the key K into several additional pseudorandom keys (the output 191 intermediate fixed-length pseudorandom key K is not returned. [all …]
|
/freebsd/usr.bin/grdc/ |
H A D | grdc.c | 10 * modified 10-18-89 for curses (jrl) 11 * 10-18-89 added signal handling 25 #define YBASE 10 26 #define XBASE 10 63 int i, j, s, k; in main() local 180 set(second % 10, 0); in main() 181 set(second / 10, 4); in main() 182 set(minute % 10, 10); in main() 183 set(minute / 10, 14); in main() 184 set(hour % 10, 20); in main() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
H A D | redacted_volume.ksh | 42 log_must zfs create -b 8k -V 1g $sendvol 43 sleep 10 49 for t in 10 5 3 2 1; do 56 log_must dd if=/dev/urandom of=$send_file bs=8k count=64 65 sleep 10 71 for t in 10 5 3 2 1; do 78 log_must dd if=$send_file of=$tmpdir/send.dd bs=8k count=64 79 log_must dd if=$recv_file of=$tmpdir/recv.dd bs=8k count=64 83 log_must dd if=/dev/urandom of=$clone_file bs=8k count=32 88 sleep 10 [all …]
|
/freebsd/crypto/openssl/crypto/ripemd/ |
H A D | rmd_local.h | 67 c=ROTATE(c,10); } 69 #define RIP2(a,b,c,d,e,w,s,K) { \ argument 70 a+=F2(b,c,d)+X(w)+K; \ 72 c=ROTATE(c,10); } 74 #define RIP3(a,b,c,d,e,w,s,K) { \ argument 75 a+=F3(b,c,d)+X(w)+K; \ 77 c=ROTATE(c,10); } 79 #define RIP4(a,b,c,d,e,w,s,K) { \ argument 80 a+=F4(b,c,d)+X(w)+K; \ 82 c=ROTATE(c,10); } [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/ |
H A D | trivial-devices.yaml | 186 # 10 kOhm digital potentiometer with I2C interface 192 # 10 kOhm digital potentiometer with I2C interface 198 # 10-bit 10 kOhm linear programmable voltage divider 200 # 10-bit 50 kOhm linear programmable voltage divider 202 # 10-bit 10 kOhm linear programmable variable resistor 204 # 10-bit 50 kOhm linear programmable variable resistor 260 # Microchip 7-bit Single I2C Digital POT (5k) 262 # Microchip 7-bit Single I2C Digital POT (10 [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | COFFModuleDefinition.cpp | 53 explicit Token(Kind T = Unknown, StringRef S = "") : K(T), Value(S) {} in Token() 54 Kind K; member 115 Kind K = llvm::StringSwitch<Kind>(Word) in lex() local 130 return Token(K, Word); in lex() 151 } while (Tok.K != Eof); in parse() 167 if (Tok.K != Identifier || Tok.Value.getAsInteger(10, *I)) in readAsInt() 174 if (Tok.K != Expected) in expect() 183 switch (Tok.K) { in parseOne() 189 if (Tok.K != Identifier) { in parseOne() 202 bool IsDll = Tok.K == KwLibrary; // Check before parseName. in parseOne() [all …]
|