| /freebsd/sys/contrib/libsodium/regen-msvc/ |
| H A D | regen-msvc.py | 84 def apply_template(tplfile, outfile, sbox): argument 88 for s in sbox.keys(): 90 "{{" + s + "}}", "utf8"), str.encode(str.strip(sbox[s]), "utf8")) 95 sbox = {"tlv1": tlv1, "tlv2": tlv2, "tlf1": tlf1, "tlf2": tlf2, "v1": v1, variable 101 "libsodium.vcxproj.filters", sbox) 103 sbox.update({"platform": "v140"}) 105 "libsodium.vcxproj", sbox) 108 "builds/msvc/vs2017/libsodium/libsodium.vcxproj.filters", sbox) 110 "builds/msvc/vs2015/libsodium/libsodium.vcxproj.filters", sbox) 112 "builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters", sbox) [all …]
|
| /freebsd/crypto/openssl/crypto/sm4/asm/ |
| H A D | vpsm4-armv8.pl | 37 my @sbox=map("v$_",(16..31)); 126 sub sbox() { subroutine 136 tbl $dat.16b,{@sbox[0].16b,@sbox[1].16b,@sbox[2].16b,@sbox[3].16b},$dat.16b 137 tbl @vtmp[0].16b,{@sbox[4].16b,@sbox[5].16b,@sbox[6].16b,@sbox[7].16b},@vtmp[0].16b 138 tbl @vtmp[1].16b,{@sbox[8].16b,@sbox[9].16b,@sbox[10].16b,@sbox[11].16b},@vtmp[1].16b 139 tbl @vtmp[2].16b,{@sbox[12].16b,@sbox[13].16b,@sbox[14].16b,@sbox[15].16b},@vtmp[2].16b 169 tbl $dat.16b,{@sbox[0].16b,@sbox[1].16b,@sbox[2].16b,@sbox[3].16b},$dat.16b 170 tbl @vtmp[0].16b,{@sbox[4].16b,@sbox[5].16b,@sbox[6].16b,@sbox[7].16b},@vtmp[0].16b 171 tbl @vtmp[1].16b,{@sbox[8].16b,@sbox[9].16b,@sbox[10].16b,@sbox[11].16b},@vtmp[1].16b 172 tbl @vtmp[2].16b,{@sbox[12].16b,@sbox[13].16b,@sbox[14].16b,@sbox[15].16b},@vtmp[2].16b [all …]
|
| H A D | vpsm4_ex-armv8.pl | 145 sub sbox() { subroutine 309 &sbox($rk0); 317 &sbox($rk1); 330 &sbox($rk0); 338 &sbox($rk1);
|
| /freebsd/crypto/openssl/crypto/aes/asm/ |
| H A D | aes-x86_64.pl | 71 $sbox="%r14"; 108 mov 0($sbox,$acc0,8),$t0 109 mov 0($sbox,$acc1,8),$t1 110 mov 0($sbox,$acc2,8),$t2 115 xor 3($sbox,$acc0,8),$t0 116 xor 3($sbox,$acc1,8),$t1 117 mov 0($sbox,$acc2,8),$t3 122 xor 3($sbox,$acc0,8),$t2 124 xor 3($sbox,$acc2,8),$t3 133 xor 2($sbox,$acc0,8),$t0 [all …]
|
| /freebsd/crypto/openssl/crypto/des/asm/ |
| H A D | des_enc.m4 | 106 ! The macro also loads address sbox 1 to 5 to global 1 to 5, address 107 ! sbox 6 to local6, and address sbox 8 to out3. 109 ! Rotates the halves 3 left to bring the sbox bits in convenient positions. 153 nop !sethi %hi(DES_SPtrans), global1 ! sbox addr 157 nop !or global1, %lo(DES_SPtrans), global1 ! sbox addr 205 add global1, 1280, local6 ! address sbox 8 208 add global1, 1792, out3 ! address sbox 8 242 ! except that calculations for sbox 1 and sbox 5 begin before 257 ! The bits for each sbox are xor-ed with the key bits for that box. 259 ! the sbox table. Each sbox entry contains the 4 output bits permuted [all …]
|
| /freebsd/crypto/libecc/src/examples/hash/ |
| H A D | gostr34_11_94.c | 135 …_block_encryption(const u64 K[GOSTR34_11_94_STATE_SIZE], const u64 P, u64 *E, const u8 sbox[8][16]) in gostr34_11_94_block_encryption() 143 MUST_HAVE((K != NULL) && (sbox != NULL) && (E != NULL), ret, err); in gostr34_11_94_block_encryption() 171 … r_i1[i] = (u8)((sbox[sb_idx + 1][(r_i1[i] & 0xf0) >> 4] << 4) | (sbox[sb_idx][(r_i1[i] & 0x0f)])); in gostr34_11_94_block_encryption() 191 …IZE], const u64 H[GOSTR34_11_94_STATE_SIZE], u64 S[GOSTR34_11_94_STATE_SIZE], const u8 sbox[8][16]) in gostr34_11_94_state_encryption() 199 ret = gostr34_11_94_block_encryption(K[0], H[3], &S[0], sbox); EG(ret, err); in gostr34_11_94_state_encryption() 201 ret = gostr34_11_94_block_encryption(K[1], H[2], &S[1], sbox); EG(ret, err); in gostr34_11_94_state_encryption() 203 ret = gostr34_11_94_block_encryption(K[2], H[1], &S[2], sbox); EG(ret, err); in gostr34_11_94_state_encryption() 205 ret = gostr34_11_94_block_encryption(K[3], H[0], &S[3], sbox); EG(ret, err); in gostr34_11_94_state_encryption()
|
| /freebsd/secure/lib/libcrypt/ |
| H A D | crypt-des.c | 106 static const u_char sbox[8][64] = { variable 232 u_sbox[i][j] = sbox[i][b]; in des_init()
|
| /freebsd/contrib/sqlite3/autosetup/ |
| H A D | jimsh0.c | 570 unsigned char sbox[256]; member 15944 si = prng->sbox[prng->i]; in JimRandomBytes() 15946 sj = prng->sbox[prng->j]; in JimRandomBytes() 15947 prng->sbox[prng->i] = sj; in JimRandomBytes() 15948 prng->sbox[prng->j] = si; in JimRandomBytes() 15949 *destByte++ = prng->sbox[(si + sj) & 0xff]; in JimRandomBytes() 15966 prng->sbox[i] = i; in JimPrngSeed() 15971 t = prng->sbox[i & 0xFF]; in JimPrngSeed() 15972 prng->sbox[i & 0xFF] = prng->sbox[seed[i]]; in JimPrngSeed() 15973 prng->sbox[seed[i]] = t; in JimPrngSeed()
|