Home
last modified time | relevance | path

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

/frameworks/base/keystore/java/android/security/
DSystemKeyStore.java48 public static String toHexString(byte[] keyData) { in toHexString() argument
49 if (keyData == null) { in toHexString()
52 int keyLen = keyData.length; in toHexString()
53 int expectedStringLen = keyData.length * 2; in toHexString()
55 for (int i = 0; i < keyData.length; i++) { in toHexString()
56 String hexStr = Integer.toString(keyData[i] & 0x00FF, 16); in toHexString()
DKeyStore.java643 private int importKeyInternal(String alias, KeymasterArguments args, int format, byte[] keyData, in importKeyInternal() argument
649 int error = mBinder.importKey(promise, alias, args, format, keyData, uid, flags); in importKeyInternal()
666 public int importKey(String alias, KeymasterArguments args, int format, byte[] keyData, in importKey() argument
669 int error = importKeyInternal(alias, args, format, keyData, uid, flags, in importKey()
673 error = importKeyInternal(alias, args, format, keyData, uid, flags, in importKey()
686 public int importKey(String alias, KeymasterArguments args, int format, byte[] keyData, in importKey() argument
688 return importKey(alias, args, format, keyData, UID_SELF, flags, outCharacteristics); in importKey()
691 private String getAlgorithmFromPKCS8(byte[] keyData) { in getAlgorithmFromPKCS8() argument
693 final ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(keyData)); in getAlgorithmFromPKCS8()
733 public boolean importKey(String alias, byte[] keyData, int uid, int flags) { in importKey() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncTaskTest.java552 WrappedApplicationKey keyData = applicationKeys.get(0); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey() local
553 assertEquals(TEST_APP_KEY_ALIAS, keyData.getAlias()); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
554 assertThat(keyData.getAlias()).isEqualTo(keyData.getAlias()); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
556 recoveryKey, keyData.getEncryptedKeyMaterial(), TEST_APP_KEY_METADATA_NULL); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
577 WrappedApplicationKey keyData = applicationKeys.get(0); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNullKeyMetadata() local
578 assertThat(keyData.getAlias()).isEqualTo(TEST_APP_KEY_ALIAS); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNullKeyMetadata()
579 assertThat(keyData.getMetadata()).isEqualTo(TEST_APP_KEY_METADATA_NULL); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNullKeyMetadata()
601 WrappedApplicationKey keyData = applicationKeys.get(0); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNonNullKeyMetadata() local
602 assertThat(keyData.getAlias()).isEqualTo(TEST_APP_KEY_ALIAS); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNonNullKeyMetadata()
603 assertThat(keyData.getMetadata()).isEqualTo(TEST_APP_KEY_METADATA_NON_NULL); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNonNullKeyMetadata()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp3478 auto keyData = heapbuffer<uint8_t>(keySize); in parseQTMetaKey() local
3479 if (keyData.get() == NULL) { in parseQTMetaKey()
3483 keyOffset, keyData.get(), keySize) < (ssize_t) keySize) { in parseQTMetaKey()
3487 AString key((const char *)keyData.get(), keySize); in parseQTMetaKey()