Lines Matching refs:salt_size
283 static int salt_size = SALT; variable
469 salt_size = s; in enc_do()
485 salt_size = s; in enc_do()
492 if (salt_size == -1) { in enc_do()
495 salt_size = 0; in enc_do()
721 salt_size = MSRC4_SALT; /* 11 vs. 16 */ in enc_xfer()
752 salt_size = 0; /* we want no salt */ in enc_xfer()
765 RAND_bytes(salt, salt_size); in enc_xfer()
769 memcpy(buf, salt, salt_size); in enc_xfer()
770 memcpy(buf+salt_size, ivec, ivec_size); in enc_xfer()
772 n = salt_size + ivec_size; in enc_xfer()
785 if (salt_size+ivec_size == 0) { in enc_xfer()
788 n = read(sock_fr, buf, salt_size+ivec_size+96); in enc_xfer()
790 if (n == 0 && salt_size+ivec_size > 0) { in enc_xfer()
794 if (n < salt_size+ivec_size) { in enc_xfer()
812 memcpy(salt, buf, salt_size); in enc_xfer()
813 memcpy(ivec, buf+salt_size, ivec_size); in enc_xfer()
816 n = n - salt_size - ivec_size; in enc_xfer()
817 psrc = buf + salt_size + ivec_size; in enc_xfer()
871 } else if (salt_size <= 0) { in enc_xfer()
958 } else if (first && n == 0 && salt_size + ivec_size == 0) { in enc_xfer()