Lines Matching refs:clen
289 uint8 *cookie, int *clen) { in dtls_create_cookie() argument
336 if (len < *clen) { in dtls_create_cookie()
337 memset(cookie + len, 0, *clen - len); in dtls_create_cookie()
338 *clen = len; in dtls_create_cookie()
341 memcpy(cookie, buf, *clen); in dtls_create_cookie()
2882 int clen; in decrypt_verify() local
2885 clen = length - sizeof(dtls_record_header_t); in decrypt_verify()
2894 return clen; in decrypt_verify()
2904 if (clen < 16) /* need at least IV and MAC */ in decrypt_verify()
2914 clen -= 8; in decrypt_verify()
2919 dtls_debug_dump("ciphertext", *cleartext, clen); in decrypt_verify()
2928 dtls_int_to_uint16(A_DATA + 11, clen - 8); /* length without nonce_explicit */ in decrypt_verify()
2930 clen = dtls_decrypt(*cleartext, clen, *cleartext, nonce, in decrypt_verify()
2934 if (clen < 0) in decrypt_verify()
2938 printf("decrypt_verify(): found %i bytes cleartext\n", clen); in decrypt_verify()
2941 dtls_debug_dump("cleartext", *cleartext, clen); in decrypt_verify()
2944 return clen; in decrypt_verify()