OK, I'm next to integrate my cipher, but I need an other little help: I get the lenght of my file to encrypt with the variable "inl" of the file
/crypto/evp/evp_locl.h. Here is, as an example, the code use for cbc mode:
#define BLOCK_CIPHER_func_cbc(cname, cprefix, kstruct, ksched) \
static int cname##_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char
*in, unsigned int inl) \
{\
cprefix##_cbc_encrypt(in, out, (long)inl, &((kstruct *)ctx->cipher_data)->ksched,
ctx->iv, ctx->encrypt);\
return 1;\
}
my trouble is that my cipher creates a digest (from 48bit to 128 bit) at the end of the output file, so the encrypted message is longer than input file.
How can I save an output file longer than input file? Where I can set the correct lenght of the output file?
Thanks a lot
Greetings Paolo SERRA
______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]