Searched hist:"95 adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a" (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm1-cmd.c | diff 95adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a Fri Oct 19 13:23:07 CDT 2018 Tomas Winkler <tomas.winkler@intel.com> tpm: use u32 instead of int for PCR index
The TPM specs defines PCR index as a positive number, and there is no reason to use a signed number. It is also a possible security issue as currently no functions check for a negative index, which may become a large number when converted to u32.
Adjust the API to use u32 instead of int in all PCR related functions.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
|
H A D | tpm-sysfs.c | diff 95adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a Fri Oct 19 13:23:07 CDT 2018 Tomas Winkler <tomas.winkler@intel.com> tpm: use u32 instead of int for PCR index
The TPM specs defines PCR index as a positive number, and there is no reason to use a signed number. It is also a possible security issue as currently no functions check for a negative index, which may become a large number when converted to u32.
Adjust the API to use u32 instead of int in all PCR related functions.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
|
H A D | tpm-interface.c | diff 95adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a Fri Oct 19 13:23:07 CDT 2018 Tomas Winkler <tomas.winkler@intel.com> tpm: use u32 instead of int for PCR index
The TPM specs defines PCR index as a positive number, and there is no reason to use a signed number. It is also a possible security issue as currently no functions check for a negative index, which may become a large number when converted to u32.
Adjust the API to use u32 instead of int in all PCR related functions.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
|
H A D | tpm2-cmd.c | diff 95adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a Fri Oct 19 13:23:07 CDT 2018 Tomas Winkler <tomas.winkler@intel.com> tpm: use u32 instead of int for PCR index
The TPM specs defines PCR index as a positive number, and there is no reason to use a signed number. It is also a possible security issue as currently no functions check for a negative index, which may become a large number when converted to u32.
Adjust the API to use u32 instead of int in all PCR related functions.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
|
H A D | tpm.h | diff 95adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a Fri Oct 19 13:23:07 CDT 2018 Tomas Winkler <tomas.winkler@intel.com> tpm: use u32 instead of int for PCR index
The TPM specs defines PCR index as a positive number, and there is no reason to use a signed number. It is also a possible security issue as currently no functions check for a negative index, which may become a large number when converted to u32.
Adjust the API to use u32 instead of int in all PCR related functions.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
|
/openbmc/linux/include/linux/ |
H A D | tpm.h | diff 95adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a Fri Oct 19 13:23:07 CDT 2018 Tomas Winkler <tomas.winkler@intel.com> tpm: use u32 instead of int for PCR index
The TPM specs defines PCR index as a positive number, and there is no reason to use a signed number. It is also a possible security issue as currently no functions check for a negative index, which may become a large number when converted to u32.
Adjust the API to use u32 instead of int in all PCR related functions.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
|
/openbmc/linux/security/integrity/ima/ |
H A D | ima_crypto.c | diff 95adc6b410b7aa895dcf5ed9cb7dc4a20a3d5c5a Fri Oct 19 13:23:07 CDT 2018 Tomas Winkler <tomas.winkler@intel.com> tpm: use u32 instead of int for PCR index
The TPM specs defines PCR index as a positive number, and there is no reason to use a signed number. It is also a possible security issue as currently no functions check for a negative index, which may become a large number when converted to u32.
Adjust the API to use u32 instead of int in all PCR related functions.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
|