version 1.93, 2012/01/25 19:36:31 |
version 1.94, 2012/12/11 22:31:18 |
|
|
cipher_set_key_string(&ciphercontext, cipher, passphrase, |
cipher_set_key_string(&ciphercontext, cipher, passphrase, |
CIPHER_ENCRYPT); |
CIPHER_ENCRYPT); |
cipher_crypt(&ciphercontext, cp, |
cipher_crypt(&ciphercontext, cp, |
buffer_ptr(&buffer), buffer_len(&buffer)); |
buffer_ptr(&buffer), buffer_len(&buffer), 0); |
cipher_cleanup(&ciphercontext); |
cipher_cleanup(&ciphercontext); |
memset(&ciphercontext, 0, sizeof(ciphercontext)); |
memset(&ciphercontext, 0, sizeof(ciphercontext)); |
|
|
|
|
cipher_set_key_string(&ciphercontext, cipher, passphrase, |
cipher_set_key_string(&ciphercontext, cipher, passphrase, |
CIPHER_DECRYPT); |
CIPHER_DECRYPT); |
cipher_crypt(&ciphercontext, cp, |
cipher_crypt(&ciphercontext, cp, |
buffer_ptr(©), buffer_len(©)); |
buffer_ptr(©), buffer_len(©), 0); |
cipher_cleanup(&ciphercontext); |
cipher_cleanup(&ciphercontext); |
memset(&ciphercontext, 0, sizeof(ciphercontext)); |
memset(&ciphercontext, 0, sizeof(ciphercontext)); |
buffer_free(©); |
buffer_free(©); |