On 4/5/25 1:15 AM, Eric Biggers wrote: > From: Eric Biggers <ebigg...@google.com> > > qcom_ice_program_key() currently accepts the key as an array of bytes, > algorithm ID, key size enum, and data unit size. However both callers > have a struct blk_crypto_key which contains all that information. Thus > they both have similar code that converts the blk_crypto_key into the > form that qcom_ice_program_key() wants. Once wrapped key support is > added, the key type would need to be added to the arguments too. > > Therefore, this patch changes qcom_ice_program_key() to take in all this > information as a struct blk_crypto_key directly. The calling code is > updated accordingly. This ends up being much simpler, and it makes the > key type be passed down automatically once wrapped key support is added. > > Based on a patch by Gaurav Kashyap <quic_gaurk...@quicinc.com> that > replaced the byte array argument only. This patch makes the > blk_crypto_key replace other arguments like the algorithm ID too, > ensuring that there remains only one source of truth. > > Acked-by: Manivannan Sadhasivam <manivannan.sadhasi...@linaro.org> > Tested-by: Bartosz Golaszewski <bartosz.golaszew...@linaro.org> # sm8650 > Signed-off-by: Eric Biggers <ebigg...@google.com> > ---
Acked-by: Konrad Dybcio <konrad.dyb...@oss.qualcomm.com> Konrad