/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...] |
/libcore/luni/src/test/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]); 124 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 128 key[offset] == ks.getEncoded()[0]); 163 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 166 algorithm, ks.getAlgorithm()); 176 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 178 ks.getFormat() == "RAW"); 190 SecretKeySpec ks = new SecretKeySpec(key, algorithm); local 191 byte[] result = ks.getEncoded() [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
TrustManagerFactorySpiTest.java | 51 * javax.net.ssl.TrustManagerFactorySpi#engineInit(KeyStore ks) 59 KeyStore ks = null; local 61 ks = KeyStore.getInstance(KeyStore.getDefaultType()); 62 ks.load(null, null); 63 tmf.init(ks); 68 assertEquals(ks, factory.getKs()); 88 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); local 89 ks.load(null, null); 90 pr = new Parameters(ks); 116 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()) local [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
RSAMultiPrimePrivateCrtKeySpecTest.java | 72 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( local 82 assertTrue(ks instanceof RSAMultiPrimePrivateCrtKeySpec); 408 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( local 418 assertTrue(ks instanceof RSAPrivateKeySpec); 426 RSAMultiPrimePrivateCrtKeySpec ks = local 437 assertTrue(BigInteger.ONE.equals(ks.getCrtCoefficient())); 445 RSAMultiPrimePrivateCrtKeySpec ks = local 456 assertTrue(BigInteger.ONE.equals(ks.getPrimeExponentP())); 464 RSAMultiPrimePrivateCrtKeySpec ks = local 475 assertTrue(BigInteger.ONE.equals(ks.getPrimeExponentQ())) 483 RSAMultiPrimePrivateCrtKeySpec ks = local 502 RSAMultiPrimePrivateCrtKeySpec ks = local 521 RSAMultiPrimePrivateCrtKeySpec ks = local 540 RSAMultiPrimePrivateCrtKeySpec ks = local 560 RSAMultiPrimePrivateCrtKeySpec ks = local 586 RSAMultiPrimePrivateCrtKeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( local 617 RSAMultiPrimePrivateCrtKeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( local 649 RSAMultiPrimePrivateCrtKeySpec ks = local 668 RSAMultiPrimePrivateCrtKeySpec ks = local [all...] |
RSAPublicKeySpecTest.java | 51 KeySpec ks = local 55 assertTrue(ks instanceof RSAPublicKeySpec); 64 KeySpec ks = local 67 assertTrue(ks instanceof RSAPublicKeySpec);
|
RSAPrivateKeySpecTest.java | 50 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), local 52 assertTrue(ks instanceof RSAPrivateKeySpec);
|
/libcore/luni/src/test/java/tests/security/spec/ |
RSAMultiPrimePrivateCrtKeySpecTest.java | 65 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( local 75 assertTrue(ks instanceof RSAMultiPrimePrivateCrtKeySpec); 405 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( local 415 assertTrue(ks instanceof RSAPrivateKeySpec); 423 RSAMultiPrimePrivateCrtKeySpec ks = local 434 assertTrue(BigInteger.ONE.equals(ks.getCrtCoefficient())); 442 RSAMultiPrimePrivateCrtKeySpec ks = local 453 assertTrue(BigInteger.ONE.equals(ks.getPrimeExponentP())); 461 RSAMultiPrimePrivateCrtKeySpec ks = local 472 assertTrue(BigInteger.ONE.equals(ks.getPrimeExponentQ())) 480 RSAMultiPrimePrivateCrtKeySpec ks = local 499 RSAMultiPrimePrivateCrtKeySpec ks = local 518 RSAMultiPrimePrivateCrtKeySpec ks = local 537 RSAMultiPrimePrivateCrtKeySpec ks = local 557 RSAMultiPrimePrivateCrtKeySpec ks = local 583 RSAMultiPrimePrivateCrtKeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( local 614 RSAMultiPrimePrivateCrtKeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( local 646 RSAMultiPrimePrivateCrtKeySpec ks = local 665 RSAMultiPrimePrivateCrtKeySpec ks = local [all...] |
DSAPrivateKeySpecTest.java | 41 KeySpec ks = new DSAPrivateKeySpec( local 47 assertTrue(ks instanceof DSAPrivateKeySpec);
|
DSAPublicKeySpecTest.java | 41 KeySpec ks = new DSAPublicKeySpec( local 47 assertTrue(ks instanceof DSAPublicKeySpec);
|
RSAPrivateKeySpecTest.java | 43 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), local 45 assertTrue(ks instanceof RSAPrivateKeySpec);
|
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/ |
KeyManagerFactoryImplTest.java | 81 KeyStore ks; local 82 ks = KeyStore.getInstance("BKS"); 83 ks.load(null, null); 84 kmf.engineInit(ks, null);
|
TrustManagerFactoryImplTest.java | 80 KeyStore ks; local 81 ks = KeyStore.getInstance("BKS"); 82 ks.load(null, null); 83 tmf.engineInit(ks);
|
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/ |
MyKeyManagerFactorySpi.java | 39 protected void engineInit(KeyStore ks, char[] password) 45 if (ks == null) { 75 public Parameters (KeyStore ks, char[] pass) { 76 this.keyStore = ks;
|
/external/openssl/crypto/des/t/ |
test | 8 $ks=DES::set_key($key); 9 @a=split(//,$ks);
|
/external/openssl/crypto/evp/ |
e_idea.c | 87 IDEA_KEY_SCHEDULE ks; member in struct:__anon8824 90 BLOCK_CIPHER_func_cbc(idea, idea, EVP_IDEA_KEY, ks) 91 BLOCK_CIPHER_func_ofb(idea, idea, 64, EVP_IDEA_KEY, ks) 92 BLOCK_CIPHER_func_cfb(idea, idea, 64, EVP_IDEA_KEY, ks)
|
/libcore/luni/src/main/java/javax/net/ssl/ |
TrustManagerFactorySpi.java | 40 * @param ks 45 protected abstract void engineInit(KeyStore ks) throws KeyStoreException;
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
PKIXParametersTest.java | 36 KeyStore ks = TestKeyStore.createKeyStore(); local 37 ks.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); 38 ks.setCertificateEntry("cert", pke.getCertificateChain()[0]); 39 assertEquals(1, new PKIXParameters(ks).getTrustAnchors().size());
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
MyKeyManagerFactorySpi.java | 38 protected void engineInit(KeyStore ks, char[] password) 44 if (ks == null) { 72 public Parameters (KeyStore ks, char[] pass) { 73 this.keyStore = ks;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStoreBuilderTest.java | 110 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); local 112 KeyStore.Builder.newInstance(ks, null); 123 ks = KeyStore.getInstance(KeyStore.getDefaultType()); 125 KeyStore.Builder.newInstance(ks, pp[i]); 131 ks.load(null, pass); 132 ksB = KeyStore.Builder.newInstance(ks, pp[i]); 136 ksB = KeyStore.Builder.newInstance(ks, pp[i]); 140 assertEquals("Incorrect KeyStore", ks, ksB.getKeyStore()); 212 KeyStore ks = null; local 287 ks = ksB.getKeyStore() 399 KeyStore ks = null; local 501 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); local [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
TrustManagerImplTest.java | 75 KeyStore ks = KeyStore.getInstance("BKS"); local 76 ks.load(null, null); 78 TrustManagerImpl tm = new TrustManagerImpl(ks); 84 KeyStore ks = JSSETestData.getKeyStore(); local 86 TrustManagerImpl tm = new TrustManagerImpl(ks);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
KSBuilder_ImplTest.java | 81 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); local 83 ks.load(null, null); 84 ks.store(fos, pass); 127 KeyStore ks = KeyStore.getInstance(defaultType); local 129 KeyStore.Builder.newInstance(ks, null); 149 ks = KeyStore.getInstance(defaultType); 151 KeyStore.Builder.newInstance(ks, pp[i]); 155 ks.load(null, pass); 156 ksB = KeyStore.Builder.newInstance(ks, pp[i]); 160 ks.setEntry("aaa", pKey, pp[0]) 243 KeyStore ks = null; local 406 KeyStore ks = null; local [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
EC5Util.java | 30 int ks[]; local 34 ks = new int[] { curveF2m.getK1() }; 36 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), null); 40 ks = new int[] { curveF2m.getK3(), curveF2m.getK2(), curveF2m.getK1() }; 42 return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.getB().toBigInteger(), null); 62 int ks[] = ECUtil.convertMidTerms(fieldF2m.getMidTermsOfReductionPolynomial()); local 63 return new ECCurve.F2m(m, ks[0], ks[1], ks[2], a, b);
|
/external/openssl/crypto/des/ |
DES.xs | 50 des_ecb_encrypt(input,ks,encrypt) 52 des_key_schedule * ks 55 des_ecb_encrypt(input,&RETVAL,*ks,encrypt); 60 des_cbc_encrypt(input,ks,ivec,encrypt) 62 des_key_schedule * ks 79 l,*ks,ivec,encrypt); 111 des_cbc_cksum(input,ks,ivec) 113 des_key_schedule * ks 126 l,*ks,ivec); 137 des_cfb_encrypt(input,numbits,ks,ivec,encrypt [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
DefaultSSLContextImpl.java | 75 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); local 79 ks.load(is, pwd); 92 kmf.init(ks, pwd); 112 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); local 116 ks.load(is, pwd); 128 tmf.init(ks);
|