Skip to content
Commit 70cf430e authored by Janis Danisevskis's avatar Janis Danisevskis Committed by Hasini Gunasinghe
Browse files

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
parent c66289eb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment