Lines Matching refs:ivlen
213 int ivlen;
215 ivlen = 0;
218 if (esp_algorithms[idx]->ivlenval > ivlen)
219 ivlen = esp_algorithms[idx]->ivlenval;
222 return ivlen;
296 __unused int ivlen)
309 __unused int ivlen)
676 esp_cbc_decrypt(m, off, sav, algo, ivlen)
681 int ivlen;
697 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) {
699 "unsupported ivlen %d\n", algo->name, ivlen));
719 bodyoff = off + sizeof(struct esp) + ivlen;
730 ivlen = sizeof(u_int32_t);
734 bodyoff = off + sizeof(struct newesp) + ivlen;
740 m_copydata(m, ivoff, ivlen, iv);
743 if (ivlen == blocklen)
745 else if (ivlen == 4 && blocklen == 8) {
753 "unsupported ivlen/blocklen: %d %d\n",
754 algo->name, ivlen, blocklen));
881 int ivlen)
897 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) {
899 "unsupported ivlen %d\n", algo->name, ivlen));
919 bodyoff = off + sizeof(struct esp) + ivlen;
930 ivlen = sizeof(u_int32_t);
934 bodyoff = off + sizeof(struct newesp) + ivlen;
941 m_copydata(m, ivoff, ivlen, iv);
943 bcopy(sav->iv, iv, ivlen);
945 m_copyback(m, ivoff, ivlen, iv);
949 if (ivlen == blocklen)
951 else if (ivlen == 4 && blocklen == 8) {
959 "unsupported ivlen/blocklen: %d %d\n",
960 algo->name, ivlen, blocklen));