Re: Java XMLSec 1.4.2 Release

2008-03-12 Thread Vishal Mahajan
Regarding 40897 (String comparisons using '==' causes validation errors with some parsers): There are a few additional minor changes required to complete the fix. ElementCheckerImpl.FullChecker needs to override the isNamespaceElement() method (see attached diff). Plus there's at least one an

Can't compile using JDK1.4

2008-03-11 Thread Vishal Mahajan
There are quite a few JDK1.5 specific classes / features being used currently like use of StringBuilder class, String.contains() method, etc. Vishal

Re: Changes in ElementProxy

2008-01-08 Thread Vishal Mahajan
Hi Raul, I have attached a couple of diffs that would also be required, without which my tests fail. I am doing some more testing and will let you know if I find anything more. Thanks! Vishal on 1/2/2008 3:15 AM Raul Benito wrote: Hello everybody and happy 2008, I wish that this new year I

Re: Decryption fails on receiving host, but not on local - pointers?

2007-11-13 Thread Vishal Mahajan
I have attached another instance of this string comparison problem that was reported on wss4j list sometime back. The work-around is of course to explicitly make sure that all standard namespace strings are interned before messages are parsed. Vishal on 11/08/2007 8:16 PM Sean Mullan wrote:

Re: About Wrap Key

2007-09-26 Thread Vishal Mahajan
When using TripleDES the resulting cipher text is prefixed by an Initialization Vector (IV) which is probably different for the two different wrap operations. Did you try and unwrap/decrypt the wrapped key in the two cases and see if that results back in the same key? Vishal on 09/26/2007 5:36 PM

Re: 1.4.1Beta1 Release

2007-04-10 Thread Vishal Mahajan
ing. I want to take out all the comparisons with namespaces and let the API user to decide how lax he wants to be with the strictness of the elements. He can disable namespace checking altogether or do it with == or equals() I will post my ideas for discussing when I finish with 1.4 release. On 11/5/06, V

Re: Issue moving from JDK 1.4 to 1.5

2007-01-11 Thread Vishal Mahajan
2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"; ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier";> Xeg55vRyK3ZhAEhEf+YT0z986L0= Pete Vishal Maha

Re: Issue moving from JDK 1.4 to 1.5

2007-01-10 Thread Vishal Mahajan
Problem seems to be in this line: final SecretKey unwrappedKey = (SecretKey)cipher.decryptKey(encryptedKey, XMLCipher.RSA_v1dot5); The second parameter to decryptKey method needs to be the symmetric key algorithm. Vishal Peter Hendry wrote: Sorry, I forgot the error produced in JDK 1.5 O

Re: [Possible SPAM] Re: VOTE C++ 1.3.1 release

2006-11-28 Thread Vishal Mahajan
+1 from me. Berin Lautenbach wrote: Hi all - so far it's Dims and me. I need one more to make it official Cheers, Berin Davanum Srinivas wrote: +1 On 11/19/06, Berin Lautenbach <[EMAIL PROTECTED]> wrote: Hi all, I want to do a cut of the C++ library with the new build process a

Re: PATCH: String Comparison in ElementProxy

2006-11-05 Thread Vishal Mahajan
equals seems safer and should be comparable performance I would think. But maybe I'm missing something? --Sean Vishal Mahajan wrote: > Do others also have views on this discussion? > > Thanks, > Vishal > > Vishal Mahajan wrote: >> Hi Raul, >> >> The parse

Re: PATCH: String Comparison in ElementProxy

2006-10-04 Thread Vishal Mahajan
Do others also have views on this discussion? Thanks, Vishal Vishal Mahajan wrote: Hi Raul, The parser that I am working with clearly doesn't intern element namespace strings which is the reason I ran into this problem. And actually I am not sure whether it's a good idea for a

Re: PATCH: String Comparison in ElementProxy

2006-10-04 Thread Vishal Mahajan
I think will be the last resort. Regards, Raul On 10/2/06, Vishal Mahajan <[EMAIL PROTECTED]> wrote: Any signature verification was failing for me, and I have a different DOM implementation in my environment, so probably you are right. It was such a basic error that it had to be something like

Re: PATCH: String Comparison in ElementProxy

2006-10-02 Thread Vishal Mahajan
There are few more similar occurrences that I found (patch attached) that should be fixed. Vishal Vishal Mahajan wrote: Any signature verification was failing for me, and I have a different DOM implementation in my environment, so probably you are right. It was such a basic error that it had

Re: Compile Error Fix

