diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-27 13:40:45 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-27 13:40:45 +0000 |
commit | fe150ac25df9d15d149c796cc8a8435fa291dc5b (patch) | |
tree | f72845a31cc87b63ab9ceef966b83431c40809fb /crypto/modes/modes.h | |
parent | bec45a35bb91c03056d498320b3db630304ab48f (diff) | |
download | openssl-fe150ac25df9d15d149c796cc8a8435fa291dc5b.tar.gz |
Add modes/cts128.c, Ciphertext Stealing implementation.
Diffstat (limited to 'crypto/modes/modes.h')
-rw-r--r-- | crypto/modes/modes.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crypto/modes/modes.h b/crypto/modes/modes.h index 6315a60fc4..af8d97d795 100644 --- a/crypto/modes/modes.h +++ b/crypto/modes/modes.h @@ -11,6 +11,10 @@ typedef void (*block128_f)(const unsigned char in[16], unsigned char out[16], const void *key); +typedef void (*cbc128_f)(const unsigned char *in, unsigned char *out, + size_t len, const void *key, + unsigned char ivec[16], int enc); + void CRYPTO_cbc128_encrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], block128_f block); @@ -40,3 +44,16 @@ void CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out, size_t bits, const void *key, unsigned char ivec[16], int *num, int enc, block128_f block); + +size_t CRYPTO_cts128_encrypt_block(const unsigned char *in, unsigned char *out, + size_t len, const void *key, + unsigned char ivec[16], block128_f block); +size_t CRYPTO_cts128_encrypt(const unsigned char *in, unsigned char *out, + size_t len, const void *key, + unsigned char ivec[16], cbc128_f cbc); +size_t CRYPTO_cts128_decrypt_block(const unsigned char *in, unsigned char *out, + size_t len, const void *key, + unsigned char ivec[16], block128_f block); +size_t CRYPTO_cts128_decrypt(const unsigned char *in, unsigned char *out, + size_t len, const void *key, + unsigned char ivec[16], cbc128_f cbc); |