Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/util/apk/
DVerbatimX509Certificate.java39 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in VerbatimX509Certificate
49 byte[] a = this.getEncoded(); in equals()
50 byte[] b = ((VerbatimX509Certificate) o).getEncoded(); in equals()
61 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()
DApkSignatureSchemeV3Verifier.java417 byte[] certificatePublicKeyBytes = mainCertificate.getPublicKey().getEncoded(); in verifySigner()
468 && !Arrays.equals(por.certs.get(por.certs.size() - 1).getEncoded(), in verifyAdditionalAttributes()
469 certChain[0].getEncoded())) { in verifyAdditionalAttributes()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java96 assertEquals(RECOVERY_KEY_LENGTH_BITS / Byte.SIZE, key.getEncoded().length); in generateRecoveryKey_returnsA256BitKey()
104 assertFalse(Arrays.equals(a.getEncoded(), b.getEncoded())); in generateRecoveryKey_generatesANewKeyEachTime()
133 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata()
136 assertArrayEquals(applicationKey.getEncoded(), keyMaterial); in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata()
150 byte[] keyMaterial = KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_decryptsAnApplicationKey_nonNullMetadata()
153 assertArrayEquals(applicationKey.getEncoded(), keyMaterial); in decryptApplicationKey_decryptsAnApplicationKey_nonNullMetadata()
167 KeySyncUtils.decryptApplicationKey(KeySyncUtils.generateRecoveryKey().getEncoded(), in decryptApplicationKey_throwsIfUnableToDecrypt()
194 KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_throwsIfWrongMetadata()
201 KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_throwsIfWrongMetadata()
208 KeySyncUtils.decryptApplicationKey(recoveryKey.getEncoded(), in decryptApplicationKey_throwsIfWrongMetadata()
[all …]
DWrappedKeyTest.java131 assertArrayEquals(appKey.getEncoded(), unwrappedKeys.get(alias).first.getEncoded()); in decryptWrappedKeys_decryptsWrappedKeys_nullMetadata()
150 assertArrayEquals(appKey.getEncoded(), unwrappedKeys.get(alias).first.getEncoded()); in decryptWrappedKeys_decryptsWrappedKeys_nonNullMetadata()
/frameworks/base/core/java/android/net/
DUri.java586 return getSsp().getEncoded(); in getEncodedSchemeSpecificPart()
616 return getAuthorityPart().getEncoded(); in getEncodedAuthority()
636 return getPathPart().getEncoded(); in getEncodedPath()
676 return getQueryPart().getEncoded(); in getEncodedQuery()
713 return getFragmentPart().getEncoded(); in getEncodedFragment()
916 return ssp.getEncoded(); in getEncodedSchemeSpecificPart()
952 return fragment.getEncoded(); in getEncodedFragment()
994 sb.append('#').append(fragment.getEncoded()); in toString()
1096 return getUserInfoPart().getEncoded(); in getEncodedUserInfo()
1249 return getSsp().getEncoded(); in getEncodedSchemeSpecificPart()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java70 return byteArrayToHex(key.getEncoded()); in buildPasswordHash()
117 return checksum.getEncoded(); in makeKeyChecksum()
/frameworks/base/core/tests/coretests/src/com/android/internal/security/
DVerityUtilsTest.java87 mCertificateDerEncoded = mCertificateHolder.getEncoded(); in setUp()
139 byte[] wrongCertificateDerEncoded = wrongCertificateHolder.getEncoded(); in testOnlyValidCertCanVerify()
194 assertFalse(verifySignature(pkcs7Signature, SAMPLE_DIGEST, certificateHolder.getEncoded())); in testRejectUnsupportedSignatureAlgorithms()
270 return cmsSignedData.toASN1Structure().getEncoded(ASN1Encoding.DL); in generatePkcs7SignatureInternal()
353 SubjectPublicKeyInfo.getInstance(publicKey.getEncoded()))
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java134 /*payload=*/ recoveryKey.getEncoded()); in locallyEncryptRecoveryKey()
180 /*sharedSecret=*/ recoveryKey.getEncoded(), in encryptKeysWithRecoveryKey()
182 /*payload=*/ key.getEncoded()); in encryptKeysWithRecoveryKey()
DRecoverableKeyGenerator.java118 return key.getEncoded(); in generateAndStoreKey()
/frameworks/base/keystore/java/android/security/keystore/
DDelegatingX509Certificate.java154 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in DelegatingX509Certificate
155 return mDelegate.getEncoded(); in getEncoded()
/frameworks/base/core/tests/coretests/src/android/util/apk/
DSourceStampVerifierTest.java104 MessageDigest.getInstance("SHA-256").digest(result.getCertificate().getEncoded()); in testSourceStamp_correctSignature()
195 MessageDigest.getInstance("SHA-256").digest(result.getCertificate().getEncoded()); in testSourceStamp_multiApk_validStamps()
226 MessageDigest.getInstance("SHA-256").digest(result.getCertificate().getEncoded()); in testSourceStamp_validStampLineage()
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowKey.java65 return mKey.getEncoded(); in getKeyBytes()
/frameworks/base/core/java/android/content/pm/
DSignature.java84 mSignature = certificateChain[0].getEncoded(); in Signature()
249 chain[i++] = new Signature(c.getEncoded()); in getChainSignatures()
403 final Signature sPrime = new Signature(cert.getEncoded()); in bounce()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreCipherSpiBase.java727 encoded = key.getEncoded(); in engineWrap()
735 encoded = spec.getEncoded(); in engineWrap()
744 encoded = key.getEncoded(); in engineWrap()
751 encoded = spec.getEncoded(); in engineWrap()
760 encoded = key.getEncoded(); in engineWrap()
767 encoded = spec.getEncoded(); in engineWrap()
DAndroidKeyStoreRSAPublicKey.java51 this(descriptor, metadata, info.getEncoded(), securityLevel, info.getModulus(), in AndroidKeyStoreRSAPublicKey()
DAndroidKeyStorePublicKey.java55 public byte[] getEncoded() { in getEncoded() method in AndroidKeyStorePublicKey
DAndroidKeyStoreXDHPublicKey.java101 public byte[] getEncoded() { in getEncoded() method in AndroidKeyStoreXDHPublicKey
DAndroidKeyStoreKey.java101 public byte[] getEncoded() { in getEncoded() method in AndroidKeyStoreKey
DAndroidKeyStoreECPublicKey.java54 this(descriptor, metadata, info.getEncoded(), securityLevel, info.getParams(), info.getW()); in AndroidKeyStoreECPublicKey()
DAndroidKeyStoreEdECPublicKey.java142 public byte[] getEncoded() { in getEncoded() method in AndroidKeyStoreEdECPublicKey
/frameworks/base/core/java/android/security/keystore/recovery/
DRecoveryCertPath.java101 return certPath.getEncoded(CERT_PATH_ENCODING); in encodeCertPath()
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/
DIkeSessionParamsUtils.java397 config.getClientEndCertificate().getEncoded())); in toPersistableBundle()
402 encodedCertList.add(cert.getEncoded()); in toPersistableBundle()
416 PersistableBundleUtils.fromByteArray(config.getPrivateKey().getEncoded())); in toPersistableBundle()
428 PersistableBundleUtils.fromByteArray(caCert.getEncoded())); in toPersistableBundle()
/frameworks/base/services/companion/java/com/android/server/companion/securechannel/
DKeyStoreUtils.java77 buffer.writeBytes(certificate.getEncoded()); in getEncodedCertificateChain()
/frameworks/base/core/java/android/security/
DFileIntegrityManager.java175 certificate.getEncoded(), mContext.getOpPackageName()); in isAppSourceCertificateTrusted()

1234