JAR规范使用PKCS7标准签名消息

PKCS #7(加密消息语法标准) 格式允许将证书及证书路径中的所有证书从一台计算机传输到另一台计算机或可移动媒体。PKCS #7 文件通常使用 .p7b 扩展且与 ITU-T X.509 标准兼容。PKCS #7 允许一些属性(例如,反签名)与签名相关,而一些属性(例如,签名时间)可与消息内容一起验证。

JAR规范: http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html,其中关于.RSA,.DSA文件的描述:

Digital Signatures

A digital signature is a signed version of the .SF signature file. These are binary files not intended to be interpreted by humans.

Digital signature files have the same filenames as the .SF files but different extensions. The extension varies depending on the type of digital signature.

.RSA      (PKCS7 signature, MD5 + RSA)
.DSA      (PKCS7 signature, DSA)
可以看到,JAR标准使用了PKCS #7存储加密消息.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17131144/viewspace-592240/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/17131144/viewspace-592240/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值