diff options
author | Matt Braithwaite <mab@google.com> | 2015-05-15 20:36:42 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-05-20 21:36:01 +0300 |
commit | dc8c739a3b271266edf218b24f467656991a290c (patch) | |
tree | acbbd72fa6c8558e90768419b86b4f166eb3341d /include/openssl/des.h | |
parent | a7997f12be358e58aeb2345bb8b88a9d53240024 (diff) |
Implement |DES_ede2_cbc_encrypt|.
Change-Id: I0d2a09242e2d5092ee7facab4729e9af36d9d548
Reviewed-on: https://boringssl-review.googlesource.com/4752
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/des.h')
-rw-r--r-- | include/openssl/des.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/openssl/des.h b/include/openssl/des.h index f3804c33..6e1b0cfe 100644 --- a/include/openssl/des.h +++ b/include/openssl/des.h @@ -131,6 +131,16 @@ OPENSSL_EXPORT void DES_ede3_cbc_encrypt(const uint8_t *in, uint8_t *out, const DES_key_schedule *ks3, DES_cblock *ivec, int enc); +/* DES_ede2_cbc_encrypt encrypts (or decrypts, if |enc| is |DES_DECRYPT|) |len| + * bytes from |in| to |out| with 3DES in CBC mode. With this keying option, the + * first and third 3DES keys are identical. Thus, this function takes only two + * different |DES_key_schedule|s. */ +OPENSSL_EXPORT void DES_ede2_cbc_encrypt(const uint8_t *in, uint8_t *out, + size_t len, + const DES_key_schedule *ks1, + const DES_key_schedule *ks2, + DES_cblock *ivec, int enc); + #if defined(__cplusplus) } /* extern C */ |