summaryrefslogtreecommitdiff
path: root/security/keymint/support/remote_prov_utils.cpp
diff options
context:
space:
mode:
authorSeth Moore <sethmo@google.com>2021-06-23 14:28:11 -0700
committerSeth Moore <sethmo@google.com>2021-06-24 12:45:23 -0700
commit7a55ae3ddccfe736398101a8186441b17143425a (patch)
tree31abb3313ec94c4ee832a6a3355599ca95368b6a /security/keymint/support/remote_prov_utils.cpp
parent5d3dd75690635b52c2d02f550d718a41273e0a43 (diff)
Fix flaky corrupted padding tests
It's possible that corrupted ciphertext decrypts just fine. e.g. the output ends with "0x01". However, the chances of this happening are relatively low (roughly 1/256). Corrupt the ciphertext up to 8 times, ensuring that the likelihood of multiple successful decryptions is so miniscule that it's effectively impossible. Test: Ran *PaddingCorrupted tests 50000 times Change-Id: If40ecd7817819921c020ea9b86ada18c4c77ea55
Diffstat (limited to 'security/keymint/support/remote_prov_utils.cpp')
0 files changed, 0 insertions, 0 deletions