Lines Matching refs:n
22 int n; in fls() local
23 for (n = 0; i; n++) in fls()
25 return n; in fls()
51 int n; local
59 for (n = 0; n < sizeof(data)/sizeof(struct test_vector); ++n) {
61 if (rijndael_set_key_enc_only(&ctx, data[n].key, 8*sizeof(data[n].key)) < 0) {
66 len = dtls_ccm_encrypt_message(&ctx, data[n].M, data[n].L, data[n].nonce,
67 data[n].msg + data[n].la,
68 data[n].lm - data[n].la,
69 data[n].msg, data[n].la);
71 len += + data[n].la;
72 printf("Packet Vector #%d ", n+1);
73 if (len != data[n].r_lm || memcmp(data[n].msg, data[n].result, 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,
83 data[n].msg, data[n].la);
86 printf("Packet Vector #%d: cannot decrypt message\n", n+1);
88 printf("\t*** MAC verified (total length = %lu) ***\n", len + data[n].la);