1 Star 0 Fork 19

zhujianwei001 / libgcrypt

forked from src-openEuler / libgcrypt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libgcrypt-1.8.3-md-fips-enforce.patch 712 Bytes
一键复制 编辑 原始数据 按行查看 历史
yanan-rock 提交于 2020-08-30 23:27 . delete # of patch in spec
diff -up libgcrypt-1.8.3/cipher/md.c.fips-enforce libgcrypt-1.8.3/cipher/md.c
--- libgcrypt-1.8.3/cipher/md.c.fips-enforce 2017-11-23 19:16:58.000000000 +0100
+++ libgcrypt-1.8.3/cipher/md.c 2020-04-17 15:07:31.364945130 +0200
@@ -409,13 +409,10 @@ md_enable (gcry_md_hd_t hd, int algorith
}
- if (!err && algorithm == GCRY_MD_MD5 && fips_mode ())
+ if (!err && !spec->flags.fips && fips_mode ())
{
- _gcry_inactivate_fips_mode ("MD5 used");
if (_gcry_enforced_fips_mode () )
{
- /* We should never get to here because we do not register
- MD5 in enforced fips mode. But better throw an error. */
err = GPG_ERR_DIGEST_ALGO;
}
}
1
https://gitee.com/zhujianwei001/libgcrypt.git
git@gitee.com:zhujianwei001/libgcrypt.git
zhujianwei001
libgcrypt
libgcrypt
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891