diff mbox series

[v3,3/7] tcgbios: Fix a typo in the sha256 algo description

Message ID 20210709025313.674287-4-stefanb@linux.vnet.ibm.com
State Superseded
Headers show
Series tcgbios: Use the proper hashes for the TPM 2 PCR banks | expand

Commit Message

Stefan Berger July 9, 2021, 2:53 a.m. UTC
From: Stefan Berger <stefanb@linux.ibm.com>

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
 lib/libtpm/sha256.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexey Kardashevskiy July 9, 2021, 5:35 a.m. UTC | #1
On 09/07/2021 12:53, Stefan Berger wrote:
> From: Stefan Berger <stefanb@linux.ibm.com>
> 
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>

Thanks, applied

> ---
>   lib/libtpm/sha256.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/libtpm/sha256.c b/lib/libtpm/sha256.c
> index 292e54e..110dc37 100644
> --- a/lib/libtpm/sha256.c
> +++ b/lib/libtpm/sha256.c
> @@ -96,7 +96,7 @@ static void sha256_block(uint32_t *w, sha256_ctx *ctx)
>   	 *
>   	 *  0 <= i <= 15:
>   	 *    W(t) = M(t)
> -	 * 16 <= i <= 79:
> +	 * 16 <= i <= 63:
>   	 *    W(t) = sigma1(W(t-2)) + W(t-7) + sigma0(W(t-15)) + W(t-16)
>   	 */
>   
>
diff mbox series

Patch

diff --git a/lib/libtpm/sha256.c b/lib/libtpm/sha256.c
index 292e54e..110dc37 100644
--- a/lib/libtpm/sha256.c
+++ b/lib/libtpm/sha256.c
@@ -96,7 +96,7 @@  static void sha256_block(uint32_t *w, sha256_ctx *ctx)
 	 *
 	 *  0 <= i <= 15:
 	 *    W(t) = M(t)
-	 * 16 <= i <= 79:
+	 * 16 <= i <= 63:
 	 *    W(t) = sigma1(W(t-2)) + W(t-7) + sigma0(W(t-15)) + W(t-16)
 	 */