Dear dm-crypt developer, Hi, I'm Yoo-Seung Won who works at Nanyang Technological University. I use your open source to encrypt some file or disks. My question is below. I want to encrypt single file using some commands as below. ======================================================================================================================== cryptsetup --verbose --cipher=aes-ecb --key-size=128 --key-file=/dev/example/aes_key.bin open --type=plain /dev/example/aes_data.bin enc I know the meaning of each commands because I read the document. aes_key.bin only has 16 bytes 0x00 (That is, 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00) I means this file only consists of hexa. And, aes_data.bin has 0x800 bytes 0x00 (That is, 0x00 0x00 ........ 0x00) ======================================================================================================================== Finally, I got the enc in /dev/mapper I opened the enc file. There is only 0x600 bytes. (I expected the 0x800 bytes because I use the AES-ECB) Also, 0x600 bytes are composed of 96 16bytes (14 0f 0f 10 11 b5 22 3d 79 5 77 17 ff d9 ec 3a). I expected that 128 16bytes (66 E9 4B D4 EF 8A 2C 3B 88 4C FA 59 CA 34 2B 2E) because I used the all zero keys and all zero data Encrypted data = AES(data / key) 66 E9 4B D4 EF 8A 2C 3B 88 4C FA 59 CA 34 2B 2E = AES(00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00 / 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00) I think that the encrypted data is wrong and file size also is wrong. If you don't mind, could you tell me what I miss? Best Wishes, Yoo-Seung. ________________________________ CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents. Towards a sustainable earth: Print only when necessary. Thank you. _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx https://www.saout.de/mailman/listinfo/dm-crypt