commit | 70cf430ede6a658fa4117bb06054141ba7ca5e20 | [log] [tgz] |
---|---|---|
author | Janis Danisevskis <jdanis@google.com> | Mon Apr 19 10:47:01 2021 -0700 |
committer | Hasini Gunasinghe <hasinitg@google.com> | Thu Apr 22 14:55:45 2021 +0000 |
tree | 83f793a2ef3ba7afdf98c915a06a90799f16e2e2 | |
parent | c66289ebd2142309f2feaf2906fa30c484f85e7e [diff] |
Keystore 2.0 SPI: Fix engineDoFinal with null input. AndroidKeyStoreCipherSpiBase.engineDoFinal may get called with a null input argument. In the case where we forward the operation to the default provider doFinal() needs to be called instead of doFinal(byte[], int, int). Bug: 183913233 Test: atest android.keystore.cts.CipherTest#testEncryptsAndDecryptsUsingCipherStreams Change-Id: Ia3afaf281be7c8e5493ac8e4155a7aa02d1d37f0