2006-10-02 Thread Vishal Mahajan
I am compiling with 1.4. I think String.contains() was introduced only in 1.5. Vishal Raul Benito wrote: Hi Vishal, Nice to see you again. We need to take a look to your karma. Regarding this problem are you compiling with 1.3? Regards, On 10/2/06, Vishal Mahajan <[EMAIL PROTECTED]>

Re: PATCH: String Comparison in ElementProxy

2006-10-02 Thread Vishal Mahajan
Vishal, The namespaces strings are intern, at least in xerces. Can you post the code that is failing? On 10/2/06, Vishal Mahajan <[EMAIL PROTECTED]> wrote: This problem was not allowing successful creation of signature space elements. Fix attached. Vishal Index: ElementProx

PATCH: String Comparison in ElementProxy

2006-10-02 Thread Vishal Mahajan
This problem was not allowing successful creation of signature space elements. Fix attached. Vishal Index: ElementProxy.java === --- ElementProxy.java (revision 451991) +++ ElementProxy.java (working copy) @@ -281,7 +281,7 @@

Compile Error Fix

2006-10-02 Thread Vishal Mahajan
I don't seem to have the commit access in svn, and it has been long period of inactivity on the list for me. Anyways, attached is a small compile error fix in the project main branch. Vishal Index: org/apache/xml/security/transforms/implementations/TransformXPath.java =

Re: AW: Re: how to specify JCE provider for XML encryption

2005-11-06 Thread Vishal Mahajan
Depends on the Sun JDK version being used. AFAIK, 1.4.2 does not support both DESede/CBC/ISO10126Padding or RSA/ECB/PKCS1Padding, but 1.5 does. Regarding instantiating XMLCipher (for performing XML encryption) for a given algorithm and provider combination XMLCipher.getProviderInstance(algorit

Re: [VOTE] xml-sec java 1.3RC2 to final release?

2005-10-07 Thread Vishal Mahajan
+1. Raul Benito wrote: Well, lets check the items for doing a release -RC done a announced ... Done -Not new Bugs in Bugzilla for about a week...Done. -People not sending death threats because of the RC...Done -More than week without traffic in security list...Done -Vote called and agree..

Re: Using XMLSecurity with a JCA provider other than default one

2005-09-27 Thread Vishal Mahajan
seems to be a bug in the sun jarverifier (I use the JRE 1.3 and 1.4). So I thought that JCEMapper.setProviderId() method would save me ! -Message d'origine- De : Vishal Mahajan [mailto:[EMAIL PROTECTED] Envoyé : mardi 27 septembre 2005 11:51 À : security-dev@xml.apache.org Objet

Re: Using XMLSecurity with a JCA provider other than default one

2005-09-27 Thread Vishal Mahajan
Did you try using the Security.insertProviderAt method? Vishal Julien TAUPIN wrote: I thought that the only way to use my own JCA provider was to place it at the first place of the providers with the following code : Provider[] providers = Security.getProviders(); for(int i=0; i

Re: [VOTE] xml-sec java 1.3 release?

2005-09-14 Thread Vishal Mahajan
sense to test the final bits as much as possible before they are released. What are the guidelines? I don't necessarily think we need to cut an RC2, but we should at least build an xmlsec.jar and make it available for testing. --Sean Vishal Mahajan wrote: Vishal Mahajan wrote: Rau

Re: [VOTE] xml-sec java 1.3 release?

2005-09-14 Thread Vishal Mahajan
Vishal Mahajan wrote: Raul, I have filed three bugs (with suggested patches) - 36638, 36639, and 36640, which I found recently. I'll check-in the fix for each of these tomorrow Done with the fixes. Regards, Vishal and after that it's +1 from me. Regards, Vishal Raul Be

Re: [VOTE] xml-sec java 1.3 release?

2005-09-13 Thread Vishal Mahajan
Raul, I have filed three bugs (with suggested patches) - 36638, 36639, and 36640, which I found recently. I'll check-in the fix for each of these tomorrow and after that it's +1 from me. Regards, Vishal Raul Benito wrote: Sorry for the delay calling a vote but I've been really busy with m

Re: AW: Using hardware provider for signing

2005-09-07 Thread Vishal Mahajan
nt to use a hardware provider i still need to configure it in config.xml, right? Where is the difference in how to integrate a hardware provider? Jan -Ursprüngliche Nachricht- Von: Vishal Mahajan [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 7. September 2005 17:21 An: securit

Re: Using hardware provider for signing

2005-09-07 Thread Vishal Mahajan
config.xml. But this approach lacks some flexibility. In my setup i want to be able to switch between a software and a hardware provider for signing with rsa-sha1. In a posting from 2004 i read about a patch by Vishal Mahajan that eliminates the need for configuring providers in config.xml. Is

Re: padding error

2005-09-05 Thread Vishal Mahajan
Did you add an entry like the following to the "jre/lib/security/java.security" file before running the sample? security.provider.=org.bouncycastle.jce.provider.BouncyCastleProvider Vishal [EMAIL PROTECTED] wrote: Hi, I'm hoping someone can help me with this error. I get the following ou

Re: [Java] C14N of DocumentFragment

2005-07-26 Thread Vishal Mahajan
child. Thanks, Vishal so i can test it and include to the testsuite for the future. Regards Raul On 7/24/05, Vishal Mahajan <[EMAIL PROTECTED]> wrote: I observed a possible bug in the CanonicalizerBase class. If the node passed to method canonicalizeSubTree(Node, NameSpaceSymbTable)

[Java] C14N of DocumentFragment

2005-07-24 Thread Vishal Mahajan
I observed a possible bug in the CanonicalizerBase class. If the node passed to method canonicalizeSubTree(Node, NameSpaceSymbTable) is of type DocumentFragment, currently an exception is thrown. I think the behavior in such a case should be same as that for a Document type node. Just wanted to

Re: failed unit tests

2005-06-23 Thread Vishal Mahajan
Try getting the "JCE Unlimited Strength Jurisdiction Policy Files" from http://java.sun.com/j2se/1.5.0/download.jsp. Vishal Gilbert Pilz wrote: Hi, I just downloaded the Java version of XML Security 1.2.1, built it under Eclipse and ran the unit tests. The following tests failed: org.apac

Re: About XML Decryption

2005-04-13 Thread Vishal Mahajan
In your encryption code you are using XMLCipher.TRIPLEDES for key encryption, try using XMLCipher.TRIPLEDES_KeyWrap instead. I am not sure if it'll fix your problem but it's worth a try. Vishal anshuk pal chaudhuri wrote: Vishal, Did you find any solution to the problem of XML Decryption?? Pleas

Re: .NET and Apache Java Interoperability

2005-04-13 Thread Vishal Mahajan
/details.aspx?FamilyId=1BA1F631-C3E7-420A-BC1E-EF18BAB66122&displaylang=en) -- dims On 4/13/05, Vishal Mahajan <[EMAIL PROTECTED]> wrote: Okay, the WSE problem is kind of weird. When you assign "wsu:Id" to the soap body, WSE fails to verify its own signed message!, so I don&#

Re: .NET and Apache Java Interoperability

2005-04-13 Thread Vishal Mahajan
wrote: Vishal, what's the problem u are having with WSE? thanks, dims On 4/13/05, Vishal Mahajan <[EMAIL PROTECTED]> wrote: After more investigation I feel that the Java library is fine. Even though I'm still having some WS-Security issues, they mainly seem to be on the WSE2 side,

Re: .NET and Apache Java Interoperability

2005-04-13 Thread Vishal Mahajan
After more investigation I feel that the Java library is fine. Even though I'm still having some WS-Security issues, they mainly seem to be on the WSE2 side, which I'll try raising on some .NET forum. Thanks, Vishal Vishal Mahajan wrote: Yes it shows in my email also, but the actua

Re: .NET and Apache Java Interoperability

2005-04-11 Thread Vishal Mahajan
it something in my email, but you can take a look there. Regards, On Apr 11, 2005 9:12 PM, *Vishal Mahajan* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I've attached the soap document signed by .NET (interop_dotnet_sig.xml) and the certificate (apcert1.cer) t

Re: .NET and Apache Java Interoperability

2005-04-11 Thread Vishal Mahajan
attached) needs to be registered with the library. Vishal Raul Benito wrote: Hi Vishal, can you post the document? On Apr 11, 2005 11:22 AM, Vishal Mahajan <[EMAIL PROTECTED]> wrote: I know this topic has been raised earlier on the list. I would like to know if someone has got

.NET and Apache Java Interoperability

2005-04-11 Thread Vishal Mahajan
I know this topic has been raised earlier on the list. I would like to know if someone has got Apache xml-security-J interoperating with the .NET (Microsoft WSE)? I've been trying to debug this for quite some while now without much success. The reference validation seems to be failing. The stra

Re: Regarding XML Decryption

2005-04-11 Thread Vishal Mahajan
Apologies for a delayed response. Actually your problem looks quite strange to me. Did you try using doFinal method on the XMLCipher instance rather than the decryptToByteArray method? Also is the encryption sample working for you out of the box (without any changes)? Vishal anshuk pal chaudhur

Re: Problem in XML Decryption

2005-04-07 Thread Vishal Mahajan
Can you send the encrypted document you're trying to decrypt. Vishal anshuk pal chaudhuri wrote: I am having a problem in XML decryption. My XML Encryption(element's content) is running absolutely fine. While Decrypting I am getting an error " XMLCipher::decryptElement called without a key and unab

