You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(29) |
Dec
(5) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(88) |
Feb
(75) |
Mar
(86) |
Apr
(81) |
May
(47) |
Jun
(36) |
Jul
(87) |
Aug
(61) |
Sep
(37) |
Oct
(36) |
Nov
(18) |
Dec
(4) |
2004 |
Jan
(19) |
Feb
(26) |
Mar
(5) |
Apr
(10) |
May
|
Jun
(2) |
Jul
(14) |
Aug
(21) |
Sep
(8) |
Oct
(51) |
Nov
(20) |
Dec
(11) |
2005 |
Jan
(5) |
Feb
(5) |
Mar
(25) |
Apr
(48) |
May
(6) |
Jun
(29) |
Jul
(42) |
Aug
(25) |
Sep
(11) |
Oct
(42) |
Nov
(43) |
Dec
(52) |
2006 |
Jan
(39) |
Feb
(21) |
Mar
(42) |
Apr
(25) |
May
(22) |
Jun
(9) |
Jul
(4) |
Aug
(7) |
Sep
(3) |
Oct
(7) |
Nov
(11) |
Dec
(8) |
2007 |
Jan
(1) |
Feb
(5) |
Mar
(11) |
Apr
(2) |
May
(5) |
Jun
(9) |
Jul
(1) |
Aug
(9) |
Sep
|
Oct
(8) |
Nov
(1) |
Dec
(1) |
2008 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
(5) |
Dec
|
2009 |
Jan
(8) |
Feb
|
Mar
(1) |
Apr
(5) |
May
(4) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
|
Dec
|
2011 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Robert W. W. <rw...@ya...> - 2002-11-26 18:26:13
|
I am having the same problem that was mentioned on 11/19 by Krishna Arji. When I encrypt a file using PGP 6.5.8 and then try to decrypt it using OpenPGP, I get the following runtime exception: Exception in thread "main" java.lang.RuntimeException: IOException on ByteArrayInputStream, should not happen. java.io.EOFException: Unexpected end of ZLIB input stream at cryptix.openpgp.packet.PGPEncryptedDataPacket.decrypt(PGPEncryptedDataPacket.java:285) at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncryptedMessageImpl.java:210) at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncryptedMessageImpl.java:301) at Decrypt.main(Decrypt.java:125) Additionally, I am able to decrypt a file (sent from a third-party) using PGP 6.5.8, but when I try to decrypt it using OpenPGP I get this exception: Reading message failed. cryptix.message.MessageException: cryptix.openpgp.PGPDataFormatException: Read tried past end of packet. at cryptix.openpgp.provider.PGPMessageFactory.generateBinary(PGPMessageFactory.java:144) at cryptix.openpgp.provider.PGPMessageFactory.engineGenerateMessages(PGP MessageFactory.java:72) at cryptix.message.MessageFactory.generateMessages(MessageFactory.java:134) at Decrypt.main(Decrypt.java:103) As an additional piece of information, the OpenPGP encrypt/decrypt examples work fine when run alone. Any help is greatly appreciated, Rob rwwade(at)yahoo.com __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Luc V. <luc...@ho...> - 2002-11-25 14:40:02
|
<html><div style='background-color:'><DIV> <P><BR> </P> <P>Here is a solution that worked for me from <FONT size=2></P> <P>jav...@li...</P> <P></FONT>Luc, </P></DIV> <DIV></DIV>This is a known issue in our latest 1.3.1 implementation. Our <DIV></DIV>netscape.* classes are on the boot class path on 1.3.1 and they are <DIV></DIV>used by the JCE, just put your JCE classes (which also have netscape.*) <DIV></DIV>classes on the boot class path before our system classes using the <DIV></DIV>-Xbootclasspath/p: option. To get more information about the available <DIV></DIV>-X options type in "java -X" <DIV></DIV> <DIV></DIV>Ted <DIV></DIV></div><br clear=all><hr>Help STOP SPAM with <a href="http://g.msn.com/8HMMEN/2016">the new MSN 8 </a> and get 2 months FREE*</html> |
From: ryan <ry...@pr...> - 2002-11-25 11:57:56
|
Yes, I'm suffering this problem too. If anyone can offer some solution to it I would be most grateful. I've a feeling I read something somewhere about it being something to do with a property being set for netscape security, but I can't remember any more than that. I'm also aware that the ZeroG installer has (had?) problems which caused it to fail on Windows with the same message when using cryptix. That was to do with zeroG using the windows jvm dll. There was apparently a workaround which involved altering the cryptix source code, but I was never able to find out how it was done. If this helps anyone fix the problem, then let us all know! Thanks Luc Vallet wrote: Hi all, <DIV>sorry for my last message it seems something went wrong...</DIV> <DIV>Anyway, I 've an application that runs fine on win plateform but throws this message error on MAC os/X, see below.. </DIV> <DIV>I saw in the archives that someone had the same problem, but no solution was given..</DIV> <DIV>could someone shed some light on this problem..</DIV> <DIV> </DIV> <DIV>Thanks in advance..</DIV> <DIV>Luc</DIV> <DIV> </DIV> <DIV>Netscape security model is no longer supported</DIV> <DIV>Please migrate to the java 2 security model instead.</DIV> <DIV> </DIV> <DIV>java.lang.NoSuchMethodError</DIV> <DIV>at xjava.security.IJCE_SecuritySupport.registerTargets(IJCE_SecuritySupport.java:155)</DIV> <DIV>at xjava.security.IJCE_SecuritySupport.<clinit>(IJCE_SecuritySupport.java)</DIV> <DIV>etc.. |
From: Horatiu S. <ho...@so...> - 2002-11-25 10:25:12
|
____________________________________________ Horatiu Stanciu=20 ProgrammerOffice Phone: +(40)56306078Fax: +(40)56306079Home Phone: = +(40)56437909mailto:ho...@so...mailto:hst...@ya...SOFTGATE = 4 U =20 Borsec 4,Timisoara, Romania =20 |
From: Luc V. <luc...@ho...> - 2002-11-25 09:10:00
|
<html><div style='background-color:'><DIV> <DIV> <DIV>Hi all, </DIV> <DIV>sorry for my last message it seems something went wrong...</DIV> <DIV>Anyway, I 've an application that runs fine on win plateform but throws this message error on MAC os/X, see below.. </DIV> <DIV>I saw in the archives that someone had the same problem, but no solution was given..</DIV> <DIV>could someone shed some light on this problem..</DIV> <DIV> </DIV> <DIV>Thanks in advance..</DIV> <DIV>Luc</DIV> <DIV> </DIV> <DIV>Netscape security model is no longer supported</DIV> <DIV>Please migrate to the java 2 security model instead.</DIV> <DIV> </DIV> <DIV>java.lang.NoSuchMethodError</DIV> <DIV>at xjava.security.IJCE_SecuritySupport.registerTargets(IJCE_SecuritySupport.java:155)</DIV> <DIV>at xjava.security.IJCE_SecuritySupport.<clinit>(IJCE_SecuritySupport.java)</DIV> <DIV>etc..</DIV></DIV></DIV></div><br clear=all><hr>STOP MORE SPAM with <a href="http://g.msn.com/8HMNEN/2015">the new MSN 8</a> and get 2 months FREE*</html> |
From: Luc V. <luc...@ho...> - 2002-11-21 17:41:04
|
<html><div style='background-color:'><P>Hi all,</P> <P>I 've seen a post about a problem when using crytpix32 on mac os/x, but nobody gave a solution. (post from the 28th of October) from Roger Whitbread.</P> <P>Can someone shed some light on this annoying problem...Thanks in advance.</P> <P>Luc</P> <P>The error message is : </P> <P>Netscape security model is no longer supported<BR>Please migrate to the java 2 security model instead</P> <P>Netscape security model is no longer supported<BR>Please migrate to the java 2 security model instead<BR></P> <P>Netscape security model is no longer supported<BR>Please migrate to the java 2 security model instead<BR></P> <P>java.lang.NoSuchMethodError<BR>at xjava.security.IJCE_SecuritySupport.registerTargets(IJCE_SecuritySupport.java:155)<BR>at xjava.security.IJCE_SecuritySupport.<clinit</P> <P><BR> </P> <DIV></DIV></div><br clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMJEN/2023">ELIMINATE E-MAIL VIRUSES.</a> Get 2 months FREE*.</html> |
From: Krishna A. <kri...@ci...> - 2002-11-19 22:08:45
|
Hi, I am encrypting the data using the PGP version 6.5.8 and decrypting it using Cryptix OpenPGP libraries (Indeed same program in examples/openpgp/Decrypt.java) and again both the keys were generated using GenerateAndWriteKey.java sample. I then used the publickey and pgp.exe to encrypt the data and then decrypting the data using Decrypt.java and privatekey . I am getting the following error during the decryption process ..... Exception in thread "main" java.lang.RuntimeException: IOException on ByteArrayI nputStream, should not happen. java.io.EOFException: Unexpected end of ZLIB inpu t stream at cryptix.openpgp.packet.PGPEncryptedDataPacket.decrypt(PGPEncryptedDat aPacket.java:285) at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncrypted MessageImpl.java:210) at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncrypted MessageImpl.java:301) at Decrypt.main(Decrypt.java:126) Any help would be highly appreciated ..... Thanks in advance, Krishna |
From: dash d. <das...@ya...> - 2002-11-19 09:06:12
|
Hi Guys, This is a newbie question so please help. I would like to calculate a message digest on some data, using SHA-256. Can anyone help me with a program that shows how to use SHA to generate a hash. Any help will be greatly appreciated. Regards, Denver __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com |
From: <fma...@bo...> - 2002-11-18 12:21:22
|
Dear friends, have you any simple example of Cryptix RSA encryption that works for send me? I don't hope in official Cryptix example :) Thank you very much!!! Francisco Magalh=E3es 226-7500/9981-3252 ICQ 145605801 S=E3o Lu=EDs - Patrim=F4nio Cultural da Humanidade |
From: Chris Go <cg...@US...> - 2002-11-15 17:57:59
|
Hello, Is compresssion implemented yet? I guess I cannot decrypt files/strings after a certain length if it was encrypted outside of Cryptix. Also, would it be strange to send unencrypted PGP messages? Thanks, Chris |
From: Horatiu S. <ho...@so...> - 2002-11-15 08:13:42
|
Hello! Any idea why this use of Cryptix for DES does not works always (the decyption is not always good)? Do you have any idea? Here is the code: import java.io.*; import java.security.*; import java.math.*; import cryptix.util.core.BI; import cryptix.util.core.ArrayUtil; import cryptix.util.core.Hex; import cryptix.provider.key.*; import xjava.security.Cipher; import cryptix.provider.padding.*; class runDES { private static int iPadNo =3D -1; public runDES(){ } =20 public static void main (String[] args) { try { =20 //String sEnc =3D desCrypt( "mam##~!@# mia vai ******=20 ******(((((())))))@@!!$$##%%^^%%**&&(( ce placere", "cucucucu", 8, true = ); //String sEnc =3D desCrypt( "desinitDecrypt(key2);ciphertext =3D des = crypt(ciphertext);=20 System out print( n Systemoutprintln(plaintextlength =3D = ciphertextlength", "cucucucu", 8, true ); //String sEnc =3D desCrypt( "The class Math contains methods for = performing basic=20 numeric operations such as the elementary exponential, logarithm, square = root, and trigonometric=20 functions. Unlike some of the numeric methods of class StrictMath, all = implementations of the=20 equivalent functions of class Math are not defined to return the = bit-for-bit same results. This=20 relaxation permits better-performing implementations where strict = reproducibility is not required.",=20 "cucucucu", 8, true ); //String sEnc =3D desCrypt( "l implementations of the equivalent = functions of class Math=20 are not defined to return the bit-for-bit same results.", "cucucucu", = 115, true ); //String sEnc =3D desCrypt( "Ana are pere mic", "cucucucu", 16, true = ); /*byte[] b =3D "e provides robthe provides robthe provides robthe = provides robthe=20 provides robthe provides robthe provides robthe provides robthe provides = robthe provides robthe=20 provides robthe provides robthe provides robthe provides robthe provides = robthe provides robthe=20 provides robthe provides robthe provides robthe provides = robt".getBytes(); System.out.println("Initial values"); int bLen =3D b.length; for (int i=3D0; i<bLen; i++) System.out.print(b[i]); System.out.println("\n"); =20 byte[] bEnc =3D desCrypt( b, "cucucucu", 638, true ); byte[] bDec =3D desCrypt( bEnc, "cucucucu",638 , false );*/ =20 =20 String sEnc =3D desCrypt( "l implementations of the equivalent = functions of class Math=20 are not defined to return the bit-for-bit same results.", "cucucucu", = 115, true ); //String sEnc =3D desCrypt( "e provides robthe provides robthe = provides robthe provides=20 robthe provides robthe provides robthe provides robthe provides robthe = provides robthe provides robthe=20 provides robthe provides robthe provides robthe provides robthe provides = robthe provides robthe=20 provides robthe provides robthe provides robthe provides robt", = "cucucucu", 319, true ); String sDec =3D desCrypt( sEnc, "cucucucu",115 , false ); } catch (Exception e) { System.err.println("Caught exception " + e.toString()); } } =20 public static String desCrypt(String sInBuff,=20 String sKey,=20 int len,=20 boolean bCryptDirection) throws Exception{ =20 byte [] bOutBuff; byte [] bInBuff; byte [] bKey; String sOutBuff; //String sPaddedInBuff; //String sPadder =3D new String( "0000000" ); =20 =20 /* Padding operation */ =20 =20 bInBuff =3D new byte[ sInBuff.length() ]; =20 for(int i =3D 0; i < sInBuff.length(); i++ ){ bInBuff[ i ] =3D 0x0;=20 } =20 bInBuff =3D sInBuff.getBytes();=20 =20 =20 for ( int i =3D 0; i < bKey.length; i++){ bKey[ i ] =3D (byte)( bKey[ i ] << 1); } =20 RawSecretKey key2 =3D new RawSecretKey( "DESECB/OneAndZeroes", bKey = ); RawKey rkey =3D (RawKey) key2; =20 =20 =20 bKey =3D rkey.getEncoded(); =20 =20 =20 Cipher des =3D Cipher.getInstance( "DES/ECB/OneAndZeroes","Cryptix"=20 ); bOutBuff =3D new byte[ bInBuff.length ]; for( int i =3D 0; i< bInBuff.length; i++ ){ bOutBuff[ i ] =3D 0x0; } =20 /* Encrypt or decrypt */ if( bCryptDirection ){ des.initEncrypt( key2 );=20 bOutBuff =3D des.crypt( bInBuff ); =20 int i =3D bOutBuff.length; sOutBuff =3D new String( bOutBuff,0,i ); System.out.println( "Crypted: "+ sOutBuff); /// ----------end crypt } else{ =20 des.initDecrypt( key2 );=20 bOutBuff =3D des.crypt( bInBuff ); =20 //int i =3D bOutBuff.length; =20 sOutBuff =3D new String( bOutBuff ); System.out.println( "Decrypted: "+sOutBuff ); /// ----------end decrypt } =20 return sOutBuff; =20 } =20 =20 public static byte[] desCrypt(byte[] bInBuff,=20 String sKey,=20 int len,=20 boolean bCryptDirection) throws Exception{ =20 byte [] bOutBuff;=20 byte [] bKey; String sOutBuff; =20 =20 =20 //bInBuff =3D sInBuff.getBytes(); bKey =3D sKey.getBytes(); =20 =20 for ( int i =3D 0; i < bKey.length; i++){ bKey[ i ] =3D (byte)( bKey[ i ] << 1); } /* generate byte[] keys */ RawSecretKey key2 =3D new RawSecretKey( "DES/ECB/OneAndZeroes", bKey = ); RawKey rkey =3D (RawKey) key2; =20 =20 =20 bKey =3D rkey.getEncoded(); =20 =20 Cipher des =3D Cipher.getInstance( "DES/ECB/OneAndZeroes","Cryptix"=20 ); bOutBuff =3D new byte[ bInBuff.length ]; for( int i =3D 0; i< bInBuff.length; i++ ){ bOutBuff[ i ] =3D 0x0; } =20 /* Encrypt or decrypt */ if( bCryptDirection ){ des.initEncrypt( key2 );=20 bOutBuff =3D des.crypt( bInBuff ); =20 =20 int bLen =3DbOutBuff.length; for (int i=3D0; i<bLen; i++) System.out.print(bOutBuff[i]); System.out.println("\n"); /// ----------end crypt } else{ =20 des.initDecrypt( key2 );=20 bOutBuff =3D des.crypt( bInBuff ); =20 =20 int bLen =3D bOutBuff.length; for (int i=3D0; i<bLen; i++) System.out.print(bOutBuff[i]); System.out.println("\n"); /// ----------end decrypt } =20 return bOutBuff; =20 } =20 } ____________________________________________ Horatiu Stanciu=20 ProgrammerOffice Phone: +(40)56306078Fax: +(40)56306079Home Phone: = +(40)56437909mailto:ho...@so...mailto:hst...@ya...SOFTGATE = 4 U =20 Borsec 4,Timisoara, Romania =20 |
From: Horatiu S. <ho...@so...> - 2002-11-15 08:00:19
|
____________________________________________ Horatiu Stanciu=20 ProgrammerOffice Phone: +(40)56306078Fax: +(40)56306079Home Phone: = +(40)56437909mailto:ho...@so...mailto:hst...@ya...SOFTGATE = 4 U =20 Borsec 4,Timisoara, Romania =20 |
From: Lou F. <lfi...@lo...> - 2002-11-14 00:45:04
|
Have an interesting problem using the OpenPGP source. I can encrypt and decrypt binaries just fine so long as the encrypt and decrypt are done with the java source. If I try to decrypt a BINARY file encrypted with the java source using the freeware version 7.0 of PGP there are problems. I do not have ANY problems when encrypting/decrypting text files. It looks like the freeware program it is attempting to open the file as if it was a text file. If I encrypt a text file with the freeware program I can also decrypt it with the java source with no problem. If I encrypt a binary file with the freeware version, it cannot be decrypted with the java source. I am 100% certain that it is not a matter of bad or mismatched keys... I've done it too many times. I'm sure it's just something REALLY stupid. Let me apologize in advance if this is too simple an oversight on my part, I'm new to the list and have been using the product since the code was locked down in August and have had no problems... that is until recently when we started exchanging encrypted ZIP files. It was this problem that led me to try other binary files and narrow it down to just that. Any help would be greatly appreciated. Lou |
From: Meghna R. <des...@ya...> - 2002-11-13 04:04:11
|
I recently joined this list. I was wondering about what version of cryptix to use with jdk 1.4. Will cryptix v3's 3.2.0 work fine? Thanks. __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 |
From: Chris Go <cg...@US...> - 2002-11-13 02:30:07
|
Hi, Been playing around with the OpenPGP implementation of Cryptix and ran into a brick wall. I need an implementation that supports PGP 5.0 (which I why I am NOT using the other cryptix library, cryptix32.jar and cryptix32-pgp.jar) Here's the situation. 1. I can encrypt and then decrypt a file/string using my public key. 2. I can send encrypted files to other people with their public key. 3. I cannot decrypt files sent to me by other people INSIDE cryptix. I can decrypt the file/string with PGP 5.0 for Windows. Here's the header of file that "cryptix" cannot decrypt (if this helps). Is there anything in the "armor" that cryptix may be throwing up at? ================================================ -----BEGIN PGP MESSAGE----- Version: PGP for Personal Privacy 5.0 MessageID: EMk97f4S85Ihsf48hakNl5tNRqgDthEa hQCMAw/8Zej5rIu9AQQAp/ogMOtn1ZI2IpfQtDarjzrqaw/i5zLbMHNjFvdewHMs XXRmrTbqCziQomkyvJKcPSoTxLBRxUKlceX7ltj8TFDRVRcvpu3jKOqAUsMWvQ1G +7pZ9eTrWw9NX4gZplDg/IPhkoMAO7/TK9JpUBE+SSdUcCQYDW291rvWd7FaowGk lxi/MAPFBQxPnqv2Czw8QX6zvsV/9cKFoxBVVbxWP+BI/u7i/ebY3dnItsbpcats 9+Tozwhu7xMKYvCIBAQl1vfK4wx+6KJGJO9a7p3cj6xvsrXeIZMzW7cPDaMgLVJT NVkifnS9HjpcTuppeM1+Uw1deI4OAHmf5p0YmixR+QCBAm0ishBEQ6AFuqLbUgss kTvjYE6GSCE= =oszq -----END PGP MESSAGE----- ================================================ Here's the actual error I am getting: java.lang.ClassCastException: cryptix.openpgp.provider.PGPSignedMessageImpl at com.ussearch.csp.util.PGPEnc.decrypt(PGPEnc.java:91) at com.ussearch.csp.util.PGPEnc.main(PGPEnc.java:137) ================================================ Any insight is appreciated. Thanks, Chris |
From: Jeroen C. v. G. <je...@va...> - 2002-11-12 17:04:10
|
On Sunday, November 10, 2002, at 03:25 AM, Francisco Magalh=E3es wrote: Oh, yes, I just have fixed this, thanks. Now, the problem is other. It's complaining that the block size of clear text and cipher text are differents. How can I resolve this? Where and=20= how can I adjust block sizes? Thank you! Uhm, you generally can't, blocksizes are a function of keysize and data=20= encoding. Asymmetric algorithms generally cause data expansion: the=20 ciphertext is longer than the plaintext. In your case, the blocksize of plaintext is roughly: ((key length)-(minimal padding size)) The ciphertext blocksize is roughly: (key length) This is what you are seeing. HTH, -J -- Jeroen C. van Gelderen -- je...@va... If you took the entire world-population (~6.5bn) and put them in = Nebraska (~77k square miles) you'd get a population density of 84k per square=20 mile. For reference: the population density in Manhattan is 85k per square=20 mile. |
From: Jeroen C. v. G. <je...@va...> - 2002-11-12 16:59:40
|
On Tuesday, November 12, 2002, at 03:58 AM, Amol Dabholkar wrote: > The download link for the Elliptix code on the Cryptix web site doesnt > work ... does any one know where i can get the source? http://anoncvs.cryptix.org/ -J -- Jeroen C. van Gelderen -- je...@va... If you took the entire world-population (~6.5bn) and put them in Nebraska (~77k square miles) you'd get a population density of 84k per square mile. For reference: the population density in Manhattan is 85k per square mile. |
From: Amol D. <ad...@ho...> - 2002-11-12 08:58:32
|
The download link for the Elliptix code on the Cryptix web site doesnt work ... does any one know where i can get the source? ---AMOL. _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: <fma...@bo...> - 2002-11-10 09:57:18
|
Oh, yes, I just have fixed this, thanks. Now, the problem is other. It's complaining that the block size of clear text and cipher text are differents. How can I resolve this? Where and ho= w can I adjust block sizes? Thank you! Francisco Magalh=E3es 226-7500/9981-3252 ICQ 145605801 S=E3o Lu=EDs - Patrim=F4nio Cultural da Humanidade -----Mensagem original----- De: Jeroen C.van Gelderen [mailto:je...@va...] Enviada em: S=E1bado, 9 de Novembro de 2002 18:27 Para: Francisco Magalh=E3es Cc: cry...@li... Assunto: Re: [Cryptix-users] "Not an RSA private key"? Encontre sempre uma linha desocupada com o Discador BOL! http://sac.bol.com.br/discador.html Ainda n=E3o tem AcessoBOL? Assine j=E1! http://sac.bol.com.br On Monday, November 4, 2002, at 06:12 AM, Francisco Magalh=E3es wrote: > KeyPairGenerator.getInstance("RSA"); Try specifying the provider name in *every* getInstance method you use. I suspect that the KeyPairGenerator is returning a Sun implementation of the RSA KeyPairGenerator which cannot be used by Cryptix. -J |
From: Jeroen C.v. G. <je...@va...> - 2002-11-09 20:29:14
|
On Wednesday, November 6, 2002, at 03:56 AM, Leong Chin Huah wrote: > I've encountered the above while using Cryptix v3.2 with DES-EDE3/CBC > algorithm. > > For instance, using keys "long2day" and "long3day" to encrypt the word > "monday", the encrypted value will be the same, ie > "0C78D0869C7D4D4149F91C436349520E". Similary, pairs 6&7 and 8&9 also > exhibit the same behaviour. Further, this occurs when both key values > are exactly the same except for the numeric value. > > Is there an explanation for this? I suspect that this is due to the use of parity bits. DES and TripeDES use one bit out of every 8 as a parity bit. The difference in the examples you are giving is indeed one bit. -J |
From: Jeroen C.v. G. <je...@va...> - 2002-11-09 20:27:09
|
On Monday, November 4, 2002, at 06:12 AM, Francisco Magalh=E3es wrote: > KeyPairGenerator.getInstance("RSA"); Try specifying the provider name in *every* getInstance method you use. I suspect that the KeyPairGenerator is returning a Sun implementation of=20= the RSA KeyPairGenerator which cannot be used by Cryptix. -J |
From: Lyndon S. <lyn...@wa...> - 2002-11-06 11:31:48
|
Hi I'm using Cryptix-OpenPGP in a Java web application. The problem is that the encrypted mail I send can only be opened in the PGP Secure Viewer. In the PGP documentation it refers to messages encrypted with Secure Viewer enabled. This must be the default. How can I turn it off? TIA --------------------------- Lyndon Smith Wax New Media Agency Power Road Studios Power Road London W4 5PY T) +44 (0)208 742 1551 F) +44 (0)208 742 3774 http://www.wax.co.uk Internet communications are not secure and therefore Wax New Media Agency and any associated company does not accept legal responsibility for the contents of this message. Any opinions stated are solely those of the author. |
From: Leong C. H. <ch...@el...> - 2002-11-06 08:52:39
|
Hi, I've encountered the above while using Cryptix v3.2 with DES-EDE3/CBC algorithm. For instance, using keys "long2day" and "long3day" to encrypt the word "monday", the encrypted value will be the same, ie "0C78D0869C7D4D4149F91C436349520E". Similary, pairs 6&7 and 8&9 also exhibit the same behaviour. Further, this occurs when both key values are exactly the same except for the numeric value. Is there an explanation for this? Thanks in advance, C.H. 6 Nov '02 |
From: <fma...@bo...> - 2002-11-04 12:11:31
|
Dear friends, I'm having a problem with this program. The problem is in the line: alg.initSign(sk); that throws the exception: java.security.InvalidKeyException: MD2/RSA/PKCS#1: Not an RSA private key I don't undertand what is happening. Why it think that key is "Not an RSA private key"??? Please help! The result is: -------------------- Test #1 (512-bit modulus) Generating keypair . . . . Done! Testing Signatures Signing with a 512-bit key using MD2/RSA/PKCS#1... java.security.InvalidKeyException: MD2/RSA/PKCS#1: Not an RSA private key Signing with a 512-bit key using MD5/RSA/PKCS#1... java.security.InvalidKeyException: MD5/RSA/PKCS#1: Not an RSA private key Signing with a 512-bit key using SHA-1/RSA/PKCS#1... java.security.InvalidKeyException: SHA-1/RSA/PKCS#1: Not an RSA private k= ey Signing with a 512-bit key using RIPEMD160/RSA/PKCS#1... java.security.InvalidKeyException: RIPEMD160/RSA/PKCS#1: Not an RSA priva= te key The complete program (a adaptation of a Cryptix-official example)is: /* START...*/ import java.io.*; import java.lang.*; import cryptix.util.core.BI; import cryptix.util.core.Hex; import cryptix.util.test.BaseTest; import java.math.BigInteger; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.PrivateKey; import java.security.PublicKey; import java.security.SecureRandom; import java.security.Signature; import xjava.security.Cipher; import xjava.security.interfaces.CryptixRSAPublicKey; import xjava.security.interfaces.CryptixRSAPrivateKey; import xjava.security.interfaces.RSAFactors; // BaseTest import java.io.PrintWriter; import java.io.StringWriter; import java.applet.Applet; public class RSAchico3 { // Constantes private static final byte[] message =3D ( "Je ne veux que du magnifique, et je ne travaille pas pour le " + "vulgaire des lecteurs --Giambattista BODONI (1740-1813)").getBytes(); private static final SecureRandom prng =3D new SecureRandom(); // Metodos public static void main (String[] args) throws Exception { java.security.Security.addProvider(new cryptix.provider.Cryptix()= ); new RSAchico3().engine(); } protected void engine() throws Exception { int k =3D 2; KeyPairGenerator kpg =3D KeyPairGenerator.getInstance("RSA"); Signature[] sigs =3D new Signature[] { Signature.getInstance("MD2/RSA/PKCS#1"), Signature.getInstance("MD5/RSA/PKCS#1"), Signature.getInstance("SHA-1/RSA/PKCS#1"), Signature.getInstance("RIPEMD160/RSA/PKCS#1"), }; Cipher cipher =3D Cipher.getInstance("RSA"); int s; // key strength for (int i =3D 1; i < k; i++) { // s =3D 384 + 128 * i; s =3D 512; System.out.println("\nTest #" + (i) + " (" + s + "-bit modulus)\n"); System.out.print(" Generating keypair "); kpg.initialize(s, prng); System.out.print(". "); KeyPair pair =3D kpg.generateKeyPair(); System.out.print(". "); PrivateKey sk =3D pair.getPrivate(); System.out.print(". "); PublicKey pk =3D pair.getPublic(); System.out.println(". Done!\n"); System.out.print(" Testing Signatures \n"); for (int j =3D 0; j < sigs.length; j++) { testSignature(s, pk, sk, sigs[j]); // out.print(". "); } // out.println("Done!\n"); //testEncryption(s, pk, sk, cipher); } } private void testSignature(int s, PublicKey pk, PrivateKey sk, Signat= ure alg) { try { System.out.println(" Signing with a " + s + "-bit key using = " + alg.getAlgorithm() + "..."); alg.initSign(sk); System.out.println("B\n"); alg.update(message); byte[] signature =3D alg.sign(); System.out.println(" Verifying with same " + s + "-bit key using " + alg.getAlgorithm() + "..."); alg.initVerify(pk); alg.update(message); boolean ok =3D alg.verify(signature); if (ok) System.out.println("Verificacao ok!\n"); } catch (Throwable e) { System.out.println(e); } } } /* END...*/ Francisco Magalh=E3es 226-7500/226-7474/9981-3252 ICQ 145605801 S=E3o Lu=EDs - Patrim=F4nio da Humanidade |
From: Dalmia, R. <Rac...@co...> - 2002-10-31 20:42:41
|
I am using the examples that come with cryptix-openpgp. They waork as it is. but if i change the algorithm to "OpenPGP/Signing/RSA" from "OpenPGP/Signing/DSA" , it throws this exception: java.lang.RuntimeException: ElGamal algorithm not found. at cryptix.openpgp.algorithm.PGPRSA.initSign(PGPRSA.java:400) at cryptix.openpgp.provider.PGPCertificateBuilder.engineBuild(PGPCertificateBui lder.java:155) at cryptix.pki.CertificateBuilder.build(CertificateBuilder.java:213) at GenerateAndWriteKey.generateSimpleKey(GenerateAndWriteKey.java:204) at GenerateAndWriteKey.main(GenerateAndWriteKey.java:88) Exception in thread "main" Please help. Thank you, Rachana The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. |