Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Unified Diff: src/platform/vboot_reference/vboot_firmware/lib/cryptolib/sha2.c

Issue 2255006: StatefulMem* functions should be library functions. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/vboot_reference/vboot_firmware/lib/cryptolib/sha2.c
diff --git a/src/platform/vboot_reference/vboot_firmware/lib/cryptolib/sha2.c b/src/platform/vboot_reference/vboot_firmware/lib/cryptolib/sha2.c
index 7f476567649d118235d4c03b7fbadb21eb3cc911..e7f78885b25983e0b8c837b23e9fb1b01243ee02 100644
--- a/src/platform/vboot_reference/vboot_firmware/lib/cryptolib/sha2.c
+++ b/src/platform/vboot_reference/vboot_firmware/lib/cryptolib/sha2.c
@@ -378,7 +378,7 @@ uint8_t* SHA256_final(SHA256_CTX* ctx) {
len_b = (ctx->tot_len + ctx->len) << 3;
pm_len = block_nb << 6;
- memset(ctx->block + ctx->len, 0, pm_len - ctx->len);
+ Memset(ctx->block + ctx->len, 0, pm_len - ctx->len);
ctx->block[ctx->len] = 0x80;
UNPACK32(len_b, ctx->block + pm_len - 4);
@@ -568,7 +568,7 @@ uint8_t* SHA512_final(SHA512_CTX* ctx)
len_b = (ctx->tot_len + ctx->len) << 3;
pm_len = block_nb << 7;
- memset(ctx->block + ctx->len, 0, pm_len - ctx->len);
+ Memset(ctx->block + ctx->len, 0, pm_len - ctx->len);
ctx->block[ctx->len] = 0x80;
UNPACK32(len_b, ctx->block + pm_len - 4);

Powered by Google App Engine
This is Rietveld 408576698