Re: Validating certificates

2005-03-31 Thread Vishal Mahajan
For validating certificates, instead of writing your own code for locating the issuer certificate try using the java.security.cert.CertPathBuilder API. It helps building the certificate path from the given certificate to its root CA. Vishal Kenneth Jensen wrote: Hey guys, I am working on an X

Re: VOTE: Sean Mullan as committer

2005-03-12 Thread Vishal Mahajan
Raul Benito wrote: I want to proposse Sean Mullan as committer for xml-security-java: First of all, He has been active on the list helping people and finding bugs and reporting them in bugzilla and (most important) propossing solutions. And mainly, he is a JSR 105 expert and one that has help impl

Re: XMLCipher - provider

2005-03-10 Thread Vishal Mahajan
Are you looking for using the same provider that is passed to the first XMLCipher instance (through the getProviderInstance call) in the key decryption as well? If yes, then I think we make a change and pass the same provider name to the EncryptedKeyResolver. Vishal Samuel Misecka wrote: Hi, I

Re: [VOTE] Java xml security library 1.2.1

2005-02-23 Thread Vishal Mahajan
4n a nodeset without circumbentBug it first. Regards, Raul On Wed, 23 Feb 2005 16:03:44 +0530, Vishal Mahajan <[EMAIL PROTECTED]> wrote: Hi Raul, There's a unit test failing - NameSpaceSymbTableTest.testUnrederedNodes. Do we want to fix it for 1.2.1? Th

Re: [VOTE] Java xml security library 1.2.1

2005-02-23 Thread Vishal Mahajan
Hi Raul, There's a unit test failing - NameSpaceSymbTableTest.testUnrederedNodes. Do we want to fix it for 1.2.1? Thanks, Vishal Raul Benito wrote: Shall we release the 1.2.1 version from v1_2_1j label from CVS(Changelog bellow)? [ ] +1, Yes [ ] +0, Don't know [ ] -1. No. Regards, Raul

Re: Namespace problem

2005-02-18 Thread Vishal Mahajan
Hi Prakasa, This happens because the encryption code internally uses a canonicalization-based serializer. During canonicalization the namespace attributes are cascaded down the root node. Vishal Prakasa Nedunuri wrote: Hi,   I am trying to encrypt and decrypt SOAP body using xmlsec library.

Re: URGENT:asymmetric key encryption

2005-02-01 Thread Vishal Mahajan
You can use an asymmetric key (e.g, a public key) for encrypting a symmetric key (which in turn could be used for encrypting data). Please refer the encryptKey method in the XMLCipher class. Vishal David Han wrote: Hi Does xml-security-1_2_0 API support asymmetric key encryption? If yes, where I

Re: [VOTE] Milan Tomic as committer

2005-01-20 Thread Vishal Mahajan
Berin Lautenbach wrote: Peoples, I would like to propose Milan as a committer for xml-security-c. +1 from me. Vishal He has helped me a large amount over the last 12 months (and more) to identify bugs and issues within the library, both in terms of discovering and reporting bugs as well as pro

Re: DISCUSSION: ANNOUNCE: Apache-XML-Security-J 1.2 Library Released

2004-12-13 Thread Vishal Mahajan
Raul Benito wrote: What do you all think about this: Should I send it to the [EMAIL PROTECTED] Sounds fine to me. Thanks, Vishal Does it need some rework? Right now I have received from berin +1 to the txt only version Regards, Raul http://r-bg.com - The Apache XML Security Team is pro

Re: Possible bug in XMLCypher.java?

2004-11-12 Thread Vishal Mahajan
You are right. This is a bug. It has been fixed now. Thanks, Vishal Anton Krasovsky wrote: Hello, when trying to decrypt document that has element, I get an NumberFormatException at XMLCypher.newEncryptionMethod() line 2502 I think instead of: if (null != keySizeElement) { result.setKeySize(

Re: [GUMP@brutus]: Project xml-security (in module xml-security) failed

2004-10-25 Thread Vishal Mahajan
Raul Benito wrote: Why is this a failure? I thought the patch raul did simply gave an informational message? I have test it with the HEAD of xalan and I haven't found any problem(the exception is logged and everything keep running), so it could be some weird thing with gump environment. Anywa

Re: [java] config.xml and JCA/JCE provider issues

2004-10-06 Thread Vishal Mahajan
I'll go ahead and check-in the patch. Vishal Berin Lautenbach wrote: Sounds like a good thing to me! Vishal Mahajan wrote: I would like to hear what other members on the list think about going for this change. Vishal Davanum Srinivas wrote: Vishal, +1 from me. thanks, dims On Tue, 05 Oct 20

Re: [java] config.xml and JCA/JCE provider issues

2004-10-05 Thread Vishal Mahajan
I would like to hear what other members on the list think about going for this change. Vishal Davanum Srinivas wrote: Vishal, +1 from me. thanks, dims On Tue, 05 Oct 2004 04:40:46 +, Vishal Mahajan <[EMAIL PROTECTED]> wrote: All: Based on Sean's proposal I have prepared a patc

FYI: [Fwd: Re: [dev-crypto] Non-standard oaep Padding Name]

2004-10-05 Thread Vishal Mahajan
WithSHA1AndMGF1Padding","RSA/OAEP"); or if you have a compliance issue stick with OAEPWithSHA1AndMGF1Padding in the other provider and everything should behave. The new naming conventions will be available in the next release. We will continue to support "OAEPPadding" as wel

Re: Problem of retrieving signature element using XPath expression ha ving different namespaces

2004-10-04 Thread Vishal Mahajan
Yvan, Please see inline ... Hess Yvan wrote: Hi, I have a problem to retrieve the Signature element of my signed XML document using XPath expression. My document looks like that: http://www.imtf.com/e-document/dcmi"; xmlns:edoc="http://www.imtf.com/e-document"; xmlns:xsi="http://www.w3.org/2001/XM

Re: Issues with Encryption Sample

2004-10-02 Thread Vishal Mahajan
Berin, Your fix has fixed this problem of duplicate data being outputted on decryption. :-) Thanks, Vishal Vishal Mahajan wrote: 2) This seems to be a regression in xml-security. Using (JDK1.4.2 + BC) OR JDK1.5, the result of decryption in the sample seems incorrect. The input to be encrypted

Issues with Encryption Sample

2004-10-02 Thread Vishal Mahajan
All, There a couple of issues with encryption sample - 1) With JDK 1.5, if you use the latest version of BC above SunJCE in java.security, the encryption sample fails to decrypt with the exception below. Also, 8 errors are observed while running encryption unit tests with this setup. I would gue

Re: [java & c++] interoperability & encryption

2004-10-01 Thread Vishal Mahajan
What's the error observed? Vishal Milan Tomic wrote: [java & c++] interoperability & encryption Hi,     I'm having problems with Apache XSEC Java & C++ interoperability when using encryption. When I encrypt some XML node in Java I can't decrypt it using C++ libraries, and

Re: Version 1.2

2004-09-23 Thread Vishal Mahajan
Berin Lautenbach wrote: Hey all, Raul suggested recently that we do a 1.2 release of the Java library. I think that's a great idea - there are a lot of fixes and improvements that have been done that would make good sense. I'd also like to do a release of the C library - I have a fairly functi

Re: problem trying to run the Encrypter sample java program

2004-08-26 Thread Vishal Mahajan
Looks like you're missing a JCE provider in your JRE that provides support for the DES key-wrap algorithm. Vishal Earnie Dyke wrote: Greetings all!   I am trying to run the Encrypter sample java program and am receiving the following error:   org.apache.xml.security.encryptio

Re: How to encrypt SOAP messages using JWSDP & XML Security.

2004-08-22 Thread Vishal Mahajan
Kim Hyung wrote: > > Hello, > I have built a rpc-based web services system using JWSDP 1.1 JWSDP 1.1 sounds very old. JWSDP 1.4 is out and you might want to give it a try. It provides a security plugin for the wscompile tool. For details about the technology, see http://java.sun.com/webservices/d

Re: [Java] Problem in config.xml with multiple provider entries

2004-08-10 Thread Vishal Mahajan
rsion, which is awkward. Vishal Mahajan has a fix for this problem and will be putting it back soon. --Sean

Re: Puzzled with xml encryption

2004-08-10 Thread Vishal Mahajan
Carpe Sebastien wrote: This is a newbie question on xml-security usage. If i'm targetting the wrong list, please redirect me and forgive me the buzz. The wholme project is java. I'm using xmlsec-1.1.0, xerces 2.6.2, and the last bouncy-castle (downloaded yesterday - Aug, 9th) Here is what i'd li

Encryption Unit Test Failures

