Lines Matching refs:len
30 dump(unsigned char *buf, size_t len) { in dump() argument
32 while (i < len) { in dump()
50 long int len; local
66 len = dtls_ccm_encrypt_message(&ctx, data[n].M, data[n].L, data[n].nonce,
71 len += + data[n].la;
73 if (len != data[n].r_lm || memcmp(data[n].msg, data[n].result, len))
78 printf("result is (total length = %lu):\n\t", len);
79 dump(data[n].msg, len);
81 len = dtls_ccm_decrypt_message(&ctx, data[n].M, data[n].L, data[n].nonce,
82 data[n].msg + data[n].la, len - data[n].la,
85 if (len < 0)
88 printf("\t*** MAC verified (total length = %lu) ***\n", len + data[n].la);