Need Help with DES !

2001-01-29 Thread mjvolders
Hi, The first 8 bytes of my decrypted ciphertext are garbage. The rest is OK. I encrypt 12220 bytes in one pass with des_ede3_cbc_encrypt(...) Are the any prerequisites which are necessary for encrypting/decrypting with DES ? Thanks, Niels __

rsa_test.c

2000-12-08 Thread mjvolders
Hi, I can't get the RSA encryption to work so i looked at some examples. In the rsa_test.c i tried to rewrite to source to use generated keys instead of the hardcoded ones. But when I do that it doesn\t work anymore. I tried to find why when i stumbled upon a statement which I don't understand.

ARGH: Help me PLEASE :(

2000-12-07 Thread mjvolders
Hi, I hope somebody will help me. For the last two weeks i am trying to write RSA keys to disk. I want two files, one with the private Key and one with the Public key (this one is distributed). For some unknown reason nothing I have tried will work. I tried to write the files with and without BI

padding errors with RSA :(

2000-12-01 Thread mjvolders
Hi, When I try to encrypt/decrypt with RSA I get errors, mainly padding errors. When I use RSA_PKCS1_PADDING i get unknown padding type when decrypting crypted text. When I use RSA_NO_PADDING i get an error that my *from is smaller then *to. I don't understand this error. isn't it OK to have a b