Lines Matching defs:bufp
519 uint8_t buf[33 + 2], *bufp = buf + 1;
524 bufp[-1] = bufp[33] = 0x1a;
533 aes_ccm_enc(C, T[i].ptxt, bufp, 1);
534 aes_ccm_enc(C, T[i].ptxt + 1, bufp + 1, 2);
535 aes_ccm_enc(C, T[i].ptxt + 3, bufp + 3, T[i].mlen - 4);
537 bufp + T[i].mlen - 1, 1);
539 if (memcmp(bufp, T[i].ctxt, T[i].mlen)) {
543 hexdump(printf, name, bufp, T[i].mlen);
556 aes_ccm_dec(C, T[i].ctxt, bufp, 1);
557 aes_ccm_dec(C, T[i].ctxt + 1, bufp + 1, 2);
558 aes_ccm_dec(C, T[i].ctxt + 3, bufp + 3, T[i].mlen - 4);
560 bufp + T[i].mlen - 1, 1);
565 if (memcmp(bufp, T[i].ptxt, T[i].mlen)) {
569 hexdump(printf, name, bufp, T[i].mlen);
578 aes_ccm_dec(C, T[i].ctxt, bufp, 1);
579 aes_ccm_dec(C, T[i].ctxt + 1, bufp + 1, 2);
580 aes_ccm_dec(C, T[i].ctxt + 3, bufp + 3, T[i].mlen - 4);
582 bufp + T[i].mlen - 1, 1);
589 if (bufp[-1] != 0x1a || bufp[33] != 0x1a) {