Home
last modified time | relevance | path

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

/dports/security/libmcrypt/libmcrypt-2.5.8/modules/algorithms/
H A Denigma.h2 #define ROTORSZ 256
6 char t1[ROTORSZ];
7 char t2[ROTORSZ];
8 char t3[ROTORSZ];
9 char deck[ROTORSZ];
H A Denigma.c61 for (i = 0; i < ROTORSZ; i++) {
65 for (i = 0; i < ROTORSZ; i++) {
68 k = ROTORSZ - 1 - i;
85 for (i = 0; i < ROTORSZ; i++)
98 for (i = 0; i < ROTORSZ; i++) {
101 k = ROTORSZ - 1 - i;
133 if (ckey->n1 == ROTORSZ) {
136 if (ckey->n2 == ROTORSZ)
173 if (ckey->n1 == ROTORSZ) {
176 if (ckey->n2 == ROTORSZ)
/dports/cad/electric/electric-7.00/src/db/
H A Ddbtext.c4380 # define ROTORSZ 256 /* a power of two */ macro
4381 # define MASK (ROTORSZ-1)
4387 CHAR *pt, t1[ROTORSZ], t2[ROTORSZ], t3[ROTORSZ], deck[ROTORSZ], readable[ROTORSZ]; in myencrypt()
4393 for(i=0; i<ROTORSZ; i++) in myencrypt()
4399 for(i=0; i<ROTORSZ; i++) in myencrypt()
4403 k = ROTORSZ-1 - i; in myencrypt()
4415 for(i=0; i<ROTORSZ; i++) t2[t1[i]&MASK] = (CHAR)i; in myencrypt()
4428 if (n1 == ROTORSZ) in myencrypt()
4432 if (n2 == ROTORSZ) n2 = 0; in myencrypt()
4444 for(i=0; i<ROTORSZ; i++) in db_shuffle()
[all …]