Home
last modified time | relevance | path

Searched refs:encodedKey (Results 1 – 11 of 11) sorted by relevance

/libcore/luni/src/test/java/tests/security/spec/
DEncodedKeySpecTest.java42 byte[] encodedKey = new byte[] { (byte) 1, (byte) 2, (byte) 3, (byte) 4 }; in testEncodedKeySpec()
43 EncodedKeySpec eks = new MyEncodedKeySpec(encodedKey); in testEncodedKeySpec()
45 assertTrue("wrong encoded key was returned", Arrays.equals(encodedKey, in testEncodedKeySpec()
49 encodedKey = null; in testEncodedKeySpec()
51 eks = new MyEncodedKeySpec(encodedKey); in testEncodedKeySpec()
63 byte[] encodedKey = new byte[] { (byte) 1, (byte) 2, (byte) 3, (byte) 4 }; in testGetEncoded()
64 EncodedKeySpec meks = new MyEncodedKeySpec(encodedKey); in testGetEncoded()
71 for (int i = 0; i < encodedKey.length; i++) { in testGetEncoded()
72 if (encodedKey[i] != ek[i]) { in testGetEncoded()
87 byte[] encodedKey = new byte[] { (byte) 1, (byte) 2, (byte) 3, (byte) 4 }; in testIsStatePreserved1()
[all …]
DX509EncodedKeySpecTest.java48 byte[] encodedKey = new byte[] {(byte)1,(byte)2,(byte)3,(byte)4}; in testX509EncodedKeySpec()
50 EncodedKeySpec eks = new X509EncodedKeySpec(encodedKey); in testX509EncodedKeySpec()
66 byte[] encodedKey = new byte[] {(byte)1,(byte)2,(byte)3,(byte)4}; in testGetEncoded()
68 X509EncodedKeySpec eks = new X509EncodedKeySpec(encodedKey); in testGetEncoded()
72 assertTrue(Arrays.equals(encodedKey, ek)); in testGetEncoded()
80 byte[] encodedKey = new byte[] {(byte)1,(byte)2,(byte)3,(byte)4}; in testGetFormat()
82 X509EncodedKeySpec meks = new X509EncodedKeySpec(encodedKey); in testGetFormat()
94 byte[] encodedKey = new byte[] {(byte)1,(byte)2,(byte)3,(byte)4}; in testIsStatePreserved1()
96 byte[] encodedKeyCopy = encodedKey.clone(); in testIsStatePreserved1()
108 assertTrue(Arrays.equals(encodedKey, ek)); in testIsStatePreserved1()
[all …]
/libcore/ojluni/src/main/java/java/security/spec/
DEncodedKeySpec.java45 private byte[] encodedKey; field in EncodedKeySpec
55 public EncodedKeySpec(byte[] encodedKey) { in EncodedKeySpec() argument
56 this.encodedKey = encodedKey.clone(); in EncodedKeySpec()
66 return this.encodedKey.clone(); in getEncoded()
DX509EncodedKeySpec.java63 public X509EncodedKeySpec(byte[] encodedKey) { in X509EncodedKeySpec() argument
64 super(encodedKey); in X509EncodedKeySpec()
DPKCS8EncodedKeySpec.java73 public PKCS8EncodedKeySpec(byte[] encodedKey) { in PKCS8EncodedKeySpec() argument
74 super(encodedKey); in PKCS8EncodedKeySpec()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java64 protected byte[] encodedKey; field in PKCS8Key
291 if (encodedKey == null) { in encode()
297 encodedKey = out.toByteArray(); in encode()
304 return encodedKey.clone(); in encode()
355 public void decode(byte[] encodedKey) throws InvalidKeyException { in decode() argument
356 decode(new ByteArrayInputStream(encodedKey)); in decode()
414 if (encodedKey != null) { in equals()
415 b1 = encodedKey; in equals()
/libcore/ojluni/src/main/java/sun/security/x509/
DX509Key.java89 protected byte[] encodedKey; field in X509Key
316 byte[] encoded = encodedKey; in getEncodedInternal()
326 encodedKey = encoded; in getEncodedInternal()
402 public void decode(byte[] encodedKey) throws InvalidKeyException { in decode() argument
403 decode(new ByteArrayInputStream(encodedKey)); in decode()
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/
DPKCS8Key.java92 public void decode(byte[] encodedKey) throws java.security.InvalidKeyException { in decode() argument
120 @android.compat.annotation.UnsupportedAppUsage protected byte[] encodedKey; field in PKCS8Key
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DX509Key.java101 public void decode(byte[] encodedKey) throws java.security.InvalidKeyException { in decode() argument
133 @android.compat.annotation.UnsupportedAppUsage protected byte[] encodedKey; field in X509Key
/libcore/ojluni/src/main/java/javax/crypto/
DEncryptedPrivateKeyInfo.java408 private static void checkPKCS8Encoding(byte[] encodedKey) in checkPKCS8Encoding() argument
410 DerInputStream in = new DerInputStream(encodedKey); in checkPKCS8Encoding()
/libcore/ojluni/src/main/java/java/security/cert/
DX509CertSelector.java2229 byte[] encodedKey = xcert.getPublicKey().getEncoded(); in matchSubjectPublicKeyAlgID()
2230 DerValue val = new DerValue(encodedKey); in matchSubjectPublicKeyAlgID()