Home
last modified time | relevance | path

Searched refs:crypt (Results 1 – 25 of 70) sorted by relevance

123

/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-cipher.c104 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
110 if (plain != crypt) in crypto_cipher_encrypt()
111 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
113 ctx->u.rc4.used_bytes, crypt, len); in crypto_cipher_encrypt()
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE); in crypto_cipher_encrypt()
127 crypt += AES_BLOCK_SIZE; in crypto_cipher_encrypt()
139 os_memcpy(crypt, ctx->u.des3.cbc, 8); in crypto_cipher_encrypt()
141 crypt += 8; in crypto_cipher_encrypt()
153 os_memcpy(crypt, ctx->u.des.cbc, 8); in crypto_cipher_encrypt()
155 crypt += 8; in crypto_cipher_encrypt()
[all …]
Ddes-internal.c434 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) in des_block_encrypt() argument
440 WPA_PUT_BE32(crypt, work[0]); in des_block_encrypt()
441 WPA_PUT_BE32(crypt + 4, work[1]); in des_block_encrypt()
445 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) in des_block_decrypt() argument
448 work[0] = WPA_GET_BE32(crypt); in des_block_decrypt()
449 work[1] = WPA_GET_BE32(crypt + 4); in des_block_decrypt()
468 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) in des3_encrypt() argument
477 WPA_PUT_BE32(crypt, work[0]); in des3_encrypt()
478 WPA_PUT_BE32(crypt + 4, work[1]); in des3_encrypt()
482 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain) in des3_decrypt() argument
[all …]
Ddes_i.h18 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt);
19 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain);
22 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt);
23 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
Dcrypto_libtomcrypt.c99 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
102 aes_ecb_encrypt(plain, crypt, skey); in aes_encrypt()
128 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
131 aes_ecb_encrypt(plain, (u8 *) crypt, skey); in aes_decrypt()
351 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
356 if (plain != crypt) in crypto_cipher_encrypt()
357 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
359 ctx->u.rc4.used_bytes, crypt, len); in crypto_cipher_encrypt()
364 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); in crypto_cipher_encrypt()
374 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
[all …]
Dcrypto_gnutls.c110 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
113 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); in aes_encrypt()
140 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
143 gcry_cipher_decrypt(hd, plain, 16, crypt, 16); in aes_decrypt()
275 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
277 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) != in crypto_cipher_encrypt()
284 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
287 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) != in crypto_cipher_decrypt()
Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S) in aes_gcm_ghash() argument
242 ghash(H, crypt, crypt_len, S); in aes_gcm_ghash()
256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) in aes_gcm_ae() argument
270 aes_gcm_gctr(aes, J0, plain, plain_len, crypt); in aes_gcm_ae()
272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S); in aes_gcm_ae()
289 const u8 *crypt, size_t crypt_len, in aes_gcm_ad() argument
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain); in aes_gcm_ad()
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
Dcrypto_cryptoapi.c291 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
296 os_memcpy(crypt, plain, 16); in aes_encrypt()
298 if (!CryptEncrypt(akey->ckey, 0, FALSE, 0, crypt, &dlen, 16)) { in aes_encrypt()
301 os_memset(crypt, 0, 16); in aes_encrypt()
323 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
328 os_memcpy(plain, crypt, 16); in aes_decrypt()
591 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
595 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
597 if (!CryptEncrypt(ctx->key, 0, FALSE, 0, crypt, &dlen, len)) { in crypto_cipher_encrypt()
599 os_memset(crypt, 0, len); in crypto_cipher_encrypt()
[all …]
Daes_wrap.h47 u8 *crypt, u8 *tag);
50 const u8 *crypt, size_t crypt_len,
58 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
60 size_t M, const u8 *crypt, size_t crypt_len,
Daes.h15 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
Dcrypto_nss.c144 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
160 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
192 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
198 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
Dcrypto.h104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
126 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
227 const u8 *plain, u8 *crypt, size_t len);
242 const u8 *crypt, u8 *plain, size_t len);
391 struct crypto_public_key *key, const u8 *crypt, size_t crypt_len,
Daes-ccm.c150 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument
168 aes_ccm_encr(aes, L, plain, plain_len, crypt, a); in aes_ccm_ae()
179 size_t M, const u8 *crypt, size_t crypt_len, in aes_ccm_ad() argument
199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a); in aes_ccm_ad()
Dcrypto_internal-rsa.c112 const u8 *crypt, size_t crypt_len, in crypto_public_key_decrypt_pkcs1() argument
116 crypt, crypt_len, plain, plain_len); in crypto_public_key_decrypt_pkcs1()
Daes-internal-enc.c115 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
118 rijndaelEncrypt(ctx, rk[AES_PRIV_NR_POS], plain, crypt); in aes_encrypt()
Dcrypto_openssl.c234 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
238 if (EVP_EncryptUpdate(c, crypt, &clen, plain, 16) != 1) { in aes_encrypt()
285 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
289 if (EVP_DecryptUpdate(c, plain, &plen, crypt, 16) != 1) { in aes_decrypt()
437 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
440 if (!EVP_EncryptUpdate(&ctx->enc, crypt, &outl, plain, len)) in crypto_cipher_encrypt()
446 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
451 if (!EVP_DecryptUpdate(&ctx->dec, plain, &outl, crypt, len)) in crypto_cipher_decrypt()
Daes-internal-dec.c150 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
153 rijndaelDecrypt(ctx, rk[AES_PRIV_NR_POS], crypt, plain); in aes_decrypt()
/external/chromium_org/chrome/utility/importer/
Dfirefox_importer_unittest_utils.h48 base::string16 Decrypt(const std::string& crypt);
88 base::string16 FFUnitTestDecryptorProxy::Decrypt(const std::string& crypt) { in Decrypt() argument
89 return decryptor_.Decrypt(crypt); in Decrypt()
Dnss_decryptor.cc64 base::string16 NSSDecryptor::Decrypt(const std::string& crypt) const { in Decrypt()
72 if (crypt[0] != '~') { in Decrypt()
74 base::Base64Decode(crypt, &decoded_data); in Decrypt()
101 base::Base64Decode(crypt.substr(1), &plain); in Decrypt()
Dfirefox_importer_unittest_utils_mac.cc213 base::string16 FFUnitTestDecryptorProxy::Decrypt(const std::string& crypt) { in Decrypt() argument
214 channel_->Send(new Msg_Decrypt(crypt)); in Decrypt()
252 void OnDecrypt(std::string crypt) { in OnDecrypt() argument
253 base::string16 unencrypted_str = decryptor_.Decrypt(crypt); in OnDecrypt()
Dnss_decryptor_null.h30 base::string16 Decrypt(const std::string& crypt) const { in Decrypt() argument
Dnss_decryptor_system_nss.h34 base::string16 Decrypt(const std::string& crypt) const;
/external/wpa_supplicant_8/src/drivers/
Ddriver_hostap.c419 os_strlcpy((char *) param->u.crypt.alg, "NONE", in wpa_driver_hostap_set_key()
423 os_strlcpy((char *) param->u.crypt.alg, "WEP", in wpa_driver_hostap_set_key()
427 os_strlcpy((char *) param->u.crypt.alg, "TKIP", in wpa_driver_hostap_set_key()
431 os_strlcpy((char *) param->u.crypt.alg, "CCMP", in wpa_driver_hostap_set_key()
438 param->u.crypt.flags = set_tx ? HOSTAP_CRYPT_FLAG_SET_TX_KEY : 0; in wpa_driver_hostap_set_key()
439 param->u.crypt.idx = key_idx; in wpa_driver_hostap_set_key()
440 param->u.crypt.key_len = key_len; in wpa_driver_hostap_set_key()
473 param->u.crypt.idx = idx; in hostap_get_seqnum()
479 memcpy(seq, param->u.crypt.seq, 8); in hostap_get_seqnum()
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/oauth_contacts/
DNOTICE40 http://pajhome.org.uk/crypt/md5/sha1.js
48 * See http://pajhome.org.uk/crypt/md5 for details.
/external/wpa_supplicant_8/src/tls/
Dpkcs1.h22 const u8 *crypt, size_t crypt_len,
/external/chromium_org/third_party/openssl/openssl/crypto/des/
Dspeed.c74 #define crypt(c,s) (des_crypt((c),(s))) macro
300 crypt("testing1","ef"); in main()

123