diff options
author | nagendra modadugu <ngm@google.com> | 2016-02-22 15:31:38 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-03-30 20:38:12 -0700 |
commit | 19bfaa46e5d11f57d219962b6968f2518147a371 (patch) | |
tree | 999818c92e902ae0a17c0ea951a5842842d5e29b /test | |
parent | 20f5efafc8c02ad1ada7dd1ca5256af9dfc439ab (diff) | |
download | chrome-ec-19bfaa46e5d11f57d219962b6968f2518147a371.tar.gz |
CR50: add support for RSA PKCS1-PSS padding
Add support for PSS padding as per RFC 3447.
BRANCH=none
BUG=chrome-os-partner:43025,chrome-os-partner:47524
TEST=tests under tpm2 pass
Change-Id: I14c58394f742daa5de4ec2fbeb7e7f14e54c9fcc
Signed-off-by: nagendra modadugu <ngm@google.com>
Reviewed-on: https://chromium-review.googlesource.com/328778
Commit-Ready: Nagendra Modadugu <ngm@google.com>
Tested-by: Nagendra Modadugu <ngm@google.com>
Reviewed-by: Nagendra Modadugu <ngm@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/tpm_test/rsa_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/tpm_test/rsa_test.py b/test/tpm_test/rsa_test.py index 0783f957fd..37ffbd2677 100644 --- a/test/tpm_test/rsa_test.py +++ b/test/tpm_test/rsa_test.py @@ -25,6 +25,7 @@ _RSA_OPCODES = { _RSA_PADDING = { 'PKCS1-SSA': 0x14, 'PKCS1-ES': 0x15, + 'PKCS1-PSS': 0x16, 'OAEP': 0x17 } @@ -113,9 +114,10 @@ _ENCRYPT_INPUTS = ( _SIGN_INPUTS = ( - # TODO(ngm): add support for PSS. ('PKCS1-SSA', 'SHA1', 768), ('PKCS1-SSA', 'SHA256', 768), + ('PKCS1-PSS', 'SHA1', 768), + ('PKCS1-PSS', 'SHA256', 768), ) |