Searched refs:sbox (Results 1 – 2 of 2) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/ciphers/twofish/ |
A D | twofish.c | 266 …y[0] = (unsigned char)(sbox(1, sbox(0, sbox(0, (ulong32)y[0]) ^ M[4 * (2 + offset) + 0]) ^ M[4 * (… in h_func() 267 …y[1] = (unsigned char)(sbox(0, sbox(0, sbox(1, (ulong32)y[1]) ^ M[4 * (2 + offset) + 1]) ^ M[4 * (… in h_func() 268 …y[2] = (unsigned char)(sbox(1, sbox(1, sbox(0, (ulong32)y[2]) ^ M[4 * (2 + offset) + 2]) ^ M[4 * (… in h_func() 427 …skey->twofish.S[0][x] = mds_column_mult(sbox(1, (sbox(0, sbox(0, tmpx1 ^ S[0]) ^ S[4]) ^ S[8])),0); in _twofish_setup() 428 …skey->twofish.S[1][x] = mds_column_mult(sbox(0, (sbox(0, sbox(1, tmpx1 ^ S[1]) ^ S[5]) ^ S[9])),1); in _twofish_setup() 429 …skey->twofish.S[2][x] = mds_column_mult(sbox(1, (sbox(1, sbox(0, tmpx0 ^ S[2]) ^ S[6]) ^ S[10])),2… in _twofish_setup() 430 …skey->twofish.S[3][x] = mds_column_mult(sbox(0, (sbox(1, sbox(1, tmpx0 ^ S[3]) ^ S[7]) ^ S[11])),3… in _twofish_setup() 436 …skey->twofish.S[0][x] = mds_column_mult(sbox(1, (sbox(0, sbox(0, sbox(1, tmpx1 ^ S[0]) ^ S[4]) ^ S… in _twofish_setup() 437 …skey->twofish.S[1][x] = mds_column_mult(sbox(0, (sbox(0, sbox(1, sbox(1, tmpx0 ^ S[1]) ^ S[5]) ^ S… in _twofish_setup() 438 …skey->twofish.S[2][x] = mds_column_mult(sbox(1, (sbox(1, sbox(0, sbox(0, tmpx0 ^ S[2]) ^ S[6]) ^ S… in _twofish_setup() [all …]
|
/optee_os/core/lib/libtomcrypt/src/ciphers/ |
A D | skipjack.c | 33 static const unsigned char sbox[256] = { variable 116 g1 ^= sbox[g2^key[*kp]]; *kp = keystep[*kp]; in g_func() 117 g2 ^= sbox[g1^key[*kp]]; *kp = keystep[*kp]; in g_func() 118 g1 ^= sbox[g2^key[*kp]]; *kp = keystep[*kp]; in g_func() 119 g2 ^= sbox[g1^key[*kp]]; *kp = keystep[*kp]; in g_func() 128 *kp = ikeystep[*kp]; g2 ^= sbox[g1^key[*kp]]; in ig_func() 129 *kp = ikeystep[*kp]; g1 ^= sbox[g2^key[*kp]]; in ig_func() 130 *kp = ikeystep[*kp]; g2 ^= sbox[g1^key[*kp]]; in ig_func() 131 *kp = ikeystep[*kp]; g1 ^= sbox[g2^key[*kp]]; in ig_func()
|
Completed in 4 milliseconds