Home
last modified time | relevance | path

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

12345678910>>...22

/external/boringssl/src/crypto/fipsmodule/des/
Ddes.c381 static void DES_encrypt1(uint32_t *data, const DES_key_schedule *ks, int enc) { in DES_encrypt1() argument
401 D_ENCRYPT(ks, l, r, 0); in DES_encrypt1()
402 D_ENCRYPT(ks, r, l, 1); in DES_encrypt1()
403 D_ENCRYPT(ks, l, r, 2); in DES_encrypt1()
404 D_ENCRYPT(ks, r, l, 3); in DES_encrypt1()
405 D_ENCRYPT(ks, l, r, 4); in DES_encrypt1()
406 D_ENCRYPT(ks, r, l, 5); in DES_encrypt1()
407 D_ENCRYPT(ks, l, r, 6); in DES_encrypt1()
408 D_ENCRYPT(ks, r, l, 7); in DES_encrypt1()
409 D_ENCRYPT(ks, l, r, 8); in DES_encrypt1()
[all …]
Dinternal.h212 #define LOAD_DATA(ks, R, S, u, t, E0, E1) \ argument
214 (u) = (R) ^ (ks)->subkeys[S][0]; \
215 (t) = (R) ^ (ks)->subkeys[S][1]; \
218 #define D_ENCRYPT(ks, LL, R, S) \ argument
220 LOAD_DATA(ks, R, S, u, t, E0, E1); \
/external/boringssl/src/crypto/fipsmodule/cipher/
De_des.c68 DES_key_schedule ks; member
69 } ks; member
77 DES_set_key(deskey, &dat->ks.ks); in des_init_key()
85 DES_ncbc_encrypt(in, out, in_len, &dat->ks.ks, (DES_cblock *)ctx->iv, in des_cbc_cipher()
113 &dat->ks.ks, ctx->encrypt); in des_ecb_cipher()
133 DES_key_schedule ks[3]; member
134 } ks; member
142 DES_set_key(&deskey[0], &dat->ks.ks[0]); in des_ede3_init_key()
143 DES_set_key(&deskey[1], &dat->ks.ks[1]); in des_ede3_init_key()
144 DES_set_key(&deskey[2], &dat->ks.ks[2]); in des_ede3_init_key()
[all …]
De_aes.c74 AES_KEY ks; member
75 } ks; member
87 AES_KEY ks; member
88 } ks; // AES key schedule to use member
106 ret = aes_hw_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
113 ret = aes_nohw_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
118 ret = vpaes_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
122 ret = aes_nohw_set_decrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
132 ret = aes_hw_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
141 ret = aes_nohw_set_encrypt_key(key, ctx->key_len * 8, &dat->ks.ks); in aes_init_key()
[all …]
/external/u-boot/drivers/net/
Dks8851_mll.c98 } ks_str, *ks; variable
168 ks_wrreg16(dev, KS_IER, ks->rc_ier); in ks_enable_int()
196 ks->sharedbus = (reg_data & CCR_SHARED) == CCR_SHARED; in ks_read_config()
203 ks->bus_width = ENUM_BUS_8BIT; in ks_read_config()
204 ks->extra_byte = 1; in ks_read_config()
206 ks->bus_width = ENUM_BUS_16BIT; in ks_read_config()
207 ks->extra_byte = 2; in ks_read_config()
209 ks->bus_width = ENUM_BUS_32BIT; in ks_read_config()
210 ks->extra_byte = 4; in ks_read_config()
273 u32 r = ks->extra_byte & 0x1; in ks_read_qmu()
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dprng.cc46 std::array<XlaOp, 3> ks; in ThreeFry2x32() local
48 ks[2] = ConstantR0<uint32>(builder, 0x1BD11BDA); in ThreeFry2x32()
50 ks[i] = key[i]; in ThreeFry2x32()
52 ks[2] = ks[2] ^ key[i]; in ThreeFry2x32()
55 x[0] = x[0] + ks[0]; in ThreeFry2x32()
56 x[1] = x[1] + ks[1]; in ThreeFry2x32()
73 x[0] = x[0] + ks[1]; in ThreeFry2x32()
74 x[1] = x[1] + ks[2] + ConstantR0<uint32>(builder, 1); in ThreeFry2x32()
80 x[0] = x[0] + ks[2]; in ThreeFry2x32()
81 x[1] = x[1] + ks[0] + ConstantR0<uint32>(builder, 2); in ThreeFry2x32()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECFieldElement.java583 private int[] ks; field in ECFieldElement.Fp.F2m
621 this.ks = new int[]{ k1 }; in F2m()
636 this.ks = new int[]{ k1, k2, k3 }; in F2m()
643 F2m(int m, int[] ks, LongArray x) in F2m() argument
646 this.representation = (ks.length == 1) ? TPB : PPB; in F2m()
647 this.ks = ks; in F2m()
716 if ((aF2m.m != bF2m.m) || !Arrays.areEqual(aF2m.ks, bF2m.ks)) in checkFieldElements()
730 return new F2m(m, ks, iarrClone); in add()
735 return new F2m(m, ks, x.addOne()); in addOne()
753 return new F2m(m, ks, x.modMultiply(((F2m)b).x, m, ks)); in multiply()
[all …]
DLongArray.java863 public LongArray modMultiplyLD(LongArray other, int m, int[] ks) in modMultiplyLD() argument
913 return reduceResult(c0, 0, cLen, m, ks); in modMultiplyLD()
992 return reduceResult(c, 0, cLen, m, ks); in modMultiplyLD()
995 public LongArray modMultiply(LongArray other, int m, int[] ks) in modMultiply() argument
1045 return reduceResult(c0, 0, cLen, m, ks); in modMultiply()
1124 return reduceResult(c, 0, cLen, m, ks); in modMultiply()
1127 public LongArray modMultiplyAlt(LongArray other, int m, int[] ks) in modMultiplyAlt() argument
1177 return reduceResult(c0, 0, cLen, m, ks); in modMultiplyAlt()
1341 return reduceResult(c, ci[1], cLen, m, ks); in modMultiplyAlt()
1344 public LongArray modReduce(int m, int[] ks) in modReduce() argument
[all …]
DECAlgorithms.java33 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in sumOfMultiplies() argument
35 if (ps == null || ks == null || ps.length != ks.length || ps.length < 1) in sumOfMultiplies()
44 return ps[0].multiply(ks[0]); in sumOfMultiplies()
46 return sumOfTwoMultiplies(ps[0], ks[0], ps[1], ks[1]); in sumOfMultiplies()
64 … return implCheckResult(implSumOfMultipliesGLV(imported, ks, (GLVEndomorphism)endomorphism)); in sumOfMultiplies()
67 return implCheckResult(implSumOfMultiplies(imported, ks)); in sumOfMultiplies()
380 static ECPoint implSumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in implSumOfMultiplies() argument
389 BigInteger ki = ks[i]; negs[i] = ki.signum() < 0; ki = ki.abs(); in implSumOfMultiplies()
399 …static ECPoint implSumOfMultipliesGLV(ECPoint[] ps, BigInteger[] ks, GLVEndomorphism glvEndomorphi…
408 BigInteger[] ab = glvEndomorphism.decomposeScalar(ks[i].mod(n));
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DECFieldElement.java597 private int[] ks; field in ECFieldElement.Fp.F2m
635 this.ks = new int[]{ k1 }; in F2m()
650 this.ks = new int[]{ k1, k2, k3 }; in F2m()
657 F2m(int m, int[] ks, LongArray x) in F2m() argument
660 this.representation = (ks.length == 1) ? TPB : PPB; in F2m()
661 this.ks = ks; in F2m()
730 if ((aF2m.m != bF2m.m) || !Arrays.areEqual(aF2m.ks, bF2m.ks)) in checkFieldElements()
744 return new F2m(m, ks, iarrClone); in add()
749 return new F2m(m, ks, x.addOne()); in addOne()
767 return new F2m(m, ks, x.modMultiply(((F2m)b).x, m, ks)); in multiply()
[all …]
DLongArray.java864 public LongArray modMultiplyLD(LongArray other, int m, int[] ks) in modMultiplyLD() argument
914 return reduceResult(c0, 0, cLen, m, ks); in modMultiplyLD()
993 return reduceResult(c, 0, cLen, m, ks); in modMultiplyLD()
996 public LongArray modMultiply(LongArray other, int m, int[] ks) in modMultiply() argument
1046 return reduceResult(c0, 0, cLen, m, ks); in modMultiply()
1125 return reduceResult(c, 0, cLen, m, ks); in modMultiply()
1128 public LongArray modMultiplyAlt(LongArray other, int m, int[] ks) in modMultiplyAlt() argument
1178 return reduceResult(c0, 0, cLen, m, ks); in modMultiplyAlt()
1342 return reduceResult(c, ci[1], cLen, m, ks); in modMultiplyAlt()
1345 public LongArray modReduce(int m, int[] ks) in modReduce() argument
[all …]
DECAlgorithms.java37 public static ECPoint sumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in sumOfMultiplies() argument
39 if (ps == null || ks == null || ps.length != ks.length || ps.length < 1) in sumOfMultiplies()
48 return ps[0].multiply(ks[0]); in sumOfMultiplies()
50 return sumOfTwoMultiplies(ps[0], ks[0], ps[1], ks[1]); in sumOfMultiplies()
68 … return implCheckResult(implSumOfMultipliesGLV(imported, ks, (GLVEndomorphism)endomorphism)); in sumOfMultiplies()
71 return implCheckResult(implSumOfMultiplies(imported, ks)); in sumOfMultiplies()
384 static ECPoint implSumOfMultiplies(ECPoint[] ps, BigInteger[] ks) in implSumOfMultiplies() argument
393 BigInteger ki = ks[i]; negs[i] = ki.signum() < 0; ki = ki.abs(); in implSumOfMultiplies()
403 …static ECPoint implSumOfMultipliesGLV(ECPoint[] ps, BigInteger[] ks, GLVEndomorphism glvEndomorphi…
412 BigInteger[] ab = glvEndomorphism.decomposeScalar(ks[i].mod(n));
[all …]
/external/libxkbcommon/xkbcommon/src/
Dkeysym.c83 xkb_keysym_get_name(xkb_keysym_t ks, char *buffer, size_t size) in xkb_keysym_get_name() argument
87 if ((ks & ((unsigned long) ~0x1fffffff)) != 0) { in xkb_keysym_get_name()
92 entry = bsearch(&ks, keysym_to_name, in xkb_keysym_get_name()
100 if (ks >= 0x01000100 && ks <= 0x0110ffff) { in xkb_keysym_get_name()
101 const int width = (ks & 0xff0000UL) ? 8 : 4; in xkb_keysym_get_name()
102 return snprintf(buffer, size, "U%0*lX", width, ks & 0xffffffUL); in xkb_keysym_get_name()
106 return snprintf(buffer, size, "0x%08x", ks); in xkb_keysym_get_name()
242 xkb_keysym_is_lower(xkb_keysym_t ks) in xkb_keysym_is_lower() argument
246 XConvertCase(ks, &lower, &upper); in xkb_keysym_is_lower()
251 return (ks == lower ? true : false); in xkb_keysym_is_lower()
[all …]
/external/boringssl/src/crypto/cipher_extra/
De_aesccm.c31 AES_KEY ks; member
32 } ks; member
69 ctr128_f ctr = aes_ctr_set_key(&ccm_ctx->ks.ks, NULL, &block, key, key_len); in aead_aes_ccm_init()
71 if (!CRYPTO_ccm128_init(&ccm_ctx->ccm, &ccm_ctx->ks.ks, block, ctr, M, L)) { in aead_aes_ccm_init()
104 if (!CRYPTO_ccm128_encrypt(&ccm_ctx->ccm, &ccm_ctx->ks.ks, out, out_tag, in aead_aes_ccm_seal_scatter()
140 if (!CRYPTO_ccm128_decrypt(&ccm_ctx->ccm, &ccm_ctx->ks.ks, out, tag, in aead_aes_ccm_open_gather()
De_aesctrhmac.c30 AES_KEY ks; member
31 } ks; member
98 aes_ctr_set_key(&aes_ctx->ks.ks, NULL, &aes_ctx->block, key, aes_key_len); in aead_aes_ctr_hmac_sha256_init()
166 CRYPTO_ctr128_encrypt_ctr32(in, out, len, &aes_ctx->ks.ks, counter, in aead_aes_ctr_hmac_sha256_crypt()
170 CRYPTO_ctr128_encrypt(in, out, len, &aes_ctx->ks.ks, counter, in aead_aes_ctr_hmac_sha256_crypt()
De_rc2.c232 RC2_KEY *ks, uint8_t *iv, int encrypt) { in RC2_cbc_encrypt() argument
249 RC2_encrypt(tin, ks); in RC2_cbc_encrypt()
261 RC2_encrypt(tin, ks); in RC2_cbc_encrypt()
278 RC2_decrypt(tin, ks); in RC2_cbc_encrypt()
291 RC2_decrypt(tin, ks); in RC2_cbc_encrypt()
382 RC2_KEY ks; // key schedule member
388 RC2_set_key(&rc2_key->ks, EVP_CIPHER_CTX_key_length(ctx), key, in rc2_init_key()
399 RC2_cbc_encrypt(in, out, kChunkSize, &key->ks, ctx->iv, ctx->encrypt); in rc2_cbc_cipher()
405 RC2_cbc_encrypt(in, out, inl, &key->ks, ctx->iv, ctx->encrypt); in rc2_cbc_cipher()
/external/boringssl/src/crypto/err/
Derr_data_generate.go120 func (ks keySlice) Len() int {
121 return len(ks)
124 func (ks keySlice) Less(i, j int) bool {
125 return (ks[i] >> 15) < (ks[j] >> 15)
128 func (ks keySlice) Swap(i, j int) {
129 ks[i], ks[j] = ks[j], ks[i]
/external/boringssl/src/decrepit/xts/
Dxts.c153 AES_KEY ks; member
168 AES_set_encrypt_key(key, ctx->key_len * 4, &xctx->ks1.ks); in aes_xts_init_key()
171 AES_set_decrypt_key(key, ctx->key_len * 4, &xctx->ks1.ks); in aes_xts_init_key()
176 ctx->key_len * 4, &xctx->ks2.ks); in aes_xts_init_key()
178 xctx->xts.key1 = &xctx->ks1.ks; in aes_xts_init_key()
182 xctx->xts.key2 = &xctx->ks2.ks; in aes_xts_init_key()
209 if (xctx->xts.key1 != &xctx->ks1.ks) { in aes_xts_ctrl()
212 xctx_out->xts.key1 = &xctx_out->ks1.ks; in aes_xts_ctrl()
215 if (xctx->xts.key2 != &xctx->ks2.ks) { in aes_xts_ctrl()
218 xctx_out->xts.key2 = &xctx_out->ks2.ks; in aes_xts_ctrl()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DDefaultSSLContextImpl.java78 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in getKeyManagers() local
82 ks.load(is, pwd); in getKeyManagers()
91 kmf.init(ks, pwd); in getKeyManagers()
111 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in getTrustManagers() local
115 ks.load(is, pwd); in getTrustManagers()
123 tmf.init(ks); in getTrustManagers()
/external/conscrypt/common/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()
DTrustManagerFactoryImpl.java59 public void engineInit(KeyStore ks) throws KeyStoreException { in engineInit() argument
60 if (ks != null) { in engineInit()
61 keyStore = ks; in engineInit()
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/operators/
Drx-group_by.hpp136 …group_by_values(key_selector_type ks, marble_selector_type ms, predicate_type p, duration_selector… in group_by_values()
137 : keySelector(std::move(ks)) in group_by_values()
151 …group_by(key_selector_type ks, marble_selector_type ms, predicate_type p, duration_selector_type d… in group_by()
152 : initial(std::move(ks), std::move(ms), std::move(p), std::move(ds)) in group_by()
291 …group_by_factory(key_selector_type ks, marble_selector_type ms, predicate_type p, duration_selecto… in group_by_factory() argument
292 : keySelector(std::move(ks)) in group_by_factory()
332 …static auto member(Observable&& o, KeySelector&& ks, MarbleSelector&& ms, BinaryPredicate&& p, Dur… in member()
333 …-> decltype(o.template lift<Value>(GroupBy(std::forward<KeySelector>(ks), std::forward<MarbleSelec… in member()
334 …return o.template lift<Value>(GroupBy(std::forward<KeySelector>(ks), std::forward<MarbleSelec… in member()
343 static auto member(Observable&& o, KeySelector&& ks, MarbleSelector&& ms, BinaryPredicate&& p) in member()
[all …]
/external/curl/lib/
Dcurl_ntlm_core.c157 DES_key_schedule DESKEYARG(ks)) in setup_des_key() argument
168 DES_set_key(&key, ks); in setup_des_key()
402 DES_key_schedule ks; in Curl_ntlm_core_lm_resp() local
404 setup_des_key(keys, DESKEY(ks)); in Curl_ntlm_core_lm_resp()
406 DESKEY(ks), DES_ENCRYPT); in Curl_ntlm_core_lm_resp()
408 setup_des_key(keys + 7, DESKEY(ks)); in Curl_ntlm_core_lm_resp()
410 DESKEY(ks), DES_ENCRYPT); in Curl_ntlm_core_lm_resp()
412 setup_des_key(keys + 14, DESKEY(ks)); in Curl_ntlm_core_lm_resp()
414 DESKEY(ks), DES_ENCRYPT); in Curl_ntlm_core_lm_resp()
477 DES_key_schedule ks; in Curl_ntlm_core_mk_lm_hash() local
[all …]
/external/boringssl/src/crypto/fipsmodule/rand/
Dctrdrbg.c60 drbg->ctr = aes_ctr_set_key(&drbg->ks, NULL, &drbg->block, seed_material, 32); in CTR_DRBG_init()
89 drbg->block(drbg->counter.bytes, temp + i, &drbg->ks); in ctr_drbg_update()
96 drbg->ctr = aes_ctr_set_key(&drbg->ks, NULL, &drbg->block, temp, 32); in ctr_drbg_update()
169 drbg->ctr(out, out, num_blocks, &drbg->ks, drbg->counter.bytes); in CTR_DRBG_generate()
174 drbg->block(drbg->counter.bytes, out + i, &drbg->ks); in CTR_DRBG_generate()
185 drbg->block(drbg->counter.bytes, block, &drbg->ks); in CTR_DRBG_generate()
/external/grpc-grpc-java/android-interop-testing/app/src/main/java/io/grpc/android/integrationtest/
DTesterOkHttpChannelBuilder.java74 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType()); in getTrustManagers() local
75 ks.load(null); in getTrustManagers()
79 ks.setCertificateEntry(principal.getName("RFC2253"), cert); in getTrustManagers()
83 trustManagerFactory.init(ks); in getTrustManagers()

12345678910>>...22