ghash-x86.pl: engage original MMX version in no-sse2 builds.
[openssl.git] / crypto / modes / modes_lcl.h
index 1ac0e01a88277b1dff430c98909b834742d7428a..7a82a981ca4f93e460cbeb3a8f5bb42db14bc737 100644 (file)
@@ -36,7 +36,7 @@ typedef unsigned char u8;
 # undef STRICT_ALIGNMENT
 #endif
 
-#if !defined(PEDANTIC) && !defined(OPENSSL_NO_ASM) && !defined(OPNESSL_NO_INLINE_ASM)
+#if !defined(PEDANTIC) && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
 #if defined(__GNUC__) && __GNUC__>=2
 # if defined(__x86_64) || defined(__x86_64__)
 #  define BSWAP8(x) ({ u64 ret=(x);                    \
@@ -122,3 +122,10 @@ struct xts128_context {
        block128_f block1,block2;
 };
 
+struct ccm128_context {
+       union { u64 u[2]; u8 c[16]; } nonce, cmac;
+       u64 blocks;
+       block128_f block;
+       void *key;
+};
+