summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Eran Messeri <eranm@google.com> 2023-04-20 18:09:01 +0100
committer Eran Messeri <eranm@google.com> 2023-04-26 11:40:35 +0100
commit05d046390769a8ba6f113ea6b191d9addf183627 (patch)
tree90027ee5d491b372173c15547e43f55647e1eaac /libs/androidfw/StringPool.cpp
parentb36fa7723ab2f105b532be74cbfa5cdb902a4b79 (diff)
Do not add the MGF Digest tag for upgraded keys
If a key does not have the MGF_DIGEST tag in its key characteristics, do not include the MGF_DIGEST tag for it (even if the algorithm string specifies it). This fixes an issue with keys that were generated on Android 13, where the MGF_DIGEST tag was not propagated from the SPI layer. Such keys will not have the MGF_DIGEST tag and so it will not be added by the SPI layer even if the algorithm string specifies it. This maintains Android 13's (incorrect) behaviour of ignoring the MGF Digest specification, but is necessary to use those keys (otherwise KeyMint will error out on begin() due to an incompatible MGF digest specification). Bug: 278157584 Test: atest CtsKeystoreWycheproofTestCases:com.google.security.wycheproof.RsaOaepTest Change-Id: I0f1fa7983f9c771bec3196c6a617eb7044ac2e79
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions