ds:SignatureType

      ds:SignatureType的定义,在规范rfc3275中。

1、定义

2、Core Generation
      Refrence
      1. Apply the Transforms, as determined by the application, to the data object.
      2. Calculate the digest value over the resulting data object.
      3. Create a Reference element, including the (optional) identification of the data object, any (optional) transform elements, the digest algorithm and the DigestValue.
      简述之:用Transforms对data objects进行转换,对转换后的obj用DigestMethod计算其digest;将objId、transforms、DigestMethod、digest构成refrence。

      Signature
      1. Create SignedInfo element with SignatureMethod, CanonicalizationMethod and Reference(s).
      2. Canonicalize and then calculate the SignatureValue over SignedInfo based on algorithms specified in SignedInfo.
      3. Construct the Signature element that includes SignedInfo, Object(s) (if desired, encoding may be different than that used for signing), KeyInfo (if required), and SignatureValue.
      简述之:构造SignedInfo,对SignedInfo进行canonicalize再计算SignatureValue;将SignedInfo、Objects(不同于object data)、KeyInfo、SignatureValue构成signature element。

      总结:CanonicalizationMethod是作用于SignedInfo的;SignatureMethod是用canonicalize后的SignedInfo计算SignatureValue的;Transforms是转换object data的算法;DigestMethod是用transform后的obj data计算DigestValue的;

3、Core Validation
      Reference:
      1. Canonicalize the SignedInfo element based on the CanonicalizationMethod in SignedInfo.
      2. For each Reference in SignedInfo:
            2.1 Obtain the data object to be digested. (通过URI得到Obj,然后进行转换)
            2.2 Digest the resulting data object using the DigestMethod specified in its Reference specification.
            2.3 Compare the generated digest value against DigestValue in the SignedInfo Reference.
      简述之:先对SignedInfo进行Canonicalize,这个不懂,应该是为下面的Signature作准备;通过URI得到Object data,对其进行transform,再计算其digest,跟reference中的DigestValue进行比较。

      Signature:
      1. Obtain the keying information from KeyInfo or from an external source.
      2. Obtain the canonical form of the SignatureMethod using the CanonicalizationMethod and use the result (and previously obtained KeyInfo) to confirm the SignatureValue over the SignedInfo element.
      简述之:得到keying information,其可能在KeyInfo element也可能从外部得到;用keying infor、SignatureMethod、SignedInfo element验证SignatureValue。

      总结:Canonicalize感觉用的很乱。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值