Home
last modified time | relevance | path

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

/external/dropbear/libtomcrypt/src/ciphers/twofish/
Dtwofish.c171 static ulong32 mds_column_mult(unsigned char in, int col) in mds_column_mult() function
207 #define mds_column_mult(x, i) mds_tab[i][x] macro
217 tmp ^= mds_column_mult(in[x], x); in mds_mult()
318 res ^= mds_column_mult(g, y); in _g_func()
419 skey->twofish.S[0][x] = mds_column_mult(sbox(1, (sbox(0, tmpx0 ^ S[0]) ^ S[4])),0); in _twofish_setup()
420 skey->twofish.S[1][x] = mds_column_mult(sbox(0, (sbox(0, tmpx1 ^ S[1]) ^ S[5])),1); in _twofish_setup()
421 skey->twofish.S[2][x] = mds_column_mult(sbox(1, (sbox(1, tmpx0 ^ S[2]) ^ S[6])),2); in _twofish_setup()
422 skey->twofish.S[3][x] = mds_column_mult(sbox(0, (sbox(1, tmpx1 ^ S[3]) ^ S[7])),3); in _twofish_setup()
428 …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()
429 …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 …]