Home
last modified time | relevance | path

Searched refs:ks (Results 1 – 25 of 260) sorted by relevance

1234567891011

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DTrustAnchor_ImplTest.java61 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray01() local
62 if (ks == null) { in testTrustAnchorX509CertificatebyteArray01()
69 (X509Certificate) ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray01()
73 (X509Certificate) ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray01()
77 (X509Certificate) ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray01()
81 (X509Certificate) ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray01()
93 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray02() local
94 if (ks == null) { in testTrustAnchorX509CertificatebyteArray02()
100 (X509Certificate) ks.getCertificate(certAlias), in testTrustAnchorX509CertificatebyteArray02()
112 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testTrustAnchorX509CertificatebyteArray03() local
[all …]
DPKIXBuilderParameters_ImplTest.java54 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testPKIXBuilderParametersKeyStoreCertSelector01() local
55 if (ks == null) { in testPKIXBuilderParametersKeyStoreCertSelector01()
60 new PKIXBuilderParameters(ks, new X509CertSelector()); in testPKIXBuilderParametersKeyStoreCertSelector01()
77 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testPKIXBuilderParametersKeyStoreCertSelector02() local
78 if (ks == null) { in testPKIXBuilderParametersKeyStoreCertSelector02()
83 new PKIXBuilderParameters(ks, null); in testPKIXBuilderParametersKeyStoreCertSelector02()
102 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); in testPKIXBuilderParametersKeyStoreCertSelector03() local
103 if (ks == null) { in testPKIXBuilderParametersKeyStoreCertSelector03()
108 new PKIXBuilderParameters(ks, null); in testPKIXBuilderParametersKeyStoreCertSelector03()
120 KeyStore ks = TestUtils.getKeyStore(false, 0); in testPKIXBuilderParametersKeyStoreCertSelector05() local
[all …]
DPKIXParameters_ImplTest.java60 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED); in testPKIXParametersKeyStore01() local
61 if (ks == null) { in testPKIXParametersKeyStore01()
67 CertPathParameters cpp = new PKIXParameters(ks); in testPKIXParametersKeyStore01()
82 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED); in testPKIXParametersKeyStore02() local
83 if (ks == null) { in testPKIXParametersKeyStore02()
89 PKIXParameters cpp = new PKIXParameters(ks); in testPKIXParametersKeyStore02()
99 KeyStore ks = TestUtils.getKeyStore(false, 0); in testPKIXParametersKeyStore04() local
100 if (ks == null) { in testPKIXParametersKeyStore04()
106 new PKIXParameters(ks); in testPKIXParametersKeyStore04()
119 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.UNTRUSTED); in testPKIXParametersKeyStore05() local
[all …]
/external/boringssl/src/crypto/cipher/
De_des.c67 DES_key_schedule ks; member
68 } ks; member
76 DES_set_key(deskey, &dat->ks.ks); in des_init_key()
84 DES_ncbc_encrypt(in, out, in_len, &dat->ks.ks, (DES_cblock *)ctx->iv, in des_cbc_cipher()
102 DES_key_schedule ks[3]; member
103 } ks; member
112 DES_set_key(&deskey[0], &dat->ks.ks[0]); in des_ede3_init_key()
113 DES_set_key(&deskey[1], &dat->ks.ks[1]); in des_ede3_init_key()
114 DES_set_key(&deskey[2], &dat->ks.ks[2]); in des_ede3_init_key()
123 DES_ede3_cbc_encrypt(in, out, in_len, &dat->ks.ks[0], &dat->ks.ks[1], in des_ede3_cbc_cipher()
[all …]
De_aes.c74 AES_KEY ks; member
75 } ks; member
86 AES_KEY ks; member
87 } ks; /* AES key schedule to use */ member
294 ret = aes_v8_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
301 ret = AES_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
305 ret = vpaes_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
310 ret = AES_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
316 ret = aes_v8_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
325 ret = AES_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DRSAPrivateCrtKeySpecTest.java51 KeySpec ks = new RSAPrivateCrtKeySpec( in testRSAPrivateCrtKeySpec01() local
60 assertTrue(ks instanceof RSAPrivateCrtKeySpec); in testRSAPrivateCrtKeySpec01()
69 KeySpec ks = new RSAPrivateCrtKeySpec( in testRSAPrivateCrtKeySpec02() local
78 assertTrue(ks instanceof RSAPrivateKeySpec); in testRSAPrivateCrtKeySpec02()
103 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( in testGetCrtCoefficient() local
112 assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient())); in testGetCrtCoefficient()
120 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( in testGetPrimeExponentP() local
129 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP())); in testGetPrimeExponentP()
137 RSAPrivateCrtKeySpec ks = new RSAPrivateCrtKeySpec( in testGetPrimeExponentQ() local
146 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ())); in testGetPrimeExponentQ()
[all …]
DRSAMultiPrimePrivateCrtKeySpecTest.java72 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( in testRSAMultiPrimePrivateCrtKeySpec01() local
82 assertTrue(ks instanceof RSAMultiPrimePrivateCrtKeySpec); in testRSAMultiPrimePrivateCrtKeySpec01()
408 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( in testRSAMultiPrimePrivateCrtKeySpec12() local
418 assertTrue(ks instanceof RSAPrivateKeySpec); in testRSAMultiPrimePrivateCrtKeySpec12()
426 RSAMultiPrimePrivateCrtKeySpec ks = in testGetCrtCoefficient() local
437 assertTrue(BigInteger.ONE.equals(ks.getCrtCoefficient())); in testGetCrtCoefficient()
445 RSAMultiPrimePrivateCrtKeySpec ks = in testGetPrimeExponentP() local
456 assertTrue(BigInteger.ONE.equals(ks.getPrimeExponentP())); in testGetPrimeExponentP()
464 RSAMultiPrimePrivateCrtKeySpec ks = in testGetPrimeExponentQ() local
475 assertTrue(BigInteger.ONE.equals(ks.getPrimeExponentQ())); in testGetPrimeExponentQ()
[all …]
DRSAPublicKeySpecTest.java51 KeySpec ks = in testRSAPublicKeySpec01() local
55 assertTrue(ks instanceof RSAPublicKeySpec); in testRSAPublicKeySpec01()
64 KeySpec ks = in testRSAPublicKeySpec02() local
67 assertTrue(ks instanceof RSAPublicKeySpec); in testRSAPublicKeySpec02()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DKSBuilder_ImplTest.java81 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in createKS() local
83 ks.load(null, null); in createKS()
84 ks.store(fos, pass); in createKS()
127 KeyStore ks = KeyStore.getInstance(defaultType); in testNewInstanceKeyStoreProtectionParameter() local
129 KeyStore.Builder.newInstance(ks, null); in testNewInstanceKeyStoreProtectionParameter()
149 ks = KeyStore.getInstance(defaultType); in testNewInstanceKeyStoreProtectionParameter()
151 KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter()
155 ks.load(null, pass); in testNewInstanceKeyStoreProtectionParameter()
156 ksB = KeyStore.Builder.newInstance(ks, pp[i]); in testNewInstanceKeyStoreProtectionParameter()
160 ks.setEntry("aaa", pKey, pp[0]); in testNewInstanceKeyStoreProtectionParameter()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECFieldElement.java521 private int[] ks; field in ECFieldElement.Fp.F2m
554 this.ks = new int[]{ k1 }; in F2m()
569 this.ks = new int[]{ k1, k2, k3 }; in F2m()
592 private F2m(int m, int[] ks, LongArray x) in F2m() argument
595 this.representation = (ks.length == 1) ? TPB : PPB; in F2m()
596 this.ks = ks; in F2m()
665 if ((aF2m.m != bF2m.m) || !Arrays.areEqual(aF2m.ks, bF2m.ks)) in checkFieldElements()
679 return new F2m(m, ks, iarrClone); in add()
684 return new F2m(m, ks, x.addOne()); in addOne()
702 return new F2m(m, ks, x.modMultiply(((F2m)b).x, m, ks)); in multiply()
[all …]
DLongArray.java856 public LongArray modMultiplyLD(LongArray other, int m, int[] ks) in modMultiplyLD() argument
906 return reduceResult(c0, 0, cLen, m, ks); in modMultiplyLD()
985 return reduceResult(c, 0, cLen, m, ks); in modMultiplyLD()
988 public LongArray modMultiply(LongArray other, int m, int[] ks) in modMultiply() argument
1038 return reduceResult(c0, 0, cLen, m, ks); in modMultiply()
1117 return reduceResult(c, 0, cLen, m, ks); in modMultiply()
1120 public LongArray modMultiplyAlt(LongArray other, int m, int[] ks) in modMultiplyAlt() argument
1170 return reduceResult(c0, 0, cLen, m, ks); in modMultiplyAlt()
1334 return reduceResult(c, ci[1], cLen, m, ks); in modMultiplyAlt()
1337 public LongArray modReduce(int m, int[] ks) in modReduce() argument
[all …]
DECAlgorithms.java24 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in sumOfMultiplies() argument
26 if (ps == null || ks == null || ps.length != ks.length || ps.length < 1) in sumOfMultiplies()
35 return ps[0].multiply(ks[0]); in sumOfMultiplies()
37 return sumOfTwoMultiplies(ps[0], ks[0], ps[1], ks[1]); in sumOfMultiplies()
55 … return validatePoint(implSumOfMultipliesGLV(imported, ks, (GLVEndomorphism)endomorphism)); in sumOfMultiplies()
58 return validatePoint(implSumOfMultiplies(imported, ks)); in sumOfMultiplies()
350 static ECPoint implSumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in implSumOfMultiplies() argument
359 BigInteger ki = ks[i]; negs[i] = ki.signum() < 0; ki = ki.abs(); in implSumOfMultiplies()
369 …static ECPoint implSumOfMultipliesGLV(ECPoint[] ps, BigInteger[] ks, GLVEndomorphism glvEndomorphi…
378 BigInteger[] ab = glvEndomorphism.decomposeScalar(ks[i].mod(n));
[all …]
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DSecretKeySpecTest.java68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); in testSecretKeySpec1() local
72 key[0] == ks.getEncoded()[0]); in testSecretKeySpec1()
141 SecretKeySpec ks = new SecretKeySpec(key, algorithm); in testSecretKeySpec2() local
145 key[offset] == ks.getEncoded()[0]); in testSecretKeySpec2()
164 SecretKeySpec ks = new SecretKeySpec(key, algorithm); in testGetAlgorithm() local
167 algorithm, ks.getAlgorithm()); in testGetAlgorithm()
177 SecretKeySpec ks = new SecretKeySpec(key, algorithm); in testGetFormat() local
179 ks.getFormat() == "RAW"); in testGetFormat()
191 SecretKeySpec ks = new SecretKeySpec(key, algorithm); in testGetEncoded() local
192 byte[] result = ks.getEncoded(); in testGetEncoded()
[all …]
DDESedeKeySpecTest.java107 DESedeKeySpec ks; in testGetKey() local
109 ks = new DESedeKeySpec(key); in testGetKey()
114 byte[] res = ks.getKey(); in testGetKey()
124 ks = new DESedeKeySpec(key1, 2); in testGetKey()
129 res = ks.getKey(); in testGetKey()
/external/netperf/
Dnetcpu_kstat.c71 kstat_t *ks; in open_kstat() local
132 ks = kstat_lookup(kc, "unix", 0, "system_misc"); in open_kstat()
133 if (kstat_read(kc, ks, 0) == -1) { in open_kstat()
147 kn = kstat_data_lookup(ks, "ncpus"); in open_kstat()
153 for (ks = kc->kc_chain; ks; in open_kstat()
154 ks = ks->ks_next) in open_kstat()
156 if (strncmp(ks->ks_name, "cpu_stat", 8) == 0) in open_kstat()
158 nkcid = kstat_read(kc, ks, NULL); in open_kstat()
167 fprintf(where,"cpu_ks[%d] getting %p\n",ncpu,ks); in open_kstat()
171 cpu_ks[ncpu] = ks; in open_kstat()
/external/boringssl/src/crypto/err/
Derr_data_generate.go117 func (ks keySlice) Len() int {
118 return len(ks)
121 func (ks keySlice) Less(i, j int) bool {
122 return (ks[i] >> 15) < (ks[j] >> 15)
125 func (ks keySlice) Swap(i, j int) {
126 ks[i], ks[j] = ks[j], ks[i]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java54 int ks[]; in convertCurve() local
58 ks = new int[] { curveF2m.getK1() }; in convertCurve()
60 …return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.g… in convertCurve()
64 ks = new int[] { curveF2m.getK3(), curveF2m.getK2(), curveF2m.getK1() }; in convertCurve()
66 …return new EllipticCurve(new ECFieldF2m(curveF2m.getM(), ks), curve.getA().toBigInteger(), curve.g… in convertCurve()
93 int ks[] = ECUtil.convertMidTerms(fieldF2m.getMidTermsOfReductionPolynomial()); in convertCurve() local
94 return new ECCurve.F2m(m, ks[0], ks[1], ks[2], a, b); in convertCurve()
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DKeyManagerImplTest.java33 KeyStore ks = null; in testKeyManagerImpl1() local
34 ks = KeyStore.getInstance("BKS"); in testKeyManagerImpl1()
35 ks.load(null, null); in testKeyManagerImpl1()
37 KeyManagerImpl km = new KeyManagerImpl(ks, new char[0]); in testKeyManagerImpl1()
61 KeyStore ks = JSSETestData.getKeyStore(); in testKeyManagerImpl2() local
64 KeyManagerImpl km = new KeyManagerImpl(ks, pwd); in testKeyManagerImpl2()
DTrustManagerImplTest.java74 KeyStore ks = KeyStore.getInstance("BKS"); in testTrustManagerImpl_1() local
75 ks.load(null, null); in testTrustManagerImpl_1()
77 TrustManagerImpl tm = new TrustManagerImpl(ks); in testTrustManagerImpl_1()
83 KeyStore ks = JSSETestData.getKeyStore(); in testTrustManagerImpl_2() local
85 TrustManagerImpl tm = new TrustManagerImpl(ks); in testTrustManagerImpl_2()
/external/conscrypt/src/main/java/org/conscrypt/
DDefaultSSLContextImpl.java74 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in getKeyManagers() local
78 ks.load(is, pwd); in getKeyManagers()
87 kmf.init(ks, pwd); in getKeyManagers()
107 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in getTrustManagers() local
111 ks.load(is, pwd); in getTrustManagers()
119 tmf.init(ks); in getTrustManagers()
/external/libvncserver/x11vnc/
Dkeyboard.c330 KeySym ks = XKeycodeToKeysym(dpy, key, 0); in clear_locks()
331 char *nm = XKeysymToString(ks); in clear_locks()
332 rfbLog("toggling: %03d / %03d -- %s\n", key, ks, nm ? nm : "BadKey"); in clear_locks()
1229 KeySym ks; in initialize_xkb_modtweak() local
1340 ks = XkbKeycodeToKeysym(dpy, kc, grp, lvl); in initialize_xkb_modtweak()
1341 xkbkeysyms[kc][grp][lvl] = ks; in initialize_xkb_modtweak()
1344 if (ks == NoSymbol) { in initialize_xkb_modtweak()
1351 if (ks == XK_Multi_key) { in initialize_xkb_modtweak()
1354 if (ks == XK_Mode_switch) { in initialize_xkb_modtweak()
1357 if (ks == XK_Shift_L || ks == XK_Shift_R) { in initialize_xkb_modtweak()
[all …]
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/
DMyTrustManagerFactorySpi.java35 protected void engineInit(KeyStore ks) throws KeyStoreException { in engineInit() argument
36 if (ks == null) { in engineInit()
67 public Parameters(KeyStore ks) { in Parameters() argument
68 this.keyStore = ks; in Parameters()
DMyKeyManagerFactorySpi.java38 protected void engineInit(KeyStore ks, char[] password) in engineInit() argument
44 if (ks == null) { in engineInit()
76 public Parameters(KeyStore ks, char[] pass) { in Parameters() argument
77 this.keyStore = ks; in Parameters()
/external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/
DMyTrustManagerFactorySpi.java35 protected void engineInit(KeyStore ks) throws KeyStoreException { in engineInit() argument
36 if (ks == null) { in engineInit()
67 public Parameters(KeyStore ks) { in Parameters() argument
68 this.keyStore = ks; in Parameters()
DMyKeyManagerFactorySpi.java38 protected void engineInit(KeyStore ks, char[] password) in engineInit() argument
44 if (ks == null) { in engineInit()
76 public Parameters(KeyStore ks, char[] pass) { in Parameters() argument
77 this.keyStore = ks; in Parameters()

1234567891011