javax.crypto.Cipher: try less specific Cipher/Mode/Padding combinations before throwing InvalidKeyException

Also, return saved spi in getSpi instead of recomputing a new one

Bug: 22208820
Change-Id: Ib52cb6eb104500f73711c15eddfc319cf47dd996
3 files changed