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.java161 public static long getKeyStoreOperationHandle(Object cryptoPrimitive) { in getKeyStoreOperationHandle() argument
162 if (cryptoPrimitive == null) { in getKeyStoreOperationHandle()
166 if (cryptoPrimitive instanceof Signature) { in getKeyStoreOperationHandle()
167 spi = ((Signature) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
168 } else if (cryptoPrimitive instanceof Mac) { in getKeyStoreOperationHandle()
169 spi = ((Mac) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
170 } else if (cryptoPrimitive instanceof Cipher) { in getKeyStoreOperationHandle()
171 spi = ((Cipher) cryptoPrimitive).getCurrentSpi(); in getKeyStoreOperationHandle()
173 throw new IllegalArgumentException("Unsupported crypto primitive: " + cryptoPrimitive in getKeyStoreOperationHandle()
180 "Crypto primitive not backed by AndroidKeyStore provider: " + cryptoPrimitive in getKeyStoreOperationHandle()