Lines Matching defs:outlen
28 * @outlen: length of output hash value in bytes, at most BLAKE2B_HASH_SIZE
37 unsigned int outlen;
60 static inline void __blake2b_init(struct blake2b_ctx *ctx, size_t outlen,
63 ctx->h[0] = BLAKE2B_IV0 ^ (0x01010000 | keylen << 8 | outlen);
76 ctx->outlen = outlen;
87 * @outlen: length of output hash value in bytes, at most BLAKE2B_HASH_SIZE
91 static inline void blake2b_init(struct blake2b_ctx *ctx, size_t outlen)
93 __blake2b_init(ctx, outlen, NULL, 0);
99 * @outlen: length of output hash value in bytes, at most BLAKE2B_HASH_SIZE
105 static inline void blake2b_init_key(struct blake2b_ctx *ctx, size_t outlen,
108 WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2B_HASH_SIZE ||
111 __blake2b_init(ctx, outlen, key, keylen);
130 * @outlen that was passed to blake2b_init() or blake2b_init_key().
145 * @out: (output) the resulting BLAKE2b hash, with length @outlen
146 * @outlen: length of output hash value in bytes, at most BLAKE2B_HASH_SIZE
152 u8 *out, size_t outlen)
156 WARN_ON(IS_ENABLED(DEBUG) && ((!in && inlen > 0) || !out || !outlen ||
157 outlen > BLAKE2B_HASH_SIZE || keylen > BLAKE2B_KEY_SIZE ||
160 __blake2b_init(&ctx, outlen, key, keylen);