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

[iaik-jce] Verify Signature



Hi again,
I´m still trying verify the signature generates with CAPICOM. Now, I´ve
another cuestion....
My sing don´t have any content (is explicit), and I MUST verify it, with the
original file. 
If I do this to my signedData:
"signedData.getSignerInfos()[0].getDigest(signedData.getCertificates()[0].ge
tPublicKey()); " Can I get the same result that if I call to
getMessageDigest()???

I ask you this cuestion cos I can do a messageDigest with the original file,
and also, the only that I can do with the sign file is to get the
encryptedDigest(). But, I can´t compare this two bytes[] cos they have
diferent length, the encryptedDigest has 35 bytes and the menssageDigest of
the original has 20 bytes.

Like always I attach you the two file for you to test it!!!

Thanks awards, again.



 <<firma.txt>>  <<original.txt>> 

Germán Iglesias Gómez
----------------------------------------------------------
TAO - grupo gedas
CC e-Projects
c/Villanueva, 13, 1ª Planta
28001   Madrid
Teléfono	+34 91 400 04 00
Fax	+34 91 400 04 36
Mailto:german.iglesias@tao.es
http://www.tao.es
----------------------------------------------------------

MIIFUgYJKoZIhvcNAQcCoIIFQzCCBT8CAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCBB8wggQbMIIDxaADAgECAgdNnMMAAAAFMA0GCSqGSIb3DQEBBAUAMIGLMQswCQYDVQQGEwJFUzEPMA0GA1UECBMGTWFkcmlkMQ8wDQYDVQQHEwZNYWRyaWQxEjAQBgNVBAoTCVRBTyBnZWRhczEWMBQGA1UECxMNQ0MgZS1wcm9qZWN0czEuMCwGA1UEAxMlTWljcm9zb2Z0IEludGVybmV0IEluZm9ybWF0aW9uIFNlcnZlcjAeFw0wMjA4MjExMTQ5NTFaFw0wMzA4MjExMTQ5NTFaMIGDMSUwIwYJKoZIhvcNAQkBFhZnZXJtYW4uaWdsZXNpYXNAdGFvLmVzMQswCQYDVQQGEwJFczEPMA0GA1UECBMGTWFkcmlkMQ8wDQYDVQQHEwZNYWRyaWQxDDAKBgNVBAoTA1RBTzEMMAoGA1UECxMDVEFPMQ8wDQYDVQQDEwZ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YXMxFjAUBgNVBAsTDUNDIGUtcHJvamVjdHMxLjAsBgNVBAMTJU1pY3Jvc29mdCBJbnRlcm5ldCBJbmZvcm1hdGlvbiBTZXJ2ZXICB02cwwAAAAUwCQYFKw4DAhoFADANBgkqhkiG9w0BAQEFAARATpGYILtYfLEcuu90QeoapHMsyd4GomV+Dw1VXvhu8clZkL7vICCPgBkxU3rc2+6f+1FQnPo6EUL0WtNWvL/0qA==
XML Spy 4.4

©Copyright 1998-2002 Altova GmbH & Altova, Inc.
All rights reserved.


REVISION HISTORY

Version 4.4 / 2002-05-24
Update Release adding several new features and enhancements:

   - Spell-Checker
   - Support for CALS and HTML tables in the XSLT Designer and Document Editor
   - Improved handling of tables and editing in the XSLT Designer
   - Support for DocBook editing in the Document Editor
   - Incorporates results from Web-Services Interoperability testing into SOAP Debugger
   - Updates xsl:fo support to final Recommendation
   - Many bug-fixes in the XSLT Designer, Document Editor, Schema editor, and Validator


Version 4.3 / 2002-02-11
Update Release adding these important new features and changes:

 + Suite
   + SOAP Debugger, which lets XML Spy act as a testing tool for Web Services (Suite-only feature)
     - supports .NET, J2EE, and all major web services platforms
     - allows XML Spy to intercept the communication between any SOAP/WebServices Client & Server
     - view all SOAP requests and responses in two windows
     - single-step through SOAP interactions between the SOAP client and a web service
     - modify requests or responses to dynamically test different scenarios
     - define breakpoints on any SOAP function and break on either request or response
     - define conditional breakpoints based on XPath statements
     - automatically interpret WSDL files and modify them on-the-fly for easy .NET client redirection

 + IDE
   + Enhanced Java support - XML Spy now directly supports all document types frequently used for
     Java development through built-in templates:
     - .css  Cascading Style Sheet Document
     - .jsp  Java Server Page
     - .tld  JSP 1.2 Tag Library Descriptor
     - .xml  EJB 2.0 Deployment Descriptor
     - .xml  J2EE 1.3 Application
     - .xml  J2EE 1.3 Applicaiton Client
     - .xml  J2EE Connector 1.0 Resource Adapter
     - .xml  Servlet 2.3 Deployment Descriptor
   - XPath Evaluator - new function to facilitate testing and debugging of XPath expressions in
     XSLT stylesheets or XML Schema Identity Constraints. Can be used in either Grid or Text
     View to visualize the resulting node set of any XPath expression. If the result is a list
     of nodes, each node can be highlighted in the grid or text views, by clicking on the node
     in the result list window.
   + Schema Editor
     - support for SQL Server 2000 Schema Extensions (for use with SQLXML 2.0)
     - selector and fields XPath expressions are now validated at design time
   - OpenURL Dialog: structure of WebDAV or FTP repository is now displayed as a tree
   - Project: new commands to add "external" folders (i.e. real directories from the file system,
     from a FTP server, or from a WebDAV repository) for direct browsing access from within XML Spy
   - Text View: auto-completion is now available for processing instructions <? ?> and for ASP
     and JSP style code fragments <% %>

 + Document Editor/Browser Plug-in
   - API has been extended, which allows programmers to control current selection
     and have control over multiple events, like key, mouse, drag&drop:
   + List of currently supported events:
     - ondragover
     - ondrop
     - onkeydown
     - onkeyup		
     - onkeypressed
     - onmousemove
     - onbuttonup		
     - onbuttondown
     - oncontextmenu
     - oneditpaste
     - oneditcut		
     - oneditcopy
     - oneditclear
     - onselectionchanged
   - Validator information about currently available objects (like in context menu)
   - Drop from plain text from external sources (applications) into current xml