HomeSort by relevance Sort by last modified time
    Searched refs:ks (Results 76 - 100 of 257) sorted by null

1 2 34 5 6 7 8 91011

  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DESedeKeySpecTest.java 107 DESedeKeySpec ks; local
109 ks = new DESedeKeySpec(key);
114 byte[] res = ks.getKey();
124 ks = new DESedeKeySpec(key1, 2);
129 res = ks.getKey();
  /frameworks/base/services/java/com/android/server/pm/
KeySetManager.java 83 public boolean packageIsSignedBy(String packageName, KeySet ks) {
92 long id = getIdByKeySetLocked(ks);
109 KeySet ks = addKeySetLocked(keys); local
114 long id = getIdByKeySetLocked(ks);
131 KeySet ks = addKeySetLocked(signingKeys); local
132 long id = getIdByKeySetLocked(ks);
160 public long getIdByKeySet(KeySet ks) {
162 return getIdByKeySetLocked(ks);
166 private long getIdByKeySetLocked(KeySet ks) {
169 if (ks.equals(value))
258 KeySet ks = new KeySet(new Binder()); local
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/
DSAKeyFactoryImplTest.java 306 X509EncodedKeySpec ks; local
329 ks = kf.getKeySpec(pubKey, X509EncodedKeySpec.class);
331 pubKey = (DSAPublicKey) kf.generatePublic((KeySpec)ks);
347 X509EncodedKeySpec ks; local
371 ks = kf.getKeySpec(pubKey, X509EncodedKeySpec.class);
372 pubKey = (DSAPublicKey) kf.generatePublic((KeySpec)ks);
431 PKCS8EncodedKeySpec ks; local
454 ks = kf.getKeySpec(prKey, PKCS8EncodedKeySpec.class);
456 prKey = (DSAPrivateKey) kf.generatePrivate((KeySpec)ks);
472 PKCS8EncodedKeySpec ks; local
584 KeySpec ks; local
603 KeySpec ks; local
776 X509EncodedKeySpec ks = kf.getKeySpec(pubKey, X509EncodedKeySpec.class); local
820 PKCS8EncodedKeySpec ks = kf.getKeySpec(prKey, PKCS8EncodedKeySpec.class); local
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/evp/
e_rc4_hmac_md5.c 73 RC4_KEY ks; member in struct:__anon13662
91 RC4_set_key(&key->ks,EVP_CIPHER_CTX_key_length(ctx),
121 size_t rc4_off = 32-1-(key->ks.x&(32-1)), /* 32 is $MOD from rc4_md5-x86_64.pl */
140 RC4(&key->ks,rc4_off,in,out);
142 rc4_md5_enc(&key->ks,in+rc4_off,out+rc4_off,
167 RC4(&key->ks,len-rc4_off,out+rc4_off,out+rc4_off);
169 RC4(&key->ks,len-rc4_off,in+rc4_off,out+rc4_off);
180 RC4(&key->ks,rc4_off,in,out);
183 rc4_md5_enc(&key->ks,in+rc4_off,out+rc4_off,
198 RC4(&key->ks,len-rc4_off,in+rc4_off,out+rc4_off)
    [all...]
  /external/openssl/crypto/evp/
e_rc4_hmac_md5.c 73 RC4_KEY ks; member in struct:__anon24237
91 RC4_set_key(&key->ks,EVP_CIPHER_CTX_key_length(ctx),
121 size_t rc4_off = 32-1-(key->ks.x&(32-1)), /* 32 is $MOD from rc4_md5-x86_64.pl */
140 RC4(&key->ks,rc4_off,in,out);
142 rc4_md5_enc(&key->ks,in+rc4_off,out+rc4_off,
167 RC4(&key->ks,len-rc4_off,out+rc4_off,out+rc4_off);
169 RC4(&key->ks,len-rc4_off,in+rc4_off,out+rc4_off);
180 RC4(&key->ks,rc4_off,in,out);
183 rc4_md5_enc(&key->ks,in+rc4_off,out+rc4_off,
198 RC4(&key->ks,len-rc4_off,in+rc4_off,out+rc4_off)
    [all...]
e_aes.c 65 AES_KEY ks; member in struct:__anon24221
75 AES_KEY ks; /* AES key schedule to use */ member in struct:__anon24223
99 AES_KEY ks; /* AES key schedule to use */ member in struct:__anon24225
313 aesni_set_encrypt_key(key, ctx->key_len * 8, &gctx->ks);
314 CRYPTO_gcm128_init(&gctx->gcm, &gctx->ks,
397 aesni_set_encrypt_key(key, ctx->key_len * 8, &cctx->ks);
399 &cctx->ks, (block128_f)aesni_encrypt);
508 ret = AES_set_decrypt_key(key,ctx->key_len*8,&dat->ks);
517 ret = vpaes_set_decrypt_key(key,ctx->key_len*8,&dat->ks);
526 ret = AES_set_decrypt_key(key,ctx->key_len*8,&dat->ks);
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/des/
destest.c 339 des_key_schedule ks,ks2,ks3; local
357 if ((j=DES_set_key_checked(&cbc_key,&ks)) != 0)
379 DES_ede3_cbcm_encrypt(cbc_data,cbc_out,16L,&ks,&ks2,&ks3,&iv3,&iv2,
381 DES_ede3_cbcm_encrypt(&cbc_data[16],&cbc_out[16],i-16,&ks,&ks2,&ks3,
392 DES_ede3_cbcm_encrypt(cbc_out,cbc_in,i,&ks,&ks2,&ks3,&iv3,&iv2,DES_DECRYPT);
411 DES_set_key_unchecked(&key_data[i],&ks);
415 des_ecb_encrypt(&in,&out,ks,DES_ENCRYPT);
416 des_ecb_encrypt(&out,&outin,ks,DES_DECRYPT);
437 DES_set_key_unchecked(&key_data[i],&ks);
443 des_ecb2_encrypt(&in,&out,ks,ks2,DES_ENCRYPT)
854 des_key_schedule ks; local
883 des_key_schedule ks; local
916 des_key_schedule ks; local
    [all...]
ecb_enc.c 109 DES_key_schedule *ks, int enc)
118 DES_encrypt1(ll,ks,enc);
  /external/openssl/crypto/des/
destest.c 339 des_key_schedule ks,ks2,ks3; local
357 if ((j=DES_set_key_checked(&cbc_key,&ks)) != 0)
379 DES_ede3_cbcm_encrypt(cbc_data,cbc_out,16L,&ks,&ks2,&ks3,&iv3,&iv2,
381 DES_ede3_cbcm_encrypt(&cbc_data[16],&cbc_out[16],i-16,&ks,&ks2,&ks3,
392 DES_ede3_cbcm_encrypt(cbc_out,cbc_in,i,&ks,&ks2,&ks3,&iv3,&iv2,DES_DECRYPT);
411 DES_set_key_unchecked(&key_data[i],&ks);
415 des_ecb_encrypt(&in,&out,ks,DES_ENCRYPT);
416 des_ecb_encrypt(&out,&outin,ks,DES_DECRYPT);
437 DES_set_key_unchecked(&key_data[i],&ks);
443 des_ecb2_encrypt(&in,&out,ks,ks2,DES_ENCRYPT)
854 des_key_schedule ks; local
883 des_key_schedule ks; local
916 des_key_schedule ks; local
    [all...]
ecb_enc.c 109 DES_key_schedule *ks, int enc)
118 DES_encrypt1(ll,ks,enc);
  /libcore/crypto/src/main/java/org/conscrypt/
KeyManagerFactoryImpl.java 47 * @see KeyManagerFactorySpi#engineInit(KeyStore ks, char[] password)
50 protected void engineInit(KeyStore ks, char[] password)
53 if (ks != null) {
54 keyStore = ks;
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
ECFieldF2m_ImplTest.java 67 * The <code>ks</code> parameter for <code>ECFieldF2m</code>
70 final int[] ks; field in class:ECFieldF2m_ImplTest.ECFieldF2mDomainParams
84 * @param ks
89 final int[] ks,
93 this.ks = ks;
ECPrivateKeySpec_ImplTest.java 125 ECPrivateKeySpec ks = new ECPrivateKeySpec(BigInteger.ZERO, params); local
126 ECParameterSpec paramsRet = ks.getParams();
152 ECPrivateKeySpec ks = new ECPrivateKeySpec(s, params); local
153 BigInteger sRet = ks.getS();
ECPublicKeySpec_ImplTest.java 149 ECPublicKeySpec ks = new ECPublicKeySpec(g, params); local
150 ECParameterSpec paramsRet = ks.getParams();
175 ECPublicKeySpec ks = new ECPublicKeySpec(g, params); local
176 ECPoint wRet = ks.getW();
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DSAPrivateKeySpecTest.java 48 KeySpec ks = new DSAPrivateKeySpec( local
54 assertTrue(ks instanceof DSAPrivateKeySpec);
DSAPublicKeySpecTest.java 48 KeySpec ks = new DSAPublicKeySpec( local
54 assertTrue(ks instanceof DSAPublicKeySpec);
  /external/chromium_org/net/android/javatests/src/org/chromium/net/
AndroidKeyStoreTestUtil.java 49 KeySpec ks = new PKCS8EncodedKeySpec(encodedKey); local
50 PrivateKey key = factory.generatePrivate(ks);
  /external/dropbear/libtomcrypt/demos/
encrypt.c 102 int cipher_idx, hash_idx, ks; local
152 ks = hash_descriptor[hash_idx].hashsize;
153 if (cipher_descriptor[cipher_idx].keysize(&ks) != CRYPT_OK) {
173 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) {
215 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) {
  /development/samples/ApiDemos/src/com/example/android/apis/security/
KeyStoreUsage.java 268 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); local
269 ks.load(null);
270 Enumeration<String> aliases = ks.aliases();
364 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); local
365 ks.load(null);
366 KeyStore.Entry entry = ks.getEntry(alias, null);
435 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); local
436 ks.load(null);
437 KeyStore.Entry entry = ks.getEntry(alias, null);
500 KeyStore ks = KeyStore.getInstance("AndroidKeyStore") local
    [all...]
  /development/samples/KeyChainDemo/src/com/example/android/keychain/
SecureWebServer.java 67 KeyStore ks = KeyStore.getInstance("PKCS12"); local
71 ks.load(fis, KeyChainDemoActivity.PKCS12_PASSWORD.toCharArray());
72 kmf.init(ks, KeyChainDemoActivity.PKCS12_PASSWORD.toCharArray());
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
ServerHandshakeImplTest.java 45 KeyStore ks = JSSETestData.getKeyStore(); local
48 kmf.init(ks, pwd);
51 tmf.init(ks);
  /libcore/luni/src/test/java/tests/api/javax/net/ssl/
KeyManagerFactorySpiTest.java 46 * javax.net.ssl.KeyManagerFactorySpi#KengineInit(KeyStore ks, char[] password)
50 KeyStore ks; local
72 ks = KeyStore.getInstance(KeyStore.getDefaultType());
73 kmf.engineInit(ks, null);
  /external/chromium_org/third_party/openssl/openssl/crypto/rc2/
rc2.h 91 RC2_KEY *ks, unsigned char *iv, int enc);
  /external/chromium_org/third_party/openssl/openssl/include/openssl/
rc2.h 91 RC2_KEY *ks, unsigned char *iv, int enc);
  /external/openssl/crypto/rc2/
rc2.h 91 RC2_KEY *ks, unsigned char *iv, int enc);

Completed in 767 milliseconds

1 2 34 5 6 7 8 91011