Home
last modified time | relevance | path

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

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreAuthenticatedAESCipherSpi.java214 @NonNull KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParametersToBegin()
215 super.addAlgorithmSpecificParametersToBegin(keymasterArgs); in addAlgorithmSpecificParametersToBegin()
216 keymasterArgs.addUnsignedInt(KeymasterDefs.KM_TAG_MAC_LENGTH, mTagLengthBits); in addAlgorithmSpecificParametersToBegin()
289 @NonNull KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParametersToBegin()
297 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, KeymasterDefs.KM_ALGORITHM_AES); in addAlgorithmSpecificParametersToBegin()
298 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_BLOCK_MODE, mKeymasterBlockMode); in addAlgorithmSpecificParametersToBegin()
299 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_PADDING, mKeymasterPadding); in addAlgorithmSpecificParametersToBegin()
301 keymasterArgs.addBytes(KeymasterDefs.KM_TAG_NONCE, mIv); in addAlgorithmSpecificParametersToBegin()
307 @NonNull KeymasterArguments keymasterArgs) { in loadAlgorithmSpecificParametersFromBeginResult()
311 byte[] returnedIv = keymasterArgs.getBytes(KeymasterDefs.KM_TAG_NONCE, null); in loadAlgorithmSpecificParametersFromBeginResult()
[all …]
DAndroidKeyStoreUnauthenticatedAESCipherSpi.java241 @NonNull KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParametersToBegin()
249 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, KeymasterDefs.KM_ALGORITHM_AES); in addAlgorithmSpecificParametersToBegin()
250 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_BLOCK_MODE, mKeymasterBlockMode); in addAlgorithmSpecificParametersToBegin()
251 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_PADDING, mKeymasterPadding); in addAlgorithmSpecificParametersToBegin()
253 keymasterArgs.addBytes(KeymasterDefs.KM_TAG_NONCE, mIv); in addAlgorithmSpecificParametersToBegin()
259 @NonNull KeymasterArguments keymasterArgs) { in loadAlgorithmSpecificParametersFromBeginResult()
263 byte[] returnedIv = keymasterArgs.getBytes(KeymasterDefs.KM_TAG_NONCE, null); in loadAlgorithmSpecificParametersFromBeginResult()
DAndroidKeyStore3DESCipherSpi.java251 protected void addAlgorithmSpecificParametersToBegin(KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParametersToBegin() argument
259 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, KeymasterDefs.KM_ALGORITHM_3DES); in addAlgorithmSpecificParametersToBegin()
260 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_BLOCK_MODE, mKeymasterBlockMode); in addAlgorithmSpecificParametersToBegin()
261 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_PADDING, mKeymasterPadding); in addAlgorithmSpecificParametersToBegin()
263 keymasterArgs.addBytes(KeymasterDefs.KM_TAG_NONCE, mIv); in addAlgorithmSpecificParametersToBegin()
269 KeymasterArguments keymasterArgs) { in loadAlgorithmSpecificParametersFromBeginResult() argument
273 byte[] returnedIv = keymasterArgs.getBytes(KeymasterDefs.KM_TAG_NONCE, null); in loadAlgorithmSpecificParametersFromBeginResult()
DAndroidKeyStoreRSACipherSpi.java295 KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParametersToBegin() argument
296 super.addAlgorithmSpecificParametersToBegin(keymasterArgs); in addAlgorithmSpecificParametersToBegin()
297 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_DIGEST, mKeymasterDigest); in addAlgorithmSpecificParametersToBegin()
302 @NonNull KeymasterArguments keymasterArgs) { in loadAlgorithmSpecificParametersFromBeginResult()
303 super.loadAlgorithmSpecificParametersFromBeginResult(keymasterArgs); in loadAlgorithmSpecificParametersFromBeginResult()
460 @NonNull KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParametersToBegin()
461 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, KeymasterDefs.KM_ALGORITHM_RSA); in addAlgorithmSpecificParametersToBegin()
466 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_PADDING, keymasterPadding); in addAlgorithmSpecificParametersToBegin()
472 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_DIGEST, KeymasterDefs.KM_DIGEST_NONE); in addAlgorithmSpecificParametersToBegin()
478 @NonNull KeymasterArguments keymasterArgs) { in loadAlgorithmSpecificParametersFromBeginResult()
DAndroidKeyStoreRSASignatureSpi.java159 @NonNull KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParametersToBegin()
160 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, KeymasterDefs.KM_ALGORITHM_RSA); in addAlgorithmSpecificParametersToBegin()
161 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_DIGEST, mKeymasterDigest); in addAlgorithmSpecificParametersToBegin()
162 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_PADDING, mKeymasterPadding); in addAlgorithmSpecificParametersToBegin()
DAndroidKeyStoreHmacSpi.java161 KeymasterArguments keymasterArgs = new KeymasterArguments(); in ensureKeystoreOperationInitialized() local
162 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, KeymasterDefs.KM_ALGORITHM_HMAC); in ensureKeystoreOperationInitialized()
163 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_DIGEST, mKeymasterDigest); in ensureKeystoreOperationInitialized()
164 keymasterArgs.addUnsignedInt(KeymasterDefs.KM_TAG_MAC_LENGTH, mMacSizeBits); in ensureKeystoreOperationInitialized()
170 keymasterArgs, in ensureKeystoreOperationInitialized()
DAndroidKeyStoreECDSASignatureSpi.java186 @NonNull KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParametersToBegin()
187 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_ALGORITHM, KeymasterDefs.KM_ALGORITHM_EC); in addAlgorithmSpecificParametersToBegin()
188 keymasterArgs.addEnum(KeymasterDefs.KM_TAG_DIGEST, mKeymasterDigest); in addAlgorithmSpecificParametersToBegin()
DAndroidKeyStoreCipherSpiBase.java905 @NonNull KeymasterArguments keymasterArgs); in addAlgorithmSpecificParametersToBegin()
919 @NonNull KeymasterArguments keymasterArgs); in loadAlgorithmSpecificParametersFromBeginResult()
DAndroidKeyStoreSignatureSpiBase.java430 @NonNull KeymasterArguments keymasterArgs); in addAlgorithmSpecificParametersToBegin()
DAndroidKeyStoreKeyPairGeneratorSpi.java639 private void addAlgorithmSpecificParameters(KeymasterArguments keymasterArgs) { in addAlgorithmSpecificParameters() argument
642 keymasterArgs.addUnsignedLong( in addAlgorithmSpecificParameters()