~ubuntu-branches/ubuntu/edgy/openssh/edgy

« back to all changes in this revision

Viewing changes to cipher-acss.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-10-31 07:46:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051031074644-poik7e4un4723tr4
Tags: 1:4.2p1-5ubuntu1
Resynchronise with Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#include "includes.h"
18
18
#include <openssl/evp.h>
19
19
 
20
 
RCSID("$Id: cipher-acss.c,v 1.2 2004/02/06 04:26:11 dtucker Exp $");
 
20
RCSID("$Id: cipher-acss.c,v 1.3 2005/07/17 07:04:47 djm Exp $");
21
21
 
22
22
#if !defined(EVP_CTRL_SET_ACSS_MODE) && (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23
23
 
33
33
#define EVP_CTRL_SET_ACSS_SUBKEY        0xff07
34
34
 
35
35
static int
36
 
acss_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, 
 
36
acss_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
37
37
    const unsigned char *iv, int enc)
38
38
{
39
39
        acss_setkey(&data(ctx)->ks,key,enc,ACSS_DATA);
41
41
}
42
42
 
43
43
static int
44
 
acss_ciph(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, 
 
44
acss_ciph(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in,
45
45
    unsigned int inl)
46
46
{
47
47
        acss(&data(ctx)->ks,inl,in,out);