Searched refs:mds_column_mult (Results 1 – 1 of 1) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/ciphers/twofish/ |
A D | twofish.c | 167 static ulong32 mds_column_mult(unsigned char in, int col) in mds_column_mult() function 203 #define mds_column_mult(x, i) mds_tab[i][x] macro 213 tmp ^= mds_column_mult(in[x], x); in mds_mult() 317 res ^= mds_column_mult(g, y); in _g_func() 418 skey->twofish.S[0][x] = mds_column_mult(sbox(1, (sbox(0, tmpx0 ^ S[0]) ^ S[4])),0); in _twofish_setup() 419 skey->twofish.S[1][x] = mds_column_mult(sbox(0, (sbox(0, tmpx1 ^ S[1]) ^ S[5])),1); in _twofish_setup() 420 skey->twofish.S[2][x] = mds_column_mult(sbox(1, (sbox(1, tmpx0 ^ S[2]) ^ S[6])),2); in _twofish_setup() 421 skey->twofish.S[3][x] = mds_column_mult(sbox(0, (sbox(1, tmpx1 ^ S[3]) ^ S[7])),3); in _twofish_setup() 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() [all …]
|
Completed in 6 milliseconds