]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crypto/isa-l/isa-l_crypto/aes/xts_128_expanded_key_test.c
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crypto / isa-l / isa-l_crypto / aes / xts_128_expanded_key_test.c
index 3b294ef70a6fc8368201bc91b8110ecb6955cd22..27599f0ca04335ee19d1838e80ab58be998c049f 100644 (file)
@@ -2,7 +2,7 @@
   Copyright(c) 2011-2016 Intel Corporation All rights reserved.
 
   Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions 
+  modification, are permitted provided that the following conditions
   are met:
     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
@@ -63,7 +63,7 @@ int main(void)
                XTS_AES_128_enc_expanded_key(expkey2_enc, expkey1_enc, vlist[i].TW,
                                             vlist[i].ptlen, vlist[i].PTX, ct_test);
 
-               // Carry out comparison of the calculated ciphertext with 
+               // Carry out comparison of the calculated ciphertext with
                // the reference
                for (j = 0; j < vlist[i].ptlen; j++) {
 
@@ -89,7 +89,7 @@ int main(void)
                        printf("Can't allocate plaintext memory\n");
                        return -1;
                }
-               // Pre-expand keys for the decryption 
+               // Pre-expand keys for the decryption
                aes_keyexp_128(vlist[i].key1, expkey1_enc, expkey1_dec);
                aes_keyexp_128(vlist[i].key2, expkey2_enc, null_key);
 
@@ -97,7 +97,7 @@ int main(void)
                XTS_AES_128_dec_expanded_key(expkey2_enc, expkey1_dec, vlist[i].TW,
                                             vlist[i].ptlen, vlist[i].CTX, pt_test);
 
-               // Carry out comparison of the calculated ciphertext with 
+               // Carry out comparison of the calculated ciphertext with
                // the reference
                for (j = 0; j < vlist[i].ptlen; j++) {