/libcore/ojluni/src/main/java/java/security/spec/ |
ECFieldF2m.java | 43 private int[] ks; field in class:ECFieldF2m 58 this.ks = null; 97 // convert rp into ks 99 this.ks = new int[bitCount-2]; 100 for (int i = this.ks.length-1; i >= 0; i--) { 102 this.ks[i] = index; 111 * field is based on <code>ks</code> whose content 120 * > <code>k1</code> >= 1), so <code>ks</code> should 123 * @param ks the order of the middle term(s) of the 126 * @exception NullPointerException if <code>ks</code> is null [all...] |
/external/boringssl/src/crypto/cipher/ |
e_des.c | 67 DES_key_schedule ks; member in union:__anon6662::__anon6663 68 } ks; member in struct:__anon6662 76 DES_set_key(deskey, &dat->ks.ks); 84 DES_ncbc_encrypt(in, out, in_len, &dat->ks.ks, (DES_cblock *)ctx->iv, 110 &dat->ks.ks, ctx->encrypt); 127 DES_key_schedule ks[3]; member in union:__anon6664::__anon6665 128 } ks; member in struct:__anon6664 [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
PKIXBuilderParameters_ImplTest.java | 54 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 55 if (ks == null) { 60 new PKIXBuilderParameters(ks, new X509CertSelector()); 77 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 78 if (ks == null) { 83 new PKIXBuilderParameters(ks, null); 102 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); local 103 if (ks == null) { 108 new PKIXBuilderParameters(ks, null); 120 KeyStore ks = TestUtils.getKeyStore(false, 0) local 141 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.UNTRUSTED); local 166 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 186 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 212 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 237 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); local [all...] |
PKIXParameters_ImplTest.java | 60 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 61 if (ks == null) { 67 CertPathParameters cpp = new PKIXParameters(ks); 82 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); local 83 if (ks == null) { 89 PKIXParameters cpp = new PKIXParameters(ks); 99 KeyStore ks = TestUtils.getKeyStore(false, 0); local 100 if (ks == null) { 106 new PKIXParameters(ks); 119 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.UNTRUSTED) local 143 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 171 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 247 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 288 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); local [all...] |
TrustAnchor_ImplTest.java | 61 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 62 if (ks == null) { 69 (X509Certificate) ks.getCertificate(certAlias), 73 (X509Certificate) ks.getCertificate(certAlias), 77 (X509Certificate) ks.getCertificate(certAlias), 81 (X509Certificate) ks.getCertificate(certAlias), 93 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 94 if (ks == null) { 100 (X509Certificate) ks.getCertificate(certAlias), 112 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED) local 140 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 161 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 271 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 292 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 319 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 365 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 405 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 436 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 460 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 482 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 506 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local 526 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); local [all...] |
/libcore/ojluni/src/main/java/sun/security/validator/ |
KeyStores.java | 64 KeyStore ks = KeyStore.getInstance(type); 67 ks.load(in, password); 68 return ks; 96 public static Set<X509Certificate> getTrustedCerts(KeyStore ks) { 99 for (Enumeration<String> e = ks.aliases(); e.hasMoreElements(); ) { 101 if (ks.isCertificateEntry(alias)) { 102 Certificate cert = ks.getCertificate(alias); 106 } else if (ks.isKeyEntry(alias)) { 107 Certificate[] certs = ks.getCertificateChain(alias);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
RSAPrivateCrtKeySpecTest.java | 51 KeySpec ks = new RSAPrivateCrtKeySpec( local 60 assertTrue(ks instanceof RSAPrivateCrtKeySpec); 69 KeySpec ks = new RSAPrivateCrtKeySpec( local 78 assertTrue(ks instanceof RSAPrivateKeySpec); 103 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 112 assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient())); 120 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 129 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP())); 137 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 146 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ())) 154 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 171 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 188 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 209 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 226 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local [all...] |
/libcore/luni/src/test/java/tests/security/spec/ |
RSAPrivateCrtKeySpecTest.java | 44 KeySpec ks = new RSAPrivateCrtKeySpec( local 53 assertTrue(ks instanceof RSAPrivateCrtKeySpec); 62 KeySpec ks = new RSAPrivateCrtKeySpec( local 71 assertTrue(ks instanceof RSAPrivateKeySpec); 96 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 105 assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient())); 113 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 122 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP())); 130 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 139 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ())) 147 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 164 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 181 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 202 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local 219 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( local [all...] |
RSAPublicKeySpecTest.java | 43 KeySpec ks = local 47 assertTrue(ks instanceof RSAPublicKeySpec); 56 KeySpec ks = local 59 assertTrue(ks instanceof RSAPublicKeySpec);
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
TrustManagerFactorySpiImpl.java | 14 private static KeyStore ks = null; field in class:TrustManagerFactorySpiImpl 17 public void engineInit(KeyStore ks) throws KeyStoreException { 19 this.ks = ks; 46 return ks;
|
MyTrustManagerFactorySpi.java | 35 protected void engineInit(KeyStore ks) throws KeyStoreException { 36 if (ks == null) { 64 public Parameters (KeyStore ks) { 65 this.keyStore = ks;
|
KeyManagerFactorySpiImpl.java | 16 public void engineInit(KeyStore ks, char[] password) 20 if (ks == null && password == null) { 24 if (ks == null) {
|
/frameworks/base/services/core/java/com/android/server/pm/ |
PackageKeySetData.java | 44 protected void setProperSigningKeySet(long ks) { 45 mProperSigningKeySet = ks; 59 Long ks = mKeySetAliases.get(alias); local 60 if (ks != null) { 61 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); 73 protected void addUpgradeKeySetById(long ks) { 74 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); 105 protected void addDefinedKeySet(long ks, String alias) { 106 mKeySetAliases.put(alias, ks);
|
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/ |
MyKeyManagerFactorySpi.java | 38 protected void engineInit(KeyStore ks, char[] password) 44 if (ks == null) { 76 public Parameters(KeyStore ks, char[] pass) { 77 this.keyStore = ks;
|
MyTrustManagerFactorySpi.java | 35 protected void engineInit(KeyStore ks) throws KeyStoreException { 36 if (ks == null) { 67 public Parameters(KeyStore ks) { 68 this.keyStore = ks;
|
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/ |
MyTrustManagerFactorySpi.java | 35 protected void engineInit(KeyStore ks) throws KeyStoreException { 36 if (ks == null) { 67 public Parameters(KeyStore ks) { 68 this.keyStore = ks;
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
KeyManagerFactorySpi.java | 46 * @param ks the key store or null 54 protected abstract void engineInit(KeyStore ks, char[] password) throws
|
TrustManagerFactorySpi.java | 47 * @param ks the key store or null 51 protected abstract void engineInit(KeyStore ks) throws KeyStoreException;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MyTrustManagerFactorySpi.java | 35 protected void engineInit(KeyStore ks) throws KeyStoreException { 36 if (ks == null) { 64 public Parameters (KeyStore ks) { 65 this.keyStore = ks;
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
SecretKeyFactoryTest.java | 53 KeySpec ks = new PBEKeySpec(null); local 54 factory.generateSecret(ks); 59 KeySpec ks = new PBEKeySpec(new char[0]); local 60 factory.generateSecret(ks); 65 KeySpec ks = new PBEKeySpec(PASSWORD); local 66 factory.generateSecret(ks); 74 KeySpec ks = new PBEKeySpec(null, SALT, ITERATIONS); local 75 factory.generateSecret(ks); 80 KeySpec ks = new PBEKeySpec(new char[0], SALT, ITERATIONS); local 81 factory.generateSecret(ks); 86 KeySpec ks = new PBEKeySpec(PASSWORD, SALT, ITERATIONS); local 93 KeySpec ks = new PBEKeySpec(null, SALT, ITERATIONS, KEY_LENGTH); local 100 KeySpec ks = new PBEKeySpec(new char[0], SALT, ITERATIONS, KEY_LENGTH); local 106 KeySpec ks = new PBEKeySpec(PASSWORD, SALT, ITERATIONS, KEY_LENGTH); local 197 KeySpec ks = new PBEKeySpec(password, salt, iterations, keyLength); local 207 KeySpec ks = new PBEKeySpec(password, salt, iterations, keyLength); local [all...] |
/external/conscrypt/src/platform/java/org/conscrypt/ |
TrustManagerFactoryImpl.java | 44 public void engineInit(KeyStore ks) throws KeyStoreException { 45 if (ks != null) { 46 keyStore = ks;
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
KeyManagerImplTest.java | 33 KeyStore ks = null; local 34 ks = KeyStore.getInstance("BKS"); 35 ks.load(null, null); 37 KeyManagerImpl km = new KeyManagerImpl(ks, new char[0]); 61 KeyStore ks = JSSETestData.getKeyStore(); local 64 KeyManagerImpl km = new KeyManagerImpl(ks, pwd);
|
/frameworks/base/core/java/android/security/net/config/ |
KeyStoreConfigSource.java | 31 public KeyStoreConfigSource(KeyStore ks) { 35 new CertificatesEntryRef(new KeyStoreCertificateSource(ks), false))
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
SecretKeyFactoryThread.java | 34 KeySpec ks = (KeySpec) ((algName == "DES") ? new DESKeySpec(b) : local 37 skf.generateSecret(ks);
|
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
SecretKeySpecTest.java | 68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 72 key[0] == ks.getEncoded()[0]); 141 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 145 key[offset] == ks.getEncoded()[0]); 164 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 167 algorithm, ks.getAlgorithm()); 177 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 179 ks.getFormat() == "RAW"); 191 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 192 byte[] result = ks.getEncoded() [all...] |