We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 333d571 commit a8bfde0Copy full SHA for a8bfde0
main.cpp
@@ -4960,6 +4960,10 @@ bool encrypt_command::execute(device_map &devices) {
4960
aes_file->exceptions(std::iostream::failbit | std::iostream::badbit);
4961
4962
aes_key_share_t aes_key_share;
4963
+ aes_file->seekg(0, std::ios::end);
4964
+ if (aes_file->tellg() != 128) {
4965
+ fail(ERROR_INCOMPATIBLE, "The AES key share must be a 128 byte file (the supplied file is %d bytes)", aes_file->tellg());
4966
+ }
4967
aes_file->read((char*)aes_key_share.bytes, sizeof(aes_key_share.bytes));
4968
4969
aes_key_t aes_key;
0 commit comments