Lines Matching refs:len

36    unsigned long len;  in chacha20poly1305_test()
54 len = sizeof(emac); in chacha20poly1305_test()
55 if ((err = chacha20poly1305_done(&st1, emac, &len)) != CRYPT_OK) return err; in chacha20poly1305_test()
58 …if (compare_testvector(emac, len, tag, sizeof(tag), "ENC-TAG", 2) != 0) return CRYPT_FAIL_TESTVECT… in chacha20poly1305_test()
66 len = sizeof(dmac); in chacha20poly1305_test()
67 if ((err = chacha20poly1305_done(&st2, dmac, &len)) != CRYPT_OK) return err; in chacha20poly1305_test()
70 …if (compare_testvector(dmac, len, tag, sizeof(tag), "DEC-TAG", 4) != 0) return CRYPT_FAIL_TESTVECT… in chacha20poly1305_test()
73 len = sizeof(emac); in chacha20poly1305_test()
75 … mlen, ct, emac, &len, CHACHA20POLY1305_ENCRYPT)) != CRYPT_OK) return err; in chacha20poly1305_test()
77 …if (compare_testvector(emac, len, tag, sizeof(tag), "ENC-TAG2", 2) != 0) return CRYPT_FAIL_TESTVEC… in chacha20poly1305_test()
80 len = sizeof(dmac); in chacha20poly1305_test()
83 … ct, mlen, pt, dmac, &len, CHACHA20POLY1305_DECRYPT)) != CRYPT_OK) return err; in chacha20poly1305_test()
91 len = sizeof(emac); in chacha20poly1305_test()
92 if ((err = chacha20poly1305_done(&st1, emac, &len)) != CRYPT_OK) return err; in chacha20poly1305_test()
95 …if (compare_testvector(emac, len, rfc7905_tag, 16, "ENC-TAG3", 2) != 0) return CRYPT_FAIL_TESTVECT… in chacha20poly1305_test()
102 len = sizeof(dmac); in chacha20poly1305_test()
103 if ((err = chacha20poly1305_done(&st1, dmac, &len)) != CRYPT_OK) return err; in chacha20poly1305_test()
106 …if (compare_testvector(dmac, len, rfc7905_tag, 16, "DEC-TAG3", 2) != 0) return CRYPT_FAIL_TESTVECT… in chacha20poly1305_test()
113 len = sizeof(emac); in chacha20poly1305_test()
114 if ((err = chacha20poly1305_done(&st1, emac, &len)) != CRYPT_OK) return err; in chacha20poly1305_test()
121 len = sizeof(dmac); in chacha20poly1305_test()
122 if ((err = chacha20poly1305_done(&st2, dmac, &len)) != CRYPT_OK) return err; in chacha20poly1305_test()
125 if (compare_testvector(dmac, len, emac, len, "DEC-TAG4", 2) != 0) return CRYPT_FAIL_TESTVECTOR; in chacha20poly1305_test()