Lines Matching defs:outlen
32 * @outlen: length of output hash value in bytes, at most BLAKE2S_HASH_SIZE
41 unsigned int outlen;
64 static inline void __blake2s_init(struct blake2s_ctx *ctx, size_t outlen,
67 ctx->h[0] = BLAKE2S_IV0 ^ (0x01010000 | keylen << 8 | outlen);
80 ctx->outlen = outlen;
91 * @outlen: length of output hash value in bytes, at most BLAKE2S_HASH_SIZE
95 static inline void blake2s_init(struct blake2s_ctx *ctx, size_t outlen)
97 __blake2s_init(ctx, outlen, NULL, 0);
103 * @outlen: length of output hash value in bytes, at most BLAKE2S_HASH_SIZE
109 static inline void blake2s_init_key(struct blake2s_ctx *ctx, size_t outlen,
112 WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE ||
115 __blake2s_init(ctx, outlen, key, keylen);
134 * @outlen that was passed to blake2s_init() or blake2s_init_key().
149 * @out: (output) the resulting BLAKE2s hash, with length @outlen
150 * @outlen: length of output hash value in bytes, at most BLAKE2S_HASH_SIZE
156 u8 *out, size_t outlen)
160 WARN_ON(IS_ENABLED(DEBUG) && ((!in && inlen > 0) || !out || !outlen ||
161 outlen > BLAKE2S_HASH_SIZE || keylen > BLAKE2S_KEY_SIZE ||
164 __blake2s_init(&ctx, outlen, key, keylen);