关于组装的简单问题 [英] Simple question on assembly

查看:63
本文介绍了关于组装的简单问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的大会名字不强,也就是说我不使用公钥/私钥对对其进行签名.
那么为什么还要在清单中还显示哈希算法名称0x00008004.
(我在ILDASM工具中看到了此信息.)
非常感谢............

My assembly which does not have strong name.That is i not sign it bu using public/private key pair.
So why then also in manifest it shows hash algorithm name 0x00008004.
(I see this information in ILDASM tool.)
Thanks So Much to reply in advanced............

推荐答案

是的,你是对的. 0x00008004对应于CALG_SHA

hash:此指令告诉VSE我们正在使用哪种哈希算法来实现安全性.数字0x00008004表示使用默认的SHA1实现散列.所有程序集都必须使用此相同算法来实现哈希.
ver:程序集的版本号,指定为四个32位整数,并带有冒号:".分隔它们(00:00:00:00).这四个整数表示主要版本号,次要版本号,内部版本和修订版本号.



根据ECMA规范,SHA-1是默认的哈希算法.如果
您未指定哈希算法,编译器将默认设置为
你.如果您是手动编写IL代码并且不指定哈希值
我认为不会使用一种算法,但是我可能是错的.
Yes, you are right. 0x00008004 corresponds to CALG_SHA

hash: This directive tell VSE which hashing algorithm we are using to implement security. Number 0x00008004 means hashing is implemented using SHA1 which is default. All assemblies have to implement hashing using this same algorithm.
ver: The version number of the assembly, specified as four 32-bit integers with colon ":" separating them (00:00:00:00). These four integers represent major version number, minor version, build and revision number.



According to ECMA specifications, SHA-1 is the default hash algorithm. If
you don''t specify the hash algorithm the compiler would put the default for
you. If you are manually writing IL code and don''t specify the hash
algorithm I don''t think one would be used, but I could be wrong.


这篇关于关于组装的简单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