Searched refs:cryptoPrimitive (Results 1 – 1 of 1) sorted by relevance
161 public static long getKeyStoreOperationHandle(Object cryptoPrimitive) { in getKeyStoreOperationHandle() argument162 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()