具有包容规范化的XML数字签名
|
我正在尝试实现XML数字签名的例程,并且能够正确计算要签名的信息的哈希值。但是,由于我无法创建要签名的真实字符串,因此签名本身面临问题。
现在我有这个:
<SignedInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\">
<CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></CanonicalizationMethod>
<SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"></SignatureMethod>
<Reference URI=\"\">
<Transforms>
<Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"></Transform>
</Transforms>
<DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"></DigestMethod>
<DigestValue>eDSx9uS7oB++bnG/6tGiD/l8374=</DigestValue>
</Reference>
</SignedInfo>
仅使用CR而不是CRLF。缩进空间(帖子中显示标签之间有空格的地方,有CR)
有什么建议来计算有效签名吗?
P.D.我已将Canonicalization算法更改为EXCLUSIVE,并且可以使用,但要求使用INCLUSIVE。
非常感谢。
没有找到相关结果
已邀请:
1 个回复
臀博