Home
last modified time | relevance | path

Searched refs:cryptoPrimitive (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreProvider.java147 public static long getKeyStoreOperationHandle(Object cryptoPrimitive) { in getKeyStoreOperationHandle() argument
148 if (cryptoPrimitive == null) { in getKeyStoreOperationHandle()
152 if (cryptoPrimitive instanceof Signature) { in getKeyStoreOperationHandle()
153 spi = ((Signature) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
154 } else if (cryptoPrimitive instanceof Mac) { in getKeyStoreOperationHandle()
155 spi = ((Mac) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
156 } else if (cryptoPrimitive instanceof Cipher) { in getKeyStoreOperationHandle()
157 spi = ((Cipher) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
159 throw new IllegalArgumentException("Unsupported crypto primitive: " + cryptoPrimitive in getKeyStoreOperationHandle()
166 "Crypto primitive not backed by AndroidKeyStore provider: " + cryptoPrimitive in getKeyStoreOperationHandle()