Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove fixed block size implementations of XEX encryption #4145

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/lib/block/block_cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,6 @@ class Block_Cipher_Fixed_Params : public BaseClass {

size_t block_size() const final { return BS; }

// override to take advantage of compile time constant block size
void encrypt_n_xex(uint8_t data[], const uint8_t mask[], size_t blocks) const final {
xor_buf(data, mask, blocks * BS);
this->encrypt_n(data, data, blocks);
xor_buf(data, mask, blocks * BS);
}

void decrypt_n_xex(uint8_t data[], const uint8_t mask[], size_t blocks) const final {
xor_buf(data, mask, blocks * BS);
this->decrypt_n(data, data, blocks);
xor_buf(data, mask, blocks * BS);
}

Key_Length_Specification key_spec() const final { return Key_Length_Specification(KMIN, KMAX, KMOD); }
};

Expand Down
Loading