Lines Matching refs:clen
45 radius_encrypt_mppe_key_attr(void *cipher, size_t * clen, const void *plain, in radius_encrypt_mppe_key_attr() argument
57 if (*clen < ROUNDUP(plen + 1, 16) + 2) in radius_encrypt_mppe_key_attr()
65 *clen = ROUNDUP(plen + 1, 16) + 2; in radius_encrypt_mppe_key_attr()
67 for (off = 0; off < *clen - 2; off += 16) { in radius_encrypt_mppe_key_attr()
87 size_t clen, const void *ra, const char *secret) in radius_decrypt_mppe_key_attr() argument
95 if (clen < 18 || clen > 255) in radius_decrypt_mppe_key_attr()
97 if ((clen - 2) % 16 != 0) in radius_decrypt_mppe_key_attr()
99 if (*plen < clen - 3) in radius_decrypt_mppe_key_attr()
102 for (off = 0; off < clen - 2; off += 16) { in radius_decrypt_mppe_key_attr()
117 if (plain0[0] > clen - 3) in radius_decrypt_mppe_key_attr()
130 size_t clen = sizeof(cipher); in radius_get_mppe_key_attr() local
133 cipher, &clen) != 0) in radius_get_mppe_key_attr()
135 if (radius_decrypt_mppe_key_attr(buf, len, cipher, clen, in radius_get_mppe_key_attr()
146 size_t clen = sizeof(cipher); in radius_put_mppe_key_attr() local
148 if (radius_encrypt_mppe_key_attr(cipher, &clen, buf, len, in radius_put_mppe_key_attr()
152 cipher, clen) != 0) in radius_put_mppe_key_attr()