Home | History | Annotate | Download | only in ciphers

Lines Matching refs:rc5

13    @file rc5.c
14 RC5 code by Tom St Denis
19 #ifdef RC5
23 "rc5",
46 Initialize the RC5 block cipher
78 skey->rc5.rounds = num_rounds;
79 S = skey->rc5.K;
122 Encrypts a block of text with RC5
142 A += skey->rc5.K[0];
143 B += skey->rc5.K[1];
144 K = skey->rc5.K + 2;
146 if ((skey->rc5.rounds & 1) == 0) {
147 for (r = 0; r < skey->rc5.rounds; r += 2) {
155 for (r = 0; r < skey->rc5.rounds; r++) {
177 Decrypts a block of text with RC5
197 K = skey->rc5.K + (skey->rc5.rounds << 1);
199 if ((skey->rc5.rounds & 1) == 0) {
201 for (r = skey->rc5.rounds - 1; r >= 0; r -= 2) {
209 for (r = skey->rc5.rounds - 1; r >= 0; r--) {
215 A -= skey->rc5.K[0];
216 B -= skey->rc5.K[1];
233 Performs a self-test of the RC5 block cipher
320 /* $Source: /cvs/libtom/libtomcrypt/src/ciphers/rc5.c,v $ */