Skip to content

mmc-utils: RPMB support

Roman Pen linux-mmc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mmc-utils: RPMB: add HMAC SHA256 support3rdparty/hmac_sha/hmac_sha2.c 3rdparty/hmac_sha/hmac_sha2.h 3rdparty/hmac_sha/sha2.c +2 more+1747 -20 replies
2/2mmc-utils: RPMB: add support for 4 rpmb operationsmmc.c mmc.h mmc_cmds.c +1 more+457 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mmc-utils: RPMB support

This is simple RPMB support for 4 operations:
write-key
read-counter
write-block
read-block

I did not attempt to implement multiple blocks read/write, thus only 1 block (256 b) is supported right now.

Also I had to take HMAC SHA256 implementation as 3rdparty to sign RPMB messages.

Roman Pen (2):
mmc-utils: RPMB: add HMAC SHA256 support
mmc-utils: RPMB: add support for 4 rpmb operations

 3rdparty/hmac_sha/hmac_sha2.c | 544 ++++++++++++++++++++++++
 3rdparty/hmac_sha/hmac_sha2.h | 140 +++++++
 3rdparty/hmac_sha/sha2.c      | 949 ++++++++++++++++++++++++++++++++++++++++++
 3rdparty/hmac_sha/sha2.h      | 108 +++++
 Makefile                      |   8 +-
 mmc.c                         |  28 ++
 mmc.h                         |   6 +
 mmc_cmds.c                    | 419 +++++++++++++++++++
 mmc_cmds.h                    |   4 +
 9 files changed, 2204 insertions(+), 2 deletions(-)
 create mode 100644 3rdparty/hmac_sha/hmac_sha2.c
 create mode 100644 3rdparty/hmac_sha/hmac_sha2.h
 create mode 100644 3rdparty/hmac_sha/sha2.c
 create mode 100644 3rdparty/hmac_sha/sha2.h
Signature · 1 line
2.0.0