Lines Matching refs:BLAKE2B_OUTBYTES
855 uint8_t outbuf[BLAKE2B_OUTBYTES]; in blake2b_long()
856 uint8_t inbuf[BLAKE2B_OUTBYTES]; in blake2b_long()
870 outlen_md = (outlen <= BLAKE2B_OUTBYTES) ? outlen : BLAKE2B_OUTBYTES; in blake2b_long()
877 && EVP_DigestFinal_ex(ctx, (outlen > BLAKE2B_OUTBYTES) ? outbuf : out, in blake2b_long()
883 if (outlen > BLAKE2B_OUTBYTES) { in blake2b_long()
884 memcpy(out, outbuf, BLAKE2B_OUTBYTES / 2); in blake2b_long()
885 out += BLAKE2B_OUTBYTES / 2; in blake2b_long()
886 outlen_curr = (uint32_t) outlen - BLAKE2B_OUTBYTES / 2; in blake2b_long()
888 while (outlen_curr > BLAKE2B_OUTBYTES) { in blake2b_long()
889 memcpy(inbuf, outbuf, BLAKE2B_OUTBYTES); in blake2b_long()
890 if (blake2b(md, mac, outbuf, BLAKE2B_OUTBYTES, inbuf, in blake2b_long()
891 BLAKE2B_OUTBYTES, NULL, 0) != 1) in blake2b_long()
893 memcpy(out, outbuf, BLAKE2B_OUTBYTES / 2); in blake2b_long()
894 out += BLAKE2B_OUTBYTES / 2; in blake2b_long()
895 outlen_curr -= BLAKE2B_OUTBYTES / 2; in blake2b_long()
898 memcpy(inbuf, outbuf, BLAKE2B_OUTBYTES); in blake2b_long()
899 if (blake2b(md, mac, outbuf, outlen_curr, inbuf, BLAKE2B_OUTBYTES, in blake2b_long()