diff options
| author | Tom Rini <[email protected]> | 2026-02-11 08:37:44 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-02-11 08:37:44 -0600 |
| commit | 0e4baa329143a77b51a6fb9b11abe436f6b81e7a (patch) | |
| tree | 94a88ff6e3871b182a43c5a1abeb8d9cf3df7db1 /lib | |
| parent | 712765339a5c6576fdd5683748f97a1215868d5d (diff) | |
| parent | 1e79d9c763cf666e146f30ebd45cb486c913122d (diff) | |
Merge tag 'tpm-master-11022026' of https://source.denx.de/u-boot/custodians/u-boot-tpm
A coverity fix and documentation update from Heiko on SM3 support
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sm3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sm3.c b/lib/sm3.c index 2a4e825481d..05880099703 100644 --- a/lib/sm3.c +++ b/lib/sm3.c @@ -249,7 +249,7 @@ void sm3_final(struct sm3_context *sctx, uint8_t output[SM3_DIGEST_SIZE]) sctx->buffer[partial++] = 0x80; if (partial > bit_offset) { - memset(sctx->buffer + partial, 0, SM3_BLOCK_SIZE - partial); + memset(sctx->buffer + partial, 0, SM3_BLOCK_SIZE - partial - 1); partial = 0; sm3_block(sctx, sctx->buffer, 1, W); |
