Re: How to decrypt AES encryption

2004-07-23 Thread Sean Mullan
Vishal Mahajan wrote: 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 java.security

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 java.security.NoSuchAlgorithmExcept

Re: How to decrypt AES encryption

2004-07-22 Thread Dominik Schadow
I'm using JDK 1.4.2_04. I don't understand why I can encrypt XML using AES, but then I can't decrypt it... > Vishal Mahajan wrote: > > Dominik Schadow wrote: > > > >> Yes, I tried the following code: > >> > >> SecretKeySpec keySpec = new > >> SecretKeySpec(JavaUtils.getBytesFromFile(keyFile), alg

Re: How to decrypt AES encryption

2004-07-22 Thread Sean Mullan
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 java.security.NoSuchAlgorithmException: AES not foun

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-22 Thread Dominik Schadow
Yes, I tried the following code: SecretKeySpec keySpec = new SecretKeySpec(JavaUtils.getBytesFromFile(keyFile), algorithm); SecretKeyFactory skf = SecretKeyFactory.getInstance(algorithm); SecretKey key = skf.generateSecret(keySpec); The exception I receive is java.security.NoSuchAlgorithmExcepti

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

How to decrypt AES encryption

2004-07-20 Thread Dominik Schadow
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(“DESede”); SecretKey key = skf.gener