2004-08-09 Thread Vishal Mahajan
Some encryption unit tests are not passing on the head branch. I wanted to make sure that I am not the only one observing this. Details follow: [junit] Running org.apache.xml.security.test.encryption.BaltimoreEncTest [junit] Tests run: 10, Failures: 0, Errors: 5, Time elapsed: 7.176 sec

Re: How to decrypt AES encryption

2004-07-23 Thread Vishal Mahajan
Sean Mullan wrote: Vishal Mahajan wrote: Dominik Schadow wrote: Yes, I tried the following code: SecretKeySpec keySpec = new SecretKeySpec(JavaUtils.getBytesFromFile(keyFile), algorithm); SecretKey key = skf.generateSecret(keySpec); The exception I receive is

Re: How to decrypt AES encryption

2004-07-22 Thread Vishal Mahajan
Dominik Schadow wrote: Yes, I tried the following code: SecretKeySpec keySpec = new SecretKeySpec(JavaUtils.getBytesFromFile(keyFile), algorithm); SecretKey key = skf.generateSecret(keySpec); The exception I receive is java.security.NoSuchAlgorithmException: AES not found at javax.crypto.S

Re: How to decrypt AES encryption

2004-07-20 Thread Vishal Mahajan
Dominik Schadow wrote: Hello, how can I decrypt an AES encrypted XML-document? I understand how to do it with DESede: File kekFile = new File(keyFile); DESedeKeySpec keySpec = new DESedeKeySpec(JavaUtils.getBytesFromFile(keyFile)); SecretKeyFactory skf = SecretKeyFactory.getInstance(“DESed

Re: Problem with c14n

2004-06-23 Thread Vishal Mahajan
The fix looks good. All tests pass including the one that reproduced the problem. I have checked-it-in. Thanks, Vishal Raul Benito wrote: > > Vishal Mahajan wrote: > > >Attached is the testcase that shows the problem. I'll check-in the test into the > >work

Re: "ant test" using JDK15 without extra Xalan jar

2004-06-22 Thread Vishal Mahajan
Dims, Davanum Srinivas wrote: > > Vishal, > > I was thinking about the xalan dependency and noticed that JDK15 has > xalan under com.sun.apache.*...Are u planning to take a stab at being > able to run "ant test" using JDK15 without extra Xalan jar I am caught up in some other work this week. Ne

Re: Problem with c14n

2004-06-21 Thread Vishal Mahajan
terop tests that can > replicate the problem. > > Cheers, > Berin > > Vishal Mahajan wrote: > > > All, > > > > In the Java Library, I observe a couple of things whose combined result > > seems to be erroneous. > > > > Consider the

Problem with c14n

2004-06-18 Thread Vishal Mahajan
All, In the Java Library, I observe a couple of things whose combined result seems to be erroneous. Consider the following example document - text1 text2 Also assume that the dom representation of this document as - A DOM element named "foo" having two child text nodes - "text1" and "\ntext2".

Re: Nomination of new committers

2004-06-15 Thread Vishal Mahajan
+1 for both Raul and Dims. Vishal Berin Lautenbach wrote: Peoples, This has taken me *way* too long to do. My only excuse is I've been completely sidetracked building a skeleton engine for an XKMS server. Been keeping me highly amused ;>. I'd like to nominate Dims and Raul as committers to [EMA

Re: XMLEncryptionException: Padding: ISO10126PADDING not implemented

2004-06-11 Thread Vishal Mahajan
Dominik Schadow wrote: Vishal, Thanks for your answer. I upgraded to the lastet Bouncy Castle jar (bc-jce-jdk13-123.jar). Nothing changed, same exception (ISO10126PADDING not implemented). The bc-jar file is located in jre_home/lib/endorsed. /lib/ext doesn't work as well as in the jdk_hom

Re: XMLEncryptionException: Padding: ISO10126PADDING not implemented

2004-06-10 Thread Vishal Mahajan
Dominik Schadow wrote: Hello, I always get a n org.apache.xml.security.encryption.XMLEncryptionException: Padding: ISO10126PADDING not implemented exception when I try to create a XMLCipher xmlCipher = XMLCipher.getInstance(XMLCipher.AES_128); It doesn't matter which algorithm I use here. Always

Tag for 1_1_0 Release

2004-06-10 Thread Vishal Mahajan
Which is the tag corresponding to 1_1_0 release? Thanks in advance, Vishal

[Patch] build.src.jar target in build.xml

2004-06-09 Thread Vishal Mahajan
All, I felt it would be useful to have a target that builds only the src jar. The "build.jar" target that we have, builds the test and sample jars also. I propose the attached patch which introduces a new target - "build.src.jar". The patch factors out the manifest task in a "manifest" target, w

Re: Bug in ElementProxy.java

2004-06-09 Thread Vishal Mahajan
Hi Raul, [EMAIL PROTECTED] wrote: I observed a regression in the ElementProxy.getTextFromChildElement() method. I've attached the patch for the bug. I just wanted to get a second word before I check it in. Thanks, Vishal Thanks Vishal, I've forgot a the getFirstChild()

Bug in ElementProxy.java

2004-06-08 Thread Vishal Mahajan
I observed a regression in the ElementProxy.getTextFromChildElement() method. I've attached the patch for the bug. I just wanted to get a second word before I check it in. Thanks, Vishal Index: ElementProxy.java === RCS file: /home/c

Re: AW: AW: Question on c14n exclusive

2004-05-27 Thread Vishal Mahajan
Dittmann, There's another approach you can try:     - Canonicalize once.     - Create a document (again) out of the c14n output.     - Serialize the document and in the process add xmlns="" at the desired place. Note that the last step of this procedure is not a c14n step. Good Luck! :-)

Re: Problem with verification of .NET signed XML

2004-04-03 Thread Vishal Mahajan
n the interop tests :>. I'm trying to package up and do dox for 1.1 this weekend, but the first thing I want to do after 1.1 is attempt to implement something similar to what is used in the C library to only temporarily add the namespaces that are required. Cheers, Berin Vishal Ma

Re: Problem with verification of .NET signed XML

2004-04-02 Thread Vishal Mahajan
yyappan Gandhirajan - Office: 91.80.2225.1554 Extn 1472 Mobile: 91.94483.14969 E-Mail: [EMAIL PROTECTED] --- -Original Message- From: Vishal Mahajan [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 6:55 PM T

Re: [Fwd: RE: New Incubee]

2004-03-31 Thread Vishal Mahajan
Erwin van der Koogh wrote: OK - I really want to wind this up. (Sometimes things just seem too difficult :>.) Do we want to do the hard yards for JuiCE and contact the current users or the name? There's only 2 that we could find. Sending an email to them can't seem to hurt. Give them a couple d

Re: Problem with verification of .NET signed XML

2004-03-31 Thread Vishal Mahajan
I think (I am not sure) that this might be happening because of the namespace attributes cascading that's done by apache dsig library on the xml document. This, combined with the fact that there's no canonicalization transform inside the signed-info-reference (ds:Reference) might be resulting i

Re: Significance of 'baseURI' in XMLSignature constructor/Signing issues

2004-03-30 Thread Vishal Mahajan
Hi Peter, pacow wrote: also, I have attached a copy of my SOAP request. i add a reference in the signature to '#Body', do i then need to add an id='Body' attribute to the soap:Body tag, or elsewhere? Yes, you would need to add an attribute to the soap:Body element. Adding SOAP-SEC:id="Body" att

Very High Logging Level In XMLCipher

2004-03-23 Thread Vishal Mahajan
The XMLCipher.loadEncryptedKey(Document, Element) has a very high logging level. If the _cipherMode is not in UNWRAP_MODE or DECRYPT_MODE an error is logged, something like: "XMLCipher unexpectedly not in UNWRAP_MODE or DECRYPT_MODE..." I think this is not OK as loadEncryptedKey() is a like

Re: What's the Difference

2004-03-04 Thread Vishal Mahajan
ing a key" :-\ ? Thanks, Vishal Ax/ Vishal Mahajan wrote: All, Can someone explain what's the difference between the following two ways of initializing the javax.crypto.Cipher class for encrypting a symmetric key: 1) Cipher.init(WRAP_MODE, RSAPublicKey) 2) Cipher.init(ENCRYPT_

What's the Difference

2004-03-04 Thread Vishal Mahajan
All, Can someone explain what's the difference between the following two ways of initializing the javax.crypto.Cipher class for encrypting a symmetric key: 1) Cipher.init(WRAP_MODE, RSAPublicKey) 2) Cipher.init(ENCRYPT_MODE, RSAPublicKey) I observe that XMLCipher.encryptKey() method always in

Re: [Patch] build-ant1.5.xml

2004-03-02 Thread Vishal Mahajan
Yes it has been done. :-) Thanks, Vishal Berin Lautenbach wrote: Vishal, I just went to apply this, and it looks like it might have already been done by Axl, a few days before this e-mail?? Could you just confirm for me? Cheers, Berin Vishal Mahajan wrote: Hi All, Please find attached

Re: going from signing xml file with DTD to signing xml file with Schema

2004-02-25 Thread Vishal Mahajan
asn't changed, as the application *may* have changed the underlying DOM tree, so throwing away the work after every operation is not as wasteful as it sounds. What do others think? Cheers, Berin Vishal Mahajan wrote: We can probably use the following approach for cascading the namesp

Re: [PATCH] Martialing ReferenceList

2004-02-22 Thread Vishal Mahajan
e interesting output. Cheers, Berin Vishal Mahajan wrote: Axl, I had run the test target before sending the patch. There was no difference in the results with my patch, though there were some tests already failing. Here's their description: [junit] Running org.apache.xml.securi

Re: going from signing xml file with DTD to signing xml file with Schema

2004-02-22 Thread Vishal Mahajan
We can probably use the following approach for cascading the namespace attributes and at the same time not modifying the original document -- 1) Let X be the element selected for signing/verification. 2) Find the set of namespaces attributes that need to be added to X by traversing up the tree s

