mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
powerpc/pseries: Add helper to get PLPKS password length
[ Upstream commit9ee76bd5c7
] 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: Russell Currey <ruscur@russell.cc> Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20230210080401.345462-23-ajd@linux.ibm.com Stable-dep-of:932bed4121
("powerpc/kexec_file: fix cpus node update to FDT") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ef27c8adce
commit
d746b2f0c2
2 changed files with 10 additions and 0 deletions
|
@ -153,6 +153,11 @@ u32 plpks_get_maxlargeobjectsize(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 // _ASM_POWERPC_PLPKS_H
|
||||
|
|
|
@ -348,6 +348,11 @@ u64 plpks_get_signedupdatealgorithms(void)
|
|||
return signedupdatealgorithms;
|
||||
}
|
||||
|
||||
u16 plpks_get_passwordlen(void)
|
||||
{
|
||||
return ospasswordlength;
|
||||
}
|
||||
|
||||
bool plpks_is_available(void)
|
||||
{
|
||||
int rc;
|
||||
|
|
Loading…
Reference in a new issue