[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] Verifying Digital Signature



Hi,

My SignedData object contains no data(an explicit one), can IAIK-JCE
verify this kind of format?

I got SignatureException when I used the sample program in
demo.pkcs.TestContentInfo(method getSignedDataStream)

      X509Certificate signer_cert = signed_data.verify(i);

The PKCS#7 file is attached (signedData.txt)
Thanks in advance!
Pei-Wen Chen

MIIOdQYJKoZIhvcNAQcCoIIOZjCCDmICAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCDHswggMXMIICwaADAgECAhB84jHlwaK+fy6sWcozWj0cMA0GCSqGSIb3DQEBBAUAMIGnMQswCQYDVQQGEwJVUzEbMBkGA1UEChMSMDEtNzA0LTAxIFdhcnJhbnR5MTMwMQYDVQQLEyowMS03MDQtMDEgV2FycmFudHkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxRjBEBgNVBAMTPTAxLTcwNC0wMSBXYXJyYW50eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBJIExldmVsIDIgV2FycmFudHkwHhcNOTkxMTEyMDAwMDAwWhcNMDAwMjEwMjM1OTU5WjCBhjEYMBYGA1UEChQPQmFuayBvZiBBbWVyaWNhMRwwGgYDVQQLFBNMZXZlbCAyIFdhcnJhbnR5IENBMSEwHwYDVQQDExhKb2FjaGltIERhJyBIYWNrZXIgVmFuY2UxKTAnBgkqhkiG9w0BCQEWGmpvYWNoaW0udmFuY2VAbGl0cm9uaWMuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDFYIprZ2Op4QKqCYIIloWM/YIUtmdySah5WSy4cfB33IdPoQ1fWZuC3w8pI/GUKJV0p+zk+kf1UVUq/9JXWpJVriv00sLKBKnP75a6htPXhzWJ3nZiJPcNMt7Y418sIup3yjc+CvUPucR6fPfS5OAxW5X6Wj/kYHX0Em9GdQXHTQIDAQABo4GjMIGgMAwGA1UdEwEBAQQCMAAwCwYDVR0PBAQDAgWgMBMGCWCGSA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