提交 9ee76bd5 编写于 作者: R Russell Currey 提交者: Michael Ellerman

powerpc/pseries: Add helper to get PLPKS password length

Add helper function to get the PLPKS password length. This will be used
in a later patch to support passing the password between kernels over
kexec.
Signed-off-by: NRussell Currey <ruscur@russell.cc>
Signed-off-by: NAndrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: NStefan Berger <stefanb@linux.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230210080401.345462-23-ajd@linux.ibm.com
上级 ca4f1d22
...@@ -171,6 +171,11 @@ u32 plpks_get_maxlargeobjectsize(void); ...@@ -171,6 +171,11 @@ u32 plpks_get_maxlargeobjectsize(void);
*/ */
u64 plpks_get_signedupdatealgorithms(void); u64 plpks_get_signedupdatealgorithms(void);
/**
* Returns the length of the PLPKS password in bytes.
*/
u16 plpks_get_passwordlen(void);
#endif // CONFIG_PSERIES_PLPKS #endif // CONFIG_PSERIES_PLPKS
#endif // _ASM_POWERPC_PLPKS_H #endif // _ASM_POWERPC_PLPKS_H
...@@ -359,6 +359,11 @@ u64 plpks_get_signedupdatealgorithms(void) ...@@ -359,6 +359,11 @@ u64 plpks_get_signedupdatealgorithms(void)
return signedupdatealgorithms; return signedupdatealgorithms;
} }
u16 plpks_get_passwordlen(void)
{
return ospasswordlength;
}
bool plpks_is_available(void) bool plpks_is_available(void)
{ {
int rc; int rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册