Annotation of truecrypt/volume/encryptiontest.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
                      3: 
                      4:  Governed by the TrueCrypt License 2.4 the full text of which is contained
                      5:  in the file License.txt included in TrueCrypt binary and source code
                      6:  distribution packages.
                      7: */
                      8: 
                      9: #ifndef TC_HEADER_Encryption_EncryptionTest
                     10: #define TC_HEADER_Encryption_EncryptionTest
                     11: 
                     12: #include "Platform/Platform.h"
                     13: #include "Common/Crypto.h"
                     14: 
                     15: namespace TrueCrypt
                     16: {
                     17:        class EncryptionTest 
                     18:        {
                     19:        public:
                     20:                static void TestAll ();
                     21: 
                     22:        protected:
                     23:                static void TestCiphers ();
                     24:                static void TestLegacyModes ();
                     25:                static void TestPkcs5 ();
                     26:                static void TestXts ();
                     27:                static void TestXtsAES ();
                     28: 
                     29:        struct XtsTestVector
                     30:        {
                     31:                byte key1[32];
                     32:                byte key2[32];
                     33:                byte dataUnitNo[8];
                     34:                unsigned int blockNo;
                     35:                byte plaintext[ENCRYPTION_DATA_UNIT_SIZE];
                     36:                byte ciphertext[ENCRYPTION_DATA_UNIT_SIZE];
                     37:        };
                     38: 
                     39:        static const XtsTestVector XtsTestVectors[];
                     40: 
                     41:        private:
                     42:                EncryptionTest ();
                     43:                virtual ~EncryptionTest ();
                     44:                EncryptionTest (const EncryptionTest &);
                     45:                EncryptionTest &operator= (const EncryptionTest &);
                     46:        };
                     47: }
                     48: 
                     49: #endif // TC_HEADER_Encryption_EncryptionTest

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.