Searched refs:crypt (Results 26 - 50 of 108) sorted by relevance

12345

/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_nss.c144 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
160 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
192 u8 *crypt, size_t len)
198 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
191 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
H A Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S)
242 ghash(H, crypt, crypt_len, S);
256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag)
270 aes_gcm_gctr(aes, J0, plain, plain_len, crypt);
272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S);
289 const u8 *crypt, size_t crypt_len,
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain);
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S);
229 aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, const u8 *crypt, size_t crypt_len, u8 *S) argument
254 aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *plain, size_t plain_len, const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) argument
288 aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) argument
H A Dcrypto_gnutls.c110 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
113 gcry_cipher_encrypt(hd, crypt, 16, plain, 16);
140 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
143 gcry_cipher_decrypt(hd, plain, 16, crypt, 16);
275 u8 *crypt, size_t len)
277 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) !=
284 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
287 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) !=
274 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
H A Dcrypto_internal-rsa.c103 const u8 *crypt, size_t crypt_len,
107 crypt, crypt_len, plain, plain_len);
102 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
H A Dcrypto_libtomcrypt.c99 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
102 aes_ecb_encrypt(plain, crypt, skey);
128 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
131 aes_ecb_encrypt(plain, (u8 *) crypt, skey);
351 u8 *crypt, size_t len)
356 if (plain != crypt)
357 os_memcpy(crypt, plain, len);
359 ctx->u.rc4.used_bytes, crypt, len);
364 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc);
374 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
350 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
611 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
[all...]
H A Dcrypto.h102 * @crypt: Buffer for the encrypted data (16 bytes)
104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
123 * @crypt: Encrypted data (16 bytes)
126 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
218 * @crypt: Resulting ciphertext
227 const u8 *plain, u8 *crypt, size_t len);
232 * @crypt: Ciphertext to decrypt
242 const u8 *crypt, u8 *plain, size_t len);
380 * @crypt: Encrypted signature data (using the private key)
387 struct crypto_public_key *key, const u8 *crypt, size_
[all...]
H A Dcrypto_cryptoapi.c291 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
296 os_memcpy(crypt, plain, 16);
298 if (!CryptEncrypt(akey->ckey, 0, FALSE, 0, crypt, &dlen, 16)) {
301 os_memset(crypt, 0, 16);
323 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
328 os_memcpy(plain, crypt, 16);
591 u8 *crypt, size_t len)
595 os_memcpy(crypt, plain, len);
597 if (!CryptEncrypt(ctx->key, 0, FALSE, 0, crypt, &dlen, len)) {
599 os_memset(crypt,
590 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
607 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
[all...]
H A Ddes-internal.c434 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) argument
440 WPA_PUT_BE32(crypt, work[0]);
441 WPA_PUT_BE32(crypt + 4, work[1]);
445 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) argument
448 work[0] = WPA_GET_BE32(crypt);
449 work[1] = WPA_GET_BE32(crypt + 4);
468 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) argument
477 WPA_PUT_BE32(crypt, work[0]);
478 WPA_PUT_BE32(crypt + 4, work[1]);
482 void des3_decrypt(const u8 *crypt, cons argument
[all...]
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_nss.c144 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
160 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
192 u8 *crypt, size_t len)
198 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
191 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
H A Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S)
242 ghash(H, crypt, crypt_len, S);
256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag)
270 aes_gcm_gctr(aes, J0, plain, plain_len, crypt);
272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S);
289 const u8 *crypt, size_t crypt_len,
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain);
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S);
229 aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, const u8 *crypt, size_t crypt_len, u8 *S) argument
254 aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *plain, size_t plain_len, const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) argument
288 aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) argument
H A Dcrypto_gnutls.c110 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
113 gcry_cipher_encrypt(hd, crypt, 16, plain, 16);
140 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
143 gcry_cipher_decrypt(hd, plain, 16, crypt, 16);
275 u8 *crypt, size_t len)
277 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) !=
284 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
287 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) !=
274 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
H A Dcrypto_internal-rsa.c103 const u8 *crypt, size_t crypt_len,
107 crypt, crypt_len, plain, plain_len);
102 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
H A Dcrypto_libtomcrypt.c99 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
102 aes_ecb_encrypt(plain, crypt, skey);
128 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
131 aes_ecb_encrypt(plain, (u8 *) crypt, skey);
351 u8 *crypt, size_t len)
356 if (plain != crypt)
357 os_memcpy(crypt, plain, len);
359 ctx->u.rc4.used_bytes, crypt, len);
364 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc);
374 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
350 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
611 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
[all...]
H A Dcrypto.h102 * @crypt: Buffer for the encrypted data (16 bytes)
104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
123 * @crypt: Encrypted data (16 bytes)
126 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
218 * @crypt: Resulting ciphertext
227 const u8 *plain, u8 *crypt, size_t len);
232 * @crypt: Ciphertext to decrypt
242 const u8 *crypt, u8 *plain, size_t len);
380 * @crypt: Encrypted signature data (using the private key)
387 struct crypto_public_key *key, const u8 *crypt, size_
[all...]
H A Dcrypto_cryptoapi.c291 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
296 os_memcpy(crypt, plain, 16);
298 if (!CryptEncrypt(akey->ckey, 0, FALSE, 0, crypt, &dlen, 16)) {
301 os_memset(crypt, 0, 16);
323 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
328 os_memcpy(plain, crypt, 16);
591 u8 *crypt, size_t len)
595 os_memcpy(crypt, plain, len);
597 if (!CryptEncrypt(ctx->key, 0, FALSE, 0, crypt, &dlen, len)) {
599 os_memset(crypt,
590 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
607 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
[all...]
H A Ddes-internal.c434 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) argument
440 WPA_PUT_BE32(crypt, work[0]);
441 WPA_PUT_BE32(crypt + 4, work[1]);
445 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) argument
448 work[0] = WPA_GET_BE32(crypt);
449 work[1] = WPA_GET_BE32(crypt + 4);
468 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) argument
477 WPA_PUT_BE32(crypt, work[0]);
478 WPA_PUT_BE32(crypt + 4, work[1]);
482 void des3_decrypt(const u8 *crypt, cons argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_nss.c144 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
160 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
192 u8 *crypt, size_t len)
198 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
191 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
H A Daes-gcm.c230 const u8 *crypt, size_t crypt_len, u8 *S)
242 ghash(H, crypt, crypt_len, S);
256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag)
270 aes_gcm_gctr(aes, J0, plain, plain_len, crypt);
272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S);
289 const u8 *crypt, size_t crypt_len,
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain);
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S);
229 aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, const u8 *crypt, size_t crypt_len, u8 *S) argument
254 aes_gcm_ae(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *plain, size_t plain_len, const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) argument
288 aes_gcm_ad(const u8 *key, size_t key_len, const u8 *iv, size_t iv_len, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) argument
H A Dcrypto_gnutls.c110 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
113 gcry_cipher_encrypt(hd, crypt, 16, plain, 16);
140 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
143 gcry_cipher_decrypt(hd, plain, 16, crypt, 16);
275 u8 *crypt, size_t len)
277 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) !=
284 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
287 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) !=
274 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
H A Dcrypto_internal-rsa.c103 const u8 *crypt, size_t crypt_len,
107 crypt, crypt_len, plain, plain_len);
102 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
H A Dcrypto_libtomcrypt.c99 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
102 aes_ecb_encrypt(plain, crypt, skey);
128 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
131 aes_ecb_encrypt(plain, (u8 *) crypt, skey);
351 u8 *crypt, size_t len)
356 if (plain != crypt)
357 os_memcpy(crypt, plain, len);
359 ctx->u.rc4.used_bytes, crypt, len);
364 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc);
374 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, argument
350 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
611 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
[all...]
H A Dcrypto.h102 * @crypt: Buffer for the encrypted data (16 bytes)
104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
123 * @crypt: Encrypted data (16 bytes)
126 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
218 * @crypt: Resulting ciphertext
227 const u8 *plain, u8 *crypt, size_t len);
232 * @crypt: Ciphertext to decrypt
242 const u8 *crypt, u8 *plain, size_t len);
380 * @crypt: Encrypted signature data (using the private key)
387 struct crypto_public_key *key, const u8 *crypt, size_
[all...]
H A Dcrypto_cryptoapi.c291 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
296 os_memcpy(crypt, plain, 16);
298 if (!CryptEncrypt(akey->ckey, 0, FALSE, 0, crypt, &dlen, 16)) {
301 os_memset(crypt, 0, 16);
323 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
328 os_memcpy(plain, crypt, 16);
591 u8 *crypt, size_t len)
595 os_memcpy(crypt, plain, len);
597 if (!CryptEncrypt(ctx->key, 0, FALSE, 0, crypt, &dlen, len)) {
599 os_memset(crypt,
590 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
607 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
[all...]
H A Ddes-internal.c434 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) argument
440 WPA_PUT_BE32(crypt, work[0]);
441 WPA_PUT_BE32(crypt + 4, work[1]);
445 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) argument
448 work[0] = WPA_GET_BE32(crypt);
449 work[1] = WPA_GET_BE32(crypt + 4);
468 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) argument
477 WPA_PUT_BE32(crypt, work[0]);
478 WPA_PUT_BE32(crypt + 4, work[1]);
482 void des3_decrypt(const u8 *crypt, cons argument
[all...]
/external/chromium/chrome/browser/importer/
H A Dfirefox_importer_unittest_utils_mac.cc198 string16 FFUnitTestDecryptorProxy::Decrypt(const std::string& crypt) { argument
199 channel_->Send(new Msg_Decrypt(crypt));
226 void OnDecrypt(std::string crypt) { argument
227 string16 unencrypted_str = decryptor_.Decrypt(crypt);

Completed in 278 milliseconds

12345