/libcore/luni/src/test/java/tests/security/spec/ |
D | EncodedKeySpecTest.java | 42 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 …]
|
D | X509EncodedKeySpecTest.java | 48 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/ |
D | EncodedKeySpec.java | 45 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()
|
D | X509EncodedKeySpec.java | 63 public X509EncodedKeySpec(byte[] encodedKey) { in X509EncodedKeySpec() argument 64 super(encodedKey); in X509EncodedKeySpec()
|
D | PKCS8EncodedKeySpec.java | 73 public PKCS8EncodedKeySpec(byte[] encodedKey) { in PKCS8EncodedKeySpec() argument 74 super(encodedKey); in PKCS8EncodedKeySpec()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS8Key.java | 64 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/ |
D | X509Key.java | 89 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/ |
D | PKCS8Key.java | 92 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/ |
D | X509Key.java | 101 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/ |
D | EncryptedPrivateKeyInfo.java | 408 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/ |
D | X509CertSelector.java | 2229 byte[] encodedKey = xcert.getPublicKey().getEncoded(); in matchSubjectPublicKeyAlgID() 2230 DerValue val = new DerValue(encodedKey); in matchSubjectPublicKeyAlgID()
|