Lines Matching refs:idx
540 int idx; in cfb64_encrypt() local
542 idx = stp->str_index; in cfb64_encrypt()
544 if (idx == sizeof(Block)) { in cfb64_encrypt()
548 idx = 0; in cfb64_encrypt()
552 *s = stp->str_output[idx] = (stp->str_feed[idx] ^ *s); in cfb64_encrypt()
554 idx++; in cfb64_encrypt()
556 stp->str_index = idx; in cfb64_encrypt()
563 int idx; in cfb64_decrypt() local
576 idx = stp->str_index++; in cfb64_decrypt()
577 if (idx == sizeof(Block)) { in cfb64_decrypt()
582 idx = 0; /* But now use 0 */ in cfb64_decrypt()
586 stp->str_output[idx] = data; in cfb64_decrypt()
587 return(data ^ stp->str_feed[idx]); in cfb64_decrypt()
613 int idx; in ofb64_encrypt() local
615 idx = stp->str_index; in ofb64_encrypt()
617 if (idx == sizeof(Block)) { in ofb64_encrypt()
621 idx = 0; in ofb64_encrypt()
623 *s++ ^= stp->str_feed[idx]; in ofb64_encrypt()
624 idx++; in ofb64_encrypt()
626 stp->str_index = idx; in ofb64_encrypt()
633 int idx; in ofb64_decrypt() local
646 idx = stp->str_index++; in ofb64_decrypt()
647 if (idx == sizeof(Block)) { in ofb64_decrypt()
652 idx = 0; /* But now use 0 */ in ofb64_decrypt()
655 return(data ^ stp->str_feed[idx]); in ofb64_decrypt()