# Re: \[PATCH v3\] Instantiate key with user-provided decrypted data.

- From: Jarkko Sakkinen \<jarkko@kernel.org\>
- Date: 2021-12-29 00:18:36 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2021/12/1620214
- Thread: https://ratatoskr.run/linux-integrity/2021/12/1616890/t.md

```text
On Wed, Dec 22, 2021 at 12:17:57PM -0500, Yael Tiomkin wrote:
> The encrypted.c class supports instantiation of encrypted keys with
> either an already-encrypted key material, or by generating new key
> material based on random numbers. To support encryption of
> user-provided decrypted data, this patch defines a new datablob
> format: [<format>] <master-key name> <decrypted data length>
> <decrypted data>.

So, the code change looks quite legit but why is this needed?

This part is missing from the commit message.

/Jarkko
```
