Lines Matching +full:direction +full:- +full:based
6 * SPDX-License-Identifier: Apache-2.0
37 * this process is based on a absolute index of input characters
59 if (tmpIndex == -1) { in enig_enc()
63 tmpIndex = (W1[IMOD(IW1, tmpIndex)] + WHEEL_SIZE - IW1) % WHEEL_SIZE; in enig_enc()
67 tmpIndex = (W2[IMOD(IW2, tmpIndex)] + WHEEL_SIZE - IW2) % WHEEL_SIZE; in enig_enc()
71 tmpIndex = (W3[IMOD(IW3, tmpIndex)] + WHEEL_SIZE - IW3) % WHEEL_SIZE; in enig_enc()
79 tmpIndex = (W3R[IMOD(IW3, tmpIndex)] + WHEEL_SIZE - IW3) % WHEEL_SIZE; in enig_enc()
83 tmpIndex = (W2R[IMOD(IW2, tmpIndex)] + WHEEL_SIZE - IW2) % WHEEL_SIZE; in enig_enc()
87 tmpIndex = (W1R[IMOD(IW1, tmpIndex)] + WHEEL_SIZE - IW1) % WHEEL_SIZE; in enig_enc()
104 * Return: 1:ok -1 error
113 return -1; in calc_rev_wheel()
122 * convert a-z to 0-25
127 return -1; in char_to_index()
129 return (short)(c - 'a'); in char_to_index()
133 * convert from a index 0-25 to a-z
144 * basic update to wheels based on full rotation
146 * the direction of rotation or order of updates