Home
last modified time | relevance | path

Searched refs:getEncoded (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/core/java/android/util/apk/
DVerbatimX509Certificate.java37 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in VerbatimX509Certificate
47 byte[] a = this.getEncoded(); in equals()
48 byte[] b = ((VerbatimX509Certificate) o).getEncoded(); in equals()
59 mHash = Arrays.hashCode(this.getEncoded()); in hashCode()
DWrappedX509Certificate.java149 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in WrappedX509Certificate
150 return mWrapped.getEncoded(); in getEncoded()
/frameworks/base/wifi/tests/src/android/net/wifi/
DParcelUtilTest.java64 assertArrayEquals(writeKey.getEncoded(), readKey.getEncoded()); in readWriteValidPrivateKey()
84 assertArrayEquals(writeCert.getEncoded(), readCert.getEncoded()); in readWriteValidCertificate()
109 assertArrayEquals(writeCerts[i].getEncoded(), readCerts[i].getEncoded()); in readWriteValidCertificates()
DWifiEnterpriseConfigTest.java391 assertArrayEquals(clientKey.getEncoded(), actualClientKey.getEncoded()); in parcelConfigWithKeyAndCerts()
395 assertArrayEquals(clientCert.getEncoded(), actualClientCert.getEncoded()); in parcelConfigWithKeyAndCerts()
402 assertArrayEquals(caCerts[i].getEncoded(), actualCaCerts[i].getEncoded()); in parcelConfigWithKeyAndCerts()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java93 assertEquals(RECOVERY_KEY_LENGTH_BITS / Byte.SIZE, key.getEncoded().length); in generateRecoveryKey_returnsA256BitKey()
101 assertFalse(Arrays.equals(a.getEncoded(), b.getEncoded())); in generateRecoveryKey_generatesANewKeyEachTime()
141 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata()
144 assertArrayEquals(applicationKey.getEncoded(), keyMaterial); in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata()
158 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_decryptsAnApplicationKey_nonNullMetadata()
161 assertArrayEquals(applicationKey.getEncoded(), keyMaterial); in decryptApplicationKey_decryptsAnApplicationKey_nonNullMetadata()
175 KeySyncUtils.decryptApplicationKey(KeySyncUtils.generateRecoveryKey().getEncoded(), in decryptApplicationKey_throwsIfUnableToDecrypt()
202 KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_throwsIfWrongMetadata()
209 KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_throwsIfWrongMetadata()
216 KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_throwsIfWrongMetadata()
[all …]
DWrappedKeyTest.java132 assertArrayEquals(appKey.getEncoded(), unwrappedKeys.get(alias).first.getEncoded()); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata()
151 assertArrayEquals(appKey.getEncoded(), unwrappedKeys.get(alias).first.getEncoded()); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata()
/frameworks/base/core/java/android/net/
DUri.java577 return getSsp().getEncoded(); in getEncodedSchemeSpecificPart()
607 return getAuthorityPart().getEncoded(); in getEncodedAuthority()
627 return getPathPart().getEncoded(); in getEncodedPath()
667 return getQueryPart().getEncoded(); in getEncodedQuery()
704 return getFragmentPart().getEncoded(); in getEncodedFragment()
908 return ssp.getEncoded(); in getEncodedSchemeSpecificPart()
944 return fragment.getEncoded(); in getEncodedFragment()
986 sb.append('#').append(fragment.getEncoded()); in toString()
1088 return getUserInfoPart().getEncoded(); in getEncodedUserInfo()
1239 return getSsp().getEncoded(); in getEncodedSchemeSpecificPart()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java132 /*payload=*/ recoveryKey.getEncoded()); in locallyEncryptRecoveryKey()
178 /*sharedSecret=*/ recoveryKey.getEncoded(), in encryptKeysWithRecoveryKey()
180 /*payload=*/ key.getEncoded()); in encryptKeysWithRecoveryKey()
/frameworks/base/wifi/java/android/net/wifi/
DParcelUtil.java60 dest.writeByteArray(key.getEncoded()); in writePrivateKey()
97 certBytes = cert.getEncoded(); in writeCertificate()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java68 return byteArrayToHex(key.getEncoded()); in buildPasswordHash()
119 return checksum.getEncoded(); in makeKeyChecksum()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DServiceProviderVerifierTest.java190 when(mX509Certificate.getEncoded()).thenReturn(testData.getBytes()); in testVerifyFingerPrintOfCertificateWithSameFingerPrintValueReturnTrue()
205 when(mX509Certificate.getEncoded()).thenReturn(testData.getBytes()); in testVerifyFingerPrintOfCertificateWithDifferentFingerPrintValueReturnFalse()
218 nameEntry.add(name.getEncoded(encoding)); in makeAltNames()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreCipherSpiBase.java599 encoded = key.getEncoded(); in engineWrap()
607 encoded = spec.getEncoded(); in engineWrap()
616 encoded = key.getEncoded(); in engineWrap()
623 encoded = spec.getEncoded(); in engineWrap()
632 encoded = key.getEncoded(); in engineWrap()
639 encoded = spec.getEncoded(); in engineWrap()
DDelegatingX509Certificate.java154 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in DelegatingX509Certificate
155 return mDelegate.getEncoded(); in getEncoded()
DAndroidKeyStoreRSAPublicKey.java39 this(alias, uid, info.getEncoded(), info.getModulus(), info.getPublicExponent()); in AndroidKeyStoreRSAPublicKey()
DAndroidKeyStorePublicKey.java42 public byte[] getEncoded() { in getEncoded() method in AndroidKeyStorePublicKey
DAndroidKeyStoreECPublicKey.java41 this(alias, uid, info.getEncoded(), info.getParams(), info.getW()); in AndroidKeyStoreECPublicKey()
DAndroidKeyStoreSpi.java406 userCertBytes = x509chain[0].getEncoded(); in setPrivateKeyEntry()
426 certsBytes[i] = x509chain[i + 1].getEncoded(); in setPrivateKeyEntry()
480 pkcs8EncodedPrivateKeyBytes = key.getEncoded(); in setPrivateKeyEntry()
642 byte[] keyMaterial = key.getEncoded(); in setSecretKeyEntry()
866 encoded = cert.getEncoded(); in engineSetCertificateEntry()
960 targetCertBytes = cert.getEncoded(); in engineGetCertificateAlias()
1109 original.getAlgorithm(), original.getEncoded()); in getPublicKey()
DAndroidKeyStoreKey.java57 public byte[] getEncoded() { in getEncoded() method in AndroidKeyStoreKey
/frameworks/base/core/java/android/content/pm/
DSignature.java79 mSignature = certificateChain[0].getEncoded(); in Signature()
229 chain[i++] = new Signature(c.getEncoded()); in getChainSignatures()
352 final Signature sPrime = new Signature(cert.getEncoded()); in bounce()
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/cdc/
DFingerprintMixer.java61 byte[] keyBytes = secretKey.getEncoded(); in FingerprintMixer()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/keys/
DTertiaryKeyGeneratorTest.java60 assertThat(secretKey.getEncoded()).hasLength(KEY_SIZE_BITS / 8); in generate_generates256BitKeys()
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/message/
DIkeCertX509CertPayload.java55 if (certificate.getEncoded().length < certData.length) { in IkeCertX509CertPayload()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DCredential.java1216 Arrays.equals(key1.getEncoded(), key2.getEncoded()); in isPrivateKeyEquals()
1239 result = Arrays.equals(cert1.getEncoded(), cert2.getEncoded()); in isX509CertificateEquals()
1289 byte[] fingerprint = digester.digest(certificate.getEncoded()); in verifySha256Fingerprint()
/frameworks/base/core/java/android/security/keystore/recovery/
DRecoveryCertPath.java102 return certPath.getEncoded(CERT_PATH_ENCODING); in encodeCertPath()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java93 byte[] privKeyData = config.getClientPrivateKey().getEncoded(); in installKeys()
206 byte[] privKeyData = key.getEncoded(); in putKeyInKeyStore()

123