Home
last modified time | relevance | path

Searched refs:sbox (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/contrib/libsodium/regen-msvc/
H A Dregen-msvc.py84 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/aes/asm/
H A Daes-x86_64.pl71 $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 Ddes_enc.m4106 ! 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 Dgostr34_11_94.c135 …_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 Dcrypt-des.c106 static const u_char sbox[8][64] = { variable
232 u_sbox[i][j] = sbox[i][b]; in des_init()