Re: [PATCH] Martialing ReferenceList

2004-02-20 Thread Vishal Mahajan
ishal Mahajan wrote: Correction, I sent out Reference.java instead of ReferenceList.java :-P (Please find it attached now). - Vishal Vishal Mahajan wrote: All, I observed that there were some TODO items in XMLCipher.java. Some of them were related to martialing of KeyInfo and ReferenceList. I

Re: Adding a signature to a SOAP Header

2004-02-19 Thread Vishal Mahajan
Hi Steve, Try something like the following ... SOAPPart soapPart = new SOAPPart(); if (!(xmlSignatureDomElement instanceof SOAPElement)) { SOAPElement xmlSignatureSoapElement = (SOAPElement) soapPart.importNode(xmlSignatureDomElement, true); } Then try adding the xmlSignatureSoapElement

Re: [PATCH] Martialing ReferenceList

2004-02-19 Thread Vishal Mahajan
Correction, I sent out Reference.java instead of ReferenceList.java :-P (Please find it attached now). - Vishal Vishal Mahajan wrote: All, I observed that there were some TODO items in XMLCipher.java. Some of them were related to martialing of KeyInfo and ReferenceList. I have prepared

[PATCH] Martialing ReferenceList

2004-02-19 Thread Vishal Mahajan
All, I observed that there were some TODO items in XMLCipher.java. Some of them were related to martialing of KeyInfo and ReferenceList. I have prepared (please find attached) a patch for these. The KeyInfo martialing I thought was already achieved (KeyInfo.getElement()), and for ReferenceList

