diff options
Diffstat (limited to 'keystore/java/android/security/KeyStoreHmacSpi.java')
-rw-r--r-- | keystore/java/android/security/KeyStoreHmacSpi.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/keystore/java/android/security/KeyStoreHmacSpi.java b/keystore/java/android/security/KeyStoreHmacSpi.java index 6d0e1ae..a5864a4 100644 --- a/keystore/java/android/security/KeyStoreHmacSpi.java +++ b/keystore/java/android/security/KeyStoreHmacSpi.java @@ -117,7 +117,7 @@ public abstract class KeyStoreHmacSpi extends MacSpi implements KeyStoreCryptoOp if (opResult == null) { throw new KeyStoreConnectException(); } else if (opResult.resultCode != KeyStore.NO_ERROR) { - throw KeymasterUtils.getCryptoOperationException(opResult.resultCode); + throw KeyStore.getCryptoOperationException(opResult.resultCode); } if (opResult.token == null) { throw new CryptoOperationException("Keystore returned null operation token"); @@ -141,8 +141,8 @@ public abstract class KeyStoreHmacSpi extends MacSpi implements KeyStoreCryptoOp byte[] output; try { output = mChunkedStreamer.update(input, offset, len); - } catch (KeymasterException e) { - throw KeymasterUtils.getCryptoOperationException(e); + } catch (KeyStoreException e) { + throw KeyStore.getCryptoOperationException(e); } if ((output != null) && (output.length != 0)) { throw new CryptoOperationException("Update operation unexpectedly produced output"); @@ -156,8 +156,8 @@ public abstract class KeyStoreHmacSpi extends MacSpi implements KeyStoreCryptoOp byte[] result; try { result = mChunkedStreamer.doFinal(null, 0, 0); - } catch (KeymasterException e) { - throw KeymasterUtils.getCryptoOperationException(e); + } catch (KeyStoreException e) { + throw KeyStore.getCryptoOperationException(e); } engineReset(); |