diff options
| author | 2023-07-10 17:46:16 +0000 | |
|---|---|---|
| committer | 2023-07-10 17:46:16 +0000 | |
| commit | dde5ebaa583af372926e75a4ac495e7c78691cc1 (patch) | |
| tree | c6ab3a931ce84f60858eeac1a743aeb2e74bb9c8 /api/api.go | |
| parent | bc38028c8d2938d866fff1bba9d947e444f6106a (diff) | |
Fix Rsa-Oaep operation begin on T+GSI build
Mixed build of Android T + U GSI misses to add RSA_OAEP_MGF_DIGEST in
key begin operation parameters and hence RSA cipher operation fails.
This was due to Keymint 200 implementation in Android T supported
RSA_OAEP_MGF_DIGEST tag but did not included into key characteristics and
the check in AndroidKeyStoreRSACipherSpi fails on Android T + U GSI
builds.
To fix this issue additional condition added to check if key
characteristics do not have RSA_OAEP_MGF_DIGEST tag but the KeyMint
version is 200 then it has to include in operation parameters.
Bug: 289859292
Bug: 289749312
Bug: 287891167
Bug: 287532460
Test: atest CtsKeystoreWycheproofTestCases:com.google.security.wycheproof.RsaOaepTest
Test: atest CtsKeystoreTestCases:android.keystore.cts.CipherTest#testKatBasicWithDifferentProviders
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d8b18413ade6ba13817caae52abdffc609a92d89)
Merged-In: I13ca50a45e733276d1451d17904780eff86bf296
Change-Id: I13ca50a45e733276d1451d17904780eff86bf296
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions