RE: AES encryption openssl salt and Doing it in Java salt

2012-11-01 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of redpath > Sent: Thursday, 01 November, 2012 13:07 > I have written AES encryption which uses salt > *password-based* with salt, as you correctly say for Java below. > int nrounds=5; > unsigned char salt[]= {1,2,3,4, 5,6,7,8}; > unsigned

AES encryption openssl salt and Doing it in Java salt

2012-11-01 Thread redpath
ntf("Couldn't initialize AES cipher\n"); return -1; } char *plaintext; unsigned char *ciphertext; int length=0; unsigned char *result; unsigned char *p= (unsigned char *) argv[2]; length = strlen(argv[2]); printf("