Re: AW: AW: Problem in Decryption

2004-02-11 Thread Vishal Mahajan
. Element mode just takes the Element node and performs encryption of that node. IMO this is as defined in XML-Enc specs. Regards, Werner -Ursprüngliche Nachricht- Von: Vishal Mahajan [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 11. Februar 2004 12:33 An: [EMAIL PROTECTED] Betreff: Re

Re: AW: Problem in Decryption

2004-02-11 Thread Vishal Mahajan
ontent mode. Regards, Werner -Ursprüngliche Nachricht- Von: Vishal Mahajan [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 11. Februar 2004 08:35 An: [EMAIL PROTECTED] Betreff: Re: Problem in Decryption Hi Berin, I agree with your reading of the spec. But, the spec does not prevent the en

Re: AW: Problem in Decryption

2004-02-11 Thread Vishal Mahajan
with Signature/Encrypt. During our test we already did tests signature/encryption in content mode. Regards, Werner -----Ursprüngliche Nachricht- Von: Vishal Mahajan [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 11. Februar 2004 08:35 An: [EMAIL PROTECTED] Betreff: Re: Problem in Decryption Hi

Re: Decrypt using KeyInfo

2004-02-11 Thread Vishal Mahajan
Hi Hyejung, Are you initializing the SecretKeyFactory using an algoritm URI? That could be incorrect. I think you need to supply the corresponding JCE id instead. Regards, Vishal Hye-Jung Kim wrote: Hello, I am trying to decrypt the encrypted xml data using KeyInfo. I extracted CipherValue of

Re: Problem in Decryption

2004-02-10 Thread Vishal Mahajan
Correction. The document I wanted to quote from the spec is this: A23B45C56 Thanks, Vishal Vishal Mahajan wrote: Hi Berin, I agree with your reading of the spec. But, the spec does not prevent the encrypter from putting whitespaces between the tags

Re: Problem in Decryption

2004-02-10 Thread Vishal Mahajan
Hi Berin, I agree with your reading of the spec. But, the spec does not prevent the encrypter from putting whitespaces between the tags of EncryptedData and its parent node. Also there are example encrypted documents like the following in the spec: A23B45C56

  1   2   >