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 -- 2.0.0 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html