vfs/cbe_trust_anchor: fix bug in key decrypt

The plugin used the ciphertext instead of the plaintext buffer for key
decryption which led to bogus ciphertext keys.

Ref #4032
This commit is contained in:
Martin Stein 2021-03-30 20:50:38 +02:00 committed by Norman Feske
parent a661aa79de
commit 8dfa586462

View File

@ -298,8 +298,8 @@ struct Util::Trust_anchor_vfs
} }
_decrypt_io_buffer = { _decrypt_io_buffer = {
.base = _job.cipher.value, .base = _job.plain.value,
.size = sizeof (_job.cipher) .size = sizeof (_job.plain)
}; };
job.type = Job::Type::DECRYPT_READ; job.type = Job::Type::DECRYPT_READ;