Searched refs:crypt (Results 1 - 25 of 96) sorted by relevance

1234

/external/wpa_supplicant_8/hostapd/src/crypto/
H A 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);
H A Daes.h15 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
H A Dcrypto_internal-cipher.c104 u8 *crypt, size_t len)
110 if (plain != crypt)
111 os_memcpy(crypt, plain, len);
113 ctx->u.rc4.used_bytes, crypt, len);
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE);
127 crypt += AES_BLOCK_SIZE;
139 os_memcpy(crypt, ctx->u.des3.cbc, 8);
141 crypt += 8;
153 os_memcpy(crypt, ctx->u.des.cbc, 8);
155 crypt
103 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
166 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
[all...]
H A Daes_wrap.h54 u8 *crypt, u8 *tag);
57 const u8 *crypt, size_t crypt_len,
65 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
67 size_t M, const u8 *crypt, size_t crypt_len,
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.c112 const u8 *crypt, size_t crypt_len,
116 crypt, crypt_len, plain, plain_len);
111 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
/external/wpa_supplicant_8/src/crypto/
H A 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);
H A Daes.h15 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
H A Dcrypto_internal-cipher.c104 u8 *crypt, size_t len)
110 if (plain != crypt)
111 os_memcpy(crypt, plain, len);
113 ctx->u.rc4.used_bytes, crypt, len);
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE);
127 crypt += AES_BLOCK_SIZE;
139 os_memcpy(crypt, ctx->u.des3.cbc, 8);
141 crypt += 8;
153 os_memcpy(crypt, ctx->u.des.cbc, 8);
155 crypt
103 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
166 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
[all...]
H A Daes_wrap.h54 u8 *crypt, u8 *tag);
57 const u8 *crypt, size_t crypt_len,
65 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
67 size_t M, const u8 *crypt, size_t crypt_len,
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.c112 const u8 *crypt, size_t crypt_len,
116 crypt, crypt_len, plain, plain_len);
111 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A 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);
H A Daes.h15 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
H A Dcrypto_internal-cipher.c104 u8 *crypt, size_t len)
110 if (plain != crypt)
111 os_memcpy(crypt, plain, len);
113 ctx->u.rc4.used_bytes, crypt, len);
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE);
127 crypt += AES_BLOCK_SIZE;
139 os_memcpy(crypt, ctx->u.des3.cbc, 8);
141 crypt += 8;
153 os_memcpy(crypt, ctx->u.des.cbc, 8);
155 crypt
103 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
166 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
[all...]
H A Daes_wrap.h54 u8 *crypt, u8 *tag);
57 const u8 *crypt, size_t crypt_len,
65 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
67 size_t M, const u8 *crypt, size_t crypt_len,
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/
H A Dtest_crypt.py28 from oauth2client import crypt namespace
53 pem_contents = crypt.pkcs12_key_as_pem(credentials.private_key,
56 pkcs12_key_as_pem = crypt._parse_pem_key(pkcs12_key_as_pem)
72 reload(crypt)
73 self.assertRaises(NotImplementedError, crypt.pkcs12_key_as_pem,
79 reload(crypt)
84 self.assertRaises(crypto.Error, crypt.pkcs12_key_as_pem,
H A Dtest_jwt.py40 from oauth2client import crypt namespace
55 self.signer = crypt.OpenSSLSigner
56 self.verifier = crypt.OpenSSLVerifier
85 crypt.verify_signed_jwt_with_certs(jwt, certs, audience)
87 except crypt.AppIdentityError as e:
96 return crypt.make_signed_jwt(signer, {
109 contents = crypt.verify_signed_jwt_with_certs(jwt, certs, audience)
146 jwt = 'foo.%s.baz' % crypt._urlsafe_b64encode('{"a":"b"}')
153 jwt = crypt.make_signed_jwt(signer, {
160 jwt = crypt
[all...]
/external/dhcpcd-6.8.2/test/
H A DMakefile6 SRCS+= test_hmac_md5.c ../crypt/hmac_md5.c
12 CPPFLAGS+= -I../crypt
15 T_MD5_SRC= ${MD5_SRC:crypt/%=../crypt/%}
/external/wpa_supplicant_8/hostapd/src/tls/
H A Dpkcs1.h22 const u8 *crypt, size_t crypt_len,
/external/wpa_supplicant_8/src/tls/
H A Dpkcs1.h22 const u8 *crypt, size_t crypt_len,
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Dpkcs1.h22 const u8 *crypt, size_t crypt_len,
/external/dhcpcd-6.8.2/
H A DAndroid.mk39 crypt/md5.c \
40 crypt/hmac_md5.c \
57 LOCAL_SRC_FILES += crypt/sha256.c
58 LOCAL_C_INCLUDES += $(LOCAL_PATH)/crypt
71 # if-options.c, dhcp-common.c, and crypt/sha256.c.

Completed in 243 milliseconds

1234