~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/evp/bio_enc.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051213213742-d0ydaylf80l16bj1
Tags: upstream-0.9.8a
ImportĀ upstreamĀ versionĀ 0.9.8a

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
static int enc_free(BIO *data);
72
72
static long enc_callback_ctrl(BIO *h, int cmd, bio_info_cb *fps);
73
73
#define ENC_BLOCK_SIZE  (1024*4)
74
 
#define BUF_OFFSET      EVP_MAX_BLOCK_LENGTH
 
74
#define BUF_OFFSET      (EVP_MAX_BLOCK_LENGTH*2)
75
75
 
76
76
typedef struct enc_struct
77
77
        {
405
405
        }
406
406
*/
407
407
 
408
 
void BIO_set_cipher(BIO *b, const EVP_CIPHER *c, unsigned char *k,
409
 
             unsigned char *i, int e)
 
408
void BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
 
409
             const unsigned char *i, int e)
410
410
        {
411
411
        BIO_ENC_CTX *ctx;
412
412