Lines Matching refs:buf_len
33 size_t buf_len; member
54 ret->buf_len = ssh_digest_blocksize(ret->ictx); in ssh_hmac_start()
55 if ((ret->buf = calloc(1, ret->buf_len)) == NULL) in ssh_hmac_start()
71 if (klen <= ctx->buf_len) in ssh_hmac_init()
74 ctx->buf_len) < 0) in ssh_hmac_init()
76 for (i = 0; i < ctx->buf_len; i++) in ssh_hmac_init()
78 if (ssh_digest_update(ctx->ictx, ctx->buf, ctx->buf_len) < 0) in ssh_hmac_init()
80 for (i = 0; i < ctx->buf_len; i++) in ssh_hmac_init()
82 if (ssh_digest_update(ctx->octx, ctx->buf, ctx->buf_len) < 0) in ssh_hmac_init()
84 explicit_bzero(ctx->buf, ctx->buf_len); in ssh_hmac_init()
129 explicit_bzero(ctx->buf, ctx->buf_len); in ssh_hmac_free()