Searched refs:keyBytes (Results 1 - 17 of 17) sorted by relevance

/frameworks/base/core/java/android/net/nsd/
H A DDnsSdTxtRecord.java70 byte[] keyBytes;
83 keyBytes = key.getBytes("US-ASCII");
89 for (int i = 0; i < keyBytes.length; i++) {
90 if (keyBytes[i] == '=') {
95 if (keyBytes.length + valLen >= 255) {
103 insert(keyBytes, valBytes, currentLoc);
168 private void insert(byte[] keyBytes, byte[] value, int index) { argument
178 avLen = keyBytes.length + valLen + (value != null ? 1 : 0);
186 System.arraycopy(keyBytes, 0, mData, insertion + 1, keyBytes
[all...]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DRecoverableKeyGenerator.java128 * @param keyBytes The raw bytes of the AES key to be imported.
138 @NonNull byte[] keyBytes)
140 SecretKey key = new SecretKeySpec(keyBytes, SECRET_KEY_ALGORITHM);
136 importKey( @onNull PlatformEncryptionKey platformKey, int userId, int uid, @NonNull String alias, @NonNull byte[] keyBytes) argument
H A DSecureBox.java397 static PublicKey decodePublicKey(byte[] keyBytes) argument
402 Arrays.copyOfRange(keyBytes, 1, 1 + EC_COORDINATE_LEN_BYTES));
407 keyBytes, 1 + EC_COORDINATE_LEN_BYTES, EC_PUBLIC_KEY_LEN_BYTES));
H A DRecoverableKeyStoreManager.java712 * @param keyBytes the raw bytes of the 256-bit AES key.
718 public @Nullable String importKey(@NonNull String alias, @NonNull byte[] keyBytes) argument
722 Preconditions.checkNotNull(keyBytes, "keyBytes is null");
723 if (keyBytes.length != RecoverableKeyGenerator.KEY_SIZE_BITS / Byte.SIZE) {
748 mRecoverableKeyGenerator.importKey(encryptionKey, userId, uid, alias, keyBytes);
751 mApplicationKeyStorage.setSymmetricKeyEntry(userId, uid, alias, keyBytes);
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DTestData.java455 byte[] keyBytes = Base64.getDecoder().decode(INSECURE_PRIVATE_KEY_FOR_ENDPOINT1_BASE64);
457 PKCS8EncodedKeySpec skSpec = new PKCS8EncodedKeySpec(keyBytes);
H A DSecureBoxTest.java359 private static PrivateKey decodePrivateKey(byte[] keyBytes) throws Exception { argument
360 assertThat(keyBytes.length).isEqualTo(32);
361 BigInteger priv = new BigInteger(/*signum=*/ 1, keyBytes);
/frameworks/base/services/core/java/com/android/server/locksettings/
H A DSyntheticPasswordCrypto.java88 public static byte[] encrypt(byte[] keyBytes, byte[] personalisation, byte[] message) { argument
89 byte[] keyHash = personalisedHash(personalisation, keyBytes);
101 public static byte[] decrypt(byte[] keyBytes, byte[] personalisation, byte[] ciphertext) { argument
102 byte[] keyHash = personalisedHash(personalisation, keyBytes);
H A DLockSettingsService.java2098 public @Nullable String importKey(@NonNull String alias, byte[] keyBytes) throws RemoteException { argument
2099 return mRecoverableKeyStoreManager.importKey(alias, keyBytes);
/frameworks/base/services/core/java/com/android/server/updates/
H A DCertificateTransparencyLogInstallReceiver.java151 byte[] keyBytes = Base64.decode(base64PublicKey, Base64.DEFAULT);
153 byte[] id = MessageDigest.getInstance("SHA-256").digest(keyBytes);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCarrierInfoManager.java116 byte[] keyBytes = imsiEncryptionInfo.getPublicKey().getEncoded();
128 contentValues.put(Telephony.CarrierColumns.PUBLIC_KEY, keyBytes);
138 updatedValues.put(Telephony.CarrierColumns.PUBLIC_KEY, keyBytes);
/frameworks/base/core/java/com/android/internal/widget/
H A DILockSettings.aidl65 String importKey(String alias, in byte[] keyBytes);
/frameworks/av/drm/mediacas/plugins/clearkey/
H A DClearKeyCasPlugin.cpp326 const sp<ABuffer>& keyBytes = keys[keyIndex].key_bytes; local
327 CHECK(keyBytes->size() == kUserKeyLength);
330 reinterpret_cast<const uint8_t*>(keyBytes->data()),
/frameworks/base/core/java/android/security/keystore/recovery/
H A DRecoveryController.java650 * keyBytes}.
659 public @NonNull Key importKey(@NonNull String alias, @NonNull byte[] keyBytes) argument
662 String grantAlias = mBinder.importKey(alias, keyBytes);
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
H A DRecoverableKeyStoreDb.java512 byte[] keyBytes =
514 if (keyBytes == null) {
518 return decodeX509Key(keyBytes);
1200 private static PublicKey decodeX509Key(byte[] keyBytes) throws InvalidKeySpecException { argument
1201 X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(keyBytes);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java792 final byte[] keyBytes = key.getBytes();
793 totalSize += INTEGER_BYTE_COUNT + keyBytes.length;
794 values[backedUpSettingIndex * 2] = keyBytes;
H A DSettingsProvider.java2142 final byte[] keyBytes = new byte[32];
2144 rand.nextBytes(keyBytes);
2147 final String userKey = ByteStringUtils.toHexString(keyBytes);
2179 final byte[] keyBytes = ByteStringUtils.fromHexToByteArray(userKey);
2183 if (keyBytes == null || (keyBytes.length != 16 && keyBytes.length != 32)) {
2190 m.init(new SecretKeySpec(keyBytes, m.getAlgorithm()));
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 336 milliseconds