diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-04-12 23:21:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-04-12 23:21:33 +0000 |
commit | 32a2d8ddfebdde06bfdf4fdac54d487c5d03cbea (patch) | |
tree | 65c2b96de034be57560a3cc7943890ce62d6b2ce /crypto/modes/modes.h | |
parent | 4bd1e895faa35a8d4810402fe3ba9d07c1166908 (diff) | |
download | openssl-32a2d8ddfebdde06bfdf4fdac54d487c5d03cbea.tar.gz |
Provisional AES XTS support.
Diffstat (limited to 'crypto/modes/modes.h')
-rw-r--r-- | crypto/modes/modes.h | 6 |
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); |