| commit | 05051e40351ccf55f44ea5f0cef6569a18bb5ceb | [log] [tgz] |
|---|---|---|
| author | Avri Altman <avri.altman@wdc.com> | Mon Apr 07 11:28:29 2025 +0300 |
| committer | Ulf Hansson <ulf.hansson@linaro.org> | Tue Apr 22 17:02:18 2025 +0200 |
| tree | 4586d2def60b55bd13b00bdf7f3b52a9f7e743c6 | |
| parent | f4247f56085f3e9ca6a876793c6def52b0c56bdc [diff] |
mmc-utils: Refactor RPMB key handling into a separate function This patch refactors the key handling logic into a new function `rpmb_get_key`. The new function centralizes the logic for reading the key from a file or standard input, and optionally performing HMAC SHA256 encryption. Signed-off-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20250407082833.108616-7-avri.altman@sandisk.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>