Lines Matching refs:rc4_off
72 # define rc4_off 0 macro
81 size_t rc4_off = 32 - 1 - (key->ks.x & (32 - 1)), /* 32 is $MOD from in rc4_hmac_md5_cipher() local
96 if (rc4_off > md5_off) in rc4_hmac_md5_cipher()
102 RC4(&key->ks, rc4_off, in, out); in rc4_hmac_md5_cipher()
104 rc4_md5_enc(&key->ks, in + rc4_off, out + rc4_off, in rc4_hmac_md5_cipher()
107 rc4_off += blocks; in rc4_hmac_md5_cipher()
114 rc4_off = 0; in rc4_hmac_md5_cipher()
122 memcpy(out + rc4_off, in + rc4_off, plen - rc4_off); in rc4_hmac_md5_cipher()
130 RC4(&key->ks, len - rc4_off, out + rc4_off, out + rc4_off); in rc4_hmac_md5_cipher()
132 RC4(&key->ks, len - rc4_off, in + rc4_off, out + rc4_off); in rc4_hmac_md5_cipher()
138 if (md5_off > rc4_off) in rc4_hmac_md5_cipher()
139 rc4_off += 2 * MD5_CBLOCK; in rc4_hmac_md5_cipher()
141 rc4_off += MD5_CBLOCK; in rc4_hmac_md5_cipher()
143 if (len > rc4_off && (blocks = (len - rc4_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher()
145 RC4(&key->ks, rc4_off, in, out); in rc4_hmac_md5_cipher()
148 rc4_md5_enc(&key->ks, in + rc4_off, out + rc4_off, in rc4_hmac_md5_cipher()
151 rc4_off += blocks; in rc4_hmac_md5_cipher()
160 rc4_off = 0; in rc4_hmac_md5_cipher()
164 RC4(&key->ks, len - rc4_off, in + rc4_off, out + rc4_off); in rc4_hmac_md5_cipher()