Home
last modified time | relevance | path

Searched refs:roundkey_dec (Results 1 – 2 of 2) sorted by last modified time

/dports/security/p5-Crypt-Shark/Crypt-Shark-1.0.1/
H A D_shark.c1699 void box_init(ddword *roundkey_enc, ddword *roundkey_dec) in box_init() argument
1769 roundkey_dec[0] = transform(roundkey_enc[ROUNDS]); in box_init()
1771 roundkey_dec[r] = roundkey_enc[ROUNDS-r]; in box_init()
1773 roundkey_dec[ROUNDS+1+r] = inverse(roundkey_enc[2*ROUNDS+1-r]); in box_init()
1782 mul(mul(iG[i][t],(unsigned char)(roundkey_dec[ROUNDS+1]>>(56-8*t))), in box_init()
1796 mul(sbox_dec[k] ^ (unsigned char)(roundkey_dec[r+1]>>(56-8*j)),G_k[i][j]); in box_init()
1805 else G_k[i][i] = (unsigned char)(roundkey_dec[2*ROUNDS+1]>>(56-8*i)); in box_init()
1812 mul(sbox_dec[k] ^ (unsigned char)(roundkey_dec[r+1]>>(56-8*i)),G_k[i][j]); in box_init()
1864 ddword roundkey_enc[ROUNDKEYS], roundkey_dec[ROUNDKEYS]; in main() local
1875 box_init(roundkey_enc, roundkey_dec); in main()
[all …]
H A DShark.xs9 ddword roundkey_dec[14]; member
46 box_init(RETVAL->roundkey_enc, RETVAL->roundkey_dec); in new()
83 decryption(intext, self->roundkey_dec, SvPV_nolen(RETVAL)); in decrypt()