aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/modes/modes.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-04-12 23:21:33 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-04-12 23:21:33 +0000
commit32a2d8ddfebdde06bfdf4fdac54d487c5d03cbea (patch)
tree65c2b96de034be57560a3cc7943890ce62d6b2ce /crypto/modes/modes.h
parent4bd1e895faa35a8d4810402fe3ba9d07c1166908 (diff)
downloadopenssl-32a2d8ddfebdde06bfdf4fdac54d487c5d03cbea.tar.gz
Provisional AES XTS support.
Diffstat (limited to 'crypto/modes/modes.h')
-rw-r--r--crypto/modes/modes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/modes/modes.h b/crypto/modes/modes.h
index 0a41b23eaa..1ef78cef22 100644
--- a/crypto/modes/modes.h
+++ b/crypto/modes/modes.h
@@ -104,3 +104,9 @@ int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx,const unsigned char *tag,
size_t len);
void CRYPTO_gcm128_tag(GCM128_CONTEXT *ctx, unsigned char *tag, size_t len);
void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx);
+
+typedef struct xts128_context XTS128_CONTEXT;
+
+int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char *iv,
+ const unsigned char *inp, unsigned char *out,
+ size_t len, int enc);