9 Star 0 Fork 15

src-openEuler/libkcapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Append-newline-to-stdout.patch 918 Bytes
一键复制 编辑 原始数据 按行查看 历史
yixiangzhike 提交于 2023-08-15 16:14 . Append newline to command sha256hmac
From 8776e34e11351265f6efde0db5ecddecac3ab217 Mon Sep 17 00:00:00 2001
From: yixiangzhike <[email protected]>
Date: Mon, 26 Jun 2023 22:22:15 +0800
Subject: [PATCH] Append newline to stdout
Append newline to stdout for printing hash may be a good experience.
Signed-off-by: yixiangzhike <[email protected]>
Signed-off-by: Stephan Mueller <[email protected]>
---
apps/kcapi-hasher.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/apps/kcapi-hasher.c b/apps/kcapi-hasher.c
index 7c53f90..fd60536 100644
--- a/apps/kcapi-hasher.c
+++ b/apps/kcapi-hasher.c
@@ -905,12 +905,14 @@ int main(int argc, char *argv[])
.bsd_style = 0,
.hashlen = 0,
.key = KEY_FIPSCHECK,
+ .newline = 1,
};
const struct hash_params PARAMS_SELF_HMACCALC = {
.name = NAMES_SHA512[1],
.bsd_style = 0,
.hashlen = 0,
.key = KEY_HMACCALC,
+ .newline = 1,
};
basec = strdup(argv[0]);
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/libkcapi.git
[email protected]:src-openeuler/libkcapi.git
src-openeuler
libkcapi
libkcapi
master

搜索帮助