Home
last modified time | relevance | path

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

12345678910>>...19

/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DDLExternal.java66 return this.getEncoded().length; in encodedLength()
77 baos.write(directReference.getEncoded(ASN1Encoding.DL)); in encode()
81 baos.write(indirectReference.getEncoded(ASN1Encoding.DL)); in encode()
85 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DL)); in encode()
88 baos.write(obj.getEncoded(ASN1Encoding.DL)); in encode()
DDERExternal.java71 return this.getEncoded().length; in encodedLength()
82 baos.write(directReference.getEncoded(ASN1Encoding.DER)); in encode()
86 baos.write(indirectReference.getEncoded(ASN1Encoding.DER)); in encode()
90 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DER)); in encode()
93 baos.write(obj.getEncoded(ASN1Encoding.DER)); in encode()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DDLExternal.java66 return this.getEncoded().length; in encodedLength()
77 baos.write(directReference.getEncoded(ASN1Encoding.DL)); in encode()
81 baos.write(indirectReference.getEncoded(ASN1Encoding.DL)); in encode()
85 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DL)); in encode()
88 baos.write(obj.getEncoded(ASN1Encoding.DL)); in encode()
DDERExternal.java71 return this.getEncoded().length; in encodedLength()
82 baos.write(directReference.getEncoded(ASN1Encoding.DER)); in encode()
86 baos.write(indirectReference.getEncoded(ASN1Encoding.DER)); in encode()
90 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DER)); in encode()
93 baos.write(obj.getEncoded(ASN1Encoding.DER)); in encode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDLExternal.java64 return this.getEncoded().length; in encodedLength()
75 baos.write(directReference.getEncoded(ASN1Encoding.DL)); in encode()
79 baos.write(indirectReference.getEncoded(ASN1Encoding.DL)); in encode()
83 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DL)); in encode()
86 baos.write(obj.getEncoded(ASN1Encoding.DL)); in encode()
DDERExternal.java69 return this.getEncoded().length; in encodedLength()
80 baos.write(directReference.getEncoded(ASN1Encoding.DER)); in encode()
84 baos.write(indirectReference.getEncoded(ASN1Encoding.DER)); in encode()
88 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DER)); in encode()
91 baos.write(obj.getEncoded(ASN1Encoding.DER)); in encode()
/external/conscrypt/common/src/main/java/org/conscrypt/
DDESEDESecretKeyFactory.java44 if (!DESedeKeySpec.isParityAdjusted(key.getEncoded(), 0)) { in engineGenerateSecret()
69 if (!DESedeKeySpec.isParityAdjusted(secretKey.getEncoded(), 0)) { in engineGetKeySpec()
78 return new SecretKeySpec(secretKey.getEncoded(), "DESEDE"); in engineGetKeySpec()
82 return new DESedeKeySpec(secretKey.getEncoded()); in engineGetKeySpec()
96 return new SecretKeySpec(secretKey.getEncoded(), secretKey.getAlgorithm()); in engineTranslateKey()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DDESEDESecretKeyFactory.java46 if (!DESedeKeySpec.isParityAdjusted(key.getEncoded(), 0)) { in engineGenerateSecret()
71 if (!DESedeKeySpec.isParityAdjusted(secretKey.getEncoded(), 0)) { in engineGetKeySpec()
80 return new SecretKeySpec(secretKey.getEncoded(), "DESEDE"); in engineGetKeySpec()
84 return new DESedeKeySpec(secretKey.getEncoded()); in engineGetKeySpec()
98 return new SecretKeySpec(secretKey.getEncoded(), secretKey.getAlgorithm()); in engineTranslateKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DAlgorithmParametersUtils.java35 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
39 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
58 params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1"); in loadParameters()
62 params.init(sParams.toASN1Primitive().getEncoded()); in loadParameters()
DJcaJceUtils.java42 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
46 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
66 params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1"); in loadParameters()
70 params.init(sParams.toASN1Primitive().getEncoded()); in loadParameters()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/util/
DAlgorithmParametersUtils.java37 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
41 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
60 params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1"); in loadParameters()
64 params.init(sParams.toASN1Primitive().getEncoded()); in loadParameters()
DJcaJceUtils.java44 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
48 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
68 params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1"); in loadParameters()
72 params.init(sParams.toASN1Primitive().getEncoded()); in loadParameters()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/util/
DAlgorithmParametersUtils.java37 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
41 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
60 params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1"); in loadParameters()
64 params.init(sParams.toASN1Primitive().getEncoded()); in loadParameters()
DJcaJceUtils.java44 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
48 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
68 params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1"); in loadParameters()
72 params.init(sParams.toASN1Primitive().getEncoded()); in loadParameters()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseKeyFactorySpi.java27 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate()
48 …eturn generatePublic(SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePublic()
68 return new PKCS8EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
72 return new X509EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseKeyFactorySpi.java31 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate()
52 …eturn generatePublic(SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePublic()
72 return new PKCS8EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
76 return new X509EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseSecretKeyFactory.java35 return new SecretKeySpec(((SecretKeySpec)keySpec).getEncoded(), algName); in engineGenerateSecret()
57 return new SecretKeySpec(key.getEncoded(), algName); in engineGetKeySpec()
67 p[0] = key.getEncoded(); in engineGetKeySpec()
91 return new SecretKeySpec(key.getEncoded(), algName); in engineTranslateKey()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseSecretKeyFactory.java39 return new SecretKeySpec(((SecretKeySpec)keySpec).getEncoded(), algName); in engineGenerateSecret()
61 return new SecretKeySpec(key.getEncoded(), algName); in engineGetKeySpec()
71 p[0] = key.getEncoded(); in engineGetKeySpec()
95 return new SecretKeySpec(key.getEncoded(), algName); in engineTranslateKey()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseSecretKeyFactory.java39 return new SecretKeySpec(((SecretKeySpec)keySpec).getEncoded(), algName); in engineGenerateSecret()
61 return new SecretKeySpec(key.getEncoded(), algName); in engineGetKeySpec()
71 p[0] = key.getEncoded(); in engineGetKeySpec()
95 return new SecretKeySpec(key.getEncoded(), algName); in engineTranslateKey()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseKeyFactorySpi.java31 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate()
52 …eturn generatePublic(SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePublic()
72 return new PKCS8EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
76 return new X509EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securemessage/
DCryptoOpsTest.java91 assertTrue(Arrays.equals(CryptoOps.deriveAes256KeyFor(aesKey1, "A").getEncoded(), in testDeriveAes256KeyFor()
92 CryptoOps.deriveAes256KeyFor(aesKey1, "A").getEncoded())); in testDeriveAes256KeyFor()
94 assertFalse(Arrays.equals(CryptoOps.deriveAes256KeyFor(aesKey1, "A").getEncoded(), in testDeriveAes256KeyFor()
95 CryptoOps.deriveAes256KeyFor(aesKey1, "B").getEncoded())); in testDeriveAes256KeyFor()
97 assertFalse(Arrays.equals(CryptoOps.deriveAes256KeyFor(aesKey1, "A").getEncoded(), in testDeriveAes256KeyFor()
98 CryptoOps.deriveAes256KeyFor(aesKey2, "A").getEncoded())); in testDeriveAes256KeyFor()
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DD2DConnectionContextV1.java67 byte[] encodeKeyBytes = encodeKey.getEncoded(); in getSessionUnique()
68 byte[] decodeKeyBytes = decodeKey.getEncoded(); in getSessionUnique()
134 bytes.write(encodeKey.getEncoded());
137 bytes.write(decodeKey.getEncoded());
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/x509/
DKeyFactory.java33 … PrivateKeyInfo info = PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePrivate()
60 …tPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePublic()
84 return new PKCS8EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
88 return new X509EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DKeyFactory.java29 … PrivateKeyInfo info = PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePrivate()
56 …tPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePublic()
80 return new PKCS8EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
84 return new X509EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPrincipalUtils.java72 X500Name name = X500Name.getInstance(getEncoded(principal)); in getX500Name()
78 X500Name name = X500Name.getInstance(style, getEncoded(principal)); in getX500Name()
82 private static byte[] getEncoded(X500Principal principal) in getEncoded() method in PrincipalUtils
84 byte[] encoding = notNull(principal).getEncoded(); in getEncoded()

12345678910>>...19