Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-02-27 03:59:03 +0300
committerAdam Langley <agl@google.com>2015-03-18 22:55:14 +0300
commitca8feeb301ee4bd7d94547dd1e4bf68f5335c2c2 (patch)
treefee6f18a2946b50566a43f6dd01b7235f49db6c5 /include/openssl/des.h
parent7282738bad46445f0b6599e6d06ea4df270493a8 (diff)
Add support for 3DES ECB.
At least the linker can discard this function in the cases where nobody is calling it. Change-Id: I30050e918e6bc1dd9c97cc70f3a56408701abebc Reviewed-on: https://boringssl-review.googlesource.com/3724 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/des.h')
-rw-r--r--include/openssl/des.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/openssl/des.h b/include/openssl/des.h
index 94188461..f3804c33 100644
--- a/include/openssl/des.h
+++ b/include/openssl/des.h
@@ -112,6 +112,15 @@ OPENSSL_EXPORT void DES_ncbc_encrypt(const uint8_t *in, uint8_t *out,
const DES_key_schedule *schedule,
DES_cblock *ivec, int enc);
+/* DES_ecb3_encrypt encrypts (or decrypts, if |enc| is |DES_DECRYPT|) a single
+ * block (8 bytes) of data from |input| to |output| using 3DES. */
+OPENSSL_EXPORT void DES_ecb3_encrypt(const DES_cblock *input,
+ DES_cblock *output,
+ const DES_key_schedule *ks1,
+ const DES_key_schedule *ks2,
+ const DES_key_schedule *ks3,
+ int enc);
+
/* DES_ede3_cbc_encrypt encrypts (or decrypts, if |enc| is |DES_DECRYPT|) |len|
* bytes from |in| to |out| with 3DES in CBC mode. 3DES uses three keys, thus
* the function takes three different |DES_key_schedule|s. */