Skip to content

Add sha256#16

Merged
dpsmith merged 10 commits intoTrenchBoot:masterfrom
3mdeb:add_sha256
Feb 17, 2020
Merged

Add sha256#16
dpsmith merged 10 commits intoTrenchBoot:masterfrom
3mdeb:add_sha256

Conversation

@miczyg1
Copy link
Collaborator

@miczyg1 miczyg1 commented Dec 4, 2019

No description provided.

@@ -1002,20 +1002,25 @@ struct tpm *enable_tpm(void)

void tpm_request_locality(struct tpm *t, u8 l)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is declared as void but you are returning a value?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

include/sha256.h Outdated

void sha256sum(u8 *hash, void *data, u32 len);

#endif /* SHA256_H */ No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

miczyg1 and others added 10 commits February 17, 2020 14:20
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Stack overflows by ~64 bytes.

Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
@andyhhp
Copy link
Collaborator

andyhhp commented Feb 17, 2020

I'll do a followup to consolidate the byteswap functionality. This series' implementation of cpu_to_be64 looks to generate correct code, but does it longhand rather than using the bswap instruction.

Copy link
Collaborator

@rossphilipson rossphilipson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-by: Ross Philipson ross.philipson@oracle.com

@dpsmith dpsmith merged commit 3312de3 into TrenchBoot:master Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants