diff options
Diffstat (limited to 'src/lib/libcrypto/camellia/cmll_ofb.c')
-rw-r--r-- | src/lib/libcrypto/camellia/cmll_ofb.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/libcrypto/camellia/cmll_ofb.c b/src/lib/libcrypto/camellia/cmll_ofb.c index e276c2a626..cd3a65e2fa 100644 --- a/src/lib/libcrypto/camellia/cmll_ofb.c +++ b/src/lib/libcrypto/camellia/cmll_ofb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cmll_ofb.c,v 1.3 2014/06/12 15:49:28 deraadt Exp $ */ | 1 | /* $OpenBSD: cmll_ofb.c,v 1.4 2014/11/13 20:01:58 miod Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -108,12 +108,15 @@ | |||
108 | #include <openssl/camellia.h> | 108 | #include <openssl/camellia.h> |
109 | #include <openssl/modes.h> | 109 | #include <openssl/modes.h> |
110 | 110 | ||
111 | /* The input and output encrypted as though 128bit ofb mode is being | 111 | /* |
112 | * The input and output encrypted as though 128bit ofb mode is being | ||
112 | * used. The extra state information to record how much of the | 113 | * used. The extra state information to record how much of the |
113 | * 128bit block we have used is contained in *num; | 114 | * 128bit block we have used is contained in *num; |
114 | */ | 115 | */ |
115 | void Camellia_ofb128_encrypt(const unsigned char *in, unsigned char *out, | 116 | void |
116 | size_t length, const CAMELLIA_KEY *key, | 117 | Camellia_ofb128_encrypt(const unsigned char *in, unsigned char *out, |
117 | unsigned char *ivec, int *num) { | 118 | size_t length, const CAMELLIA_KEY *key, unsigned char *ivec, int *num) |
118 | CRYPTO_ofb128_encrypt(in,out,length,key,ivec,num,(block128_f)Camellia_encrypt); | 119 | { |
120 | CRYPTO_ofb128_encrypt(in, out, length, key, ivec, num, | ||
121 | (block128_f)Camellia_encrypt); | ||
119 | } | 122 | } |