/external/wpa_supplicant/ |
H A D | aes.h | 19 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 22 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
|
H A D | crypto_internal.c | 38 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt); 39 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain); 309 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 316 if (plain != crypt) 317 os_memcpy(crypt, plain, len); 328 ctx->u.aes.cbc[j] ^= plain[j]; 333 plain += ctx->u.aes.block_size; 343 ctx->u.des3.cbc[j] ^= plain[j]; 347 plain += 8; 360 u8 *plain, size_ 359 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument 563 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 D | crypto.h | 101 * @plain: Plaintext data to be encrypted (16 bytes) 104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 124 * @plain: Buffer for the decrypted data (16 bytes) 126 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain); 216 * @plain: Plaintext to cipher 225 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, 232 * @plain: Resulting plaintext 241 u8 *plain, size_t len); 362 * @plain: Buffer for plaintext (at least crypt_len bytes) 368 u8 *plain, size_ [all...] |
H A D | crypto_libtomcrypt.c | 104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 107 aes_ecb_encrypt(plain, crypt, skey); 133 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 136 aes_ecb_encrypt(plain, (u8 *) crypt, skey); 357 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 363 if (plain != crypt) 364 os_memcpy(crypt, plain, len); 371 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); 382 u8 *plain, size_t len) 387 if (plain ! 381 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument 617 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 D | aes_wrap.h | 25 int aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher); 26 int aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain);
|
H A D | crypto_gnutls.c | 121 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 124 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); 151 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 154 gcry_cipher_decrypt(hd, plain, 16, crypt, 16);
|
H A D | crypto.c | 171 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 173 AES_encrypt(plain, crypt, ctx); 197 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 199 AES_decrypt(crypt, plain, ctx);
|
H A D | crypto_cryptoapi.c | 315 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 320 os_memcpy(crypt, plain, 16); 347 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 352 os_memcpy(plain, crypt, 16); 355 if (!CryptDecrypt(akey->ckey, 0, FALSE, 0, plain, &dlen)) { 615 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 620 os_memcpy(crypt, plain, len); 633 u8 *plain, size_t len) 637 os_memcpy(plain, crypt, len); 639 if (!CryptDecrypt(ctx->key, 0, FALSE, 0, plain, 632 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
H A D | aes.h | 19 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 22 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
|
H A D | crypto_libtomcrypt.c | 104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 107 aes_ecb_encrypt(plain, crypt, skey); 133 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 136 aes_ecb_encrypt(plain, (u8 *) crypt, skey); 357 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 363 if (plain != crypt) 364 os_memcpy(crypt, plain, len); 371 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); 382 u8 *plain, size_t len) 387 if (plain ! 381 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument 617 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 D | crypto_internal.c | 39 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt); 40 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain); 310 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 317 if (plain != crypt) 318 os_memcpy(crypt, plain, len); 329 ctx->u.aes.cbc[j] ^= plain[j]; 334 plain += ctx->u.aes.block_size; 344 ctx->u.des3.cbc[j] ^= plain[j]; 348 plain += 8; 361 u8 *plain, size_ 360 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument 712 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 D | aes_wrap.h | 25 int __must_check aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher); 26 int __must_check aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain);
|
H A D | crypto.h | 102 * @plain: Plaintext data to be encrypted (16 bytes) 105 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 125 * @plain: Buffer for the decrypted data (16 bytes) 127 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain); 217 * @plain: Plaintext to cipher 227 const u8 *plain, u8 *crypt, size_t len); 233 * @plain: Resulting plaintext 242 const u8 *crypt, u8 *plain, size_t len); 380 * @plain: Buffer for plaintext (at least crypt_len bytes) 386 u8 *plain, size_ [all...] |
H A D | crypto_gnutls.c | 122 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 125 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); 152 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 155 gcry_cipher_decrypt(hd, plain, 16, crypt, 16); 286 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 289 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) != 297 u8 *plain, size_t len) 299 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) != 296 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
|
H A D | crypto_openssl.c | 174 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 176 AES_encrypt(plain, crypt, ctx); 200 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 202 AES_decrypt(crypt, plain, ctx); 334 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 338 if (!EVP_EncryptUpdate(&ctx->enc, crypt, &outl, plain, len)) 345 u8 *plain, size_t len) 349 if (!EVP_DecryptUpdate(&ctx->dec, plain, &outl, crypt, len)) 344 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
|
H A D | crypto_cryptoapi.c | 300 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument 305 os_memcpy(crypt, plain, 16); 332 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument 337 os_memcpy(plain, crypt, 16); 340 if (!CryptDecrypt(akey->ckey, 0, FALSE, 0, plain, &dlen)) { 600 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument 605 os_memcpy(crypt, plain, len); 618 u8 *plain, size_t len) 622 os_memcpy(plain, crypt, len); 624 if (!CryptDecrypt(ctx->key, 0, FALSE, 0, plain, 617 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
H A D | wps_enrollee.c | 195 struct wpabuf *msg, *plain; local 199 plain = wpabuf_alloc(200); 200 if (plain == NULL) 205 wpabuf_free(plain); 212 wps_build_e_snonce1(wps, plain) || 213 wps_build_key_wrap_auth(wps, plain) || 214 wps_build_encr_settings(wps, msg, plain) || 216 wpabuf_free(plain); 220 wpabuf_free(plain); 277 static int wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument 296 struct wpabuf *msg, *plain; local [all...] |
H A D | wps_attr_build.c | 229 struct wpabuf *plain) 238 pad_len = block_size - wpabuf_len(plain) % block_size; 239 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); 242 wpabuf_put_be16(msg, block_size + wpabuf_len(plain)); 249 wpabuf_put_buf(msg, plain); 250 if (aes_128_cbc_encrypt(wps->keywrapkey, iv, data, wpabuf_len(plain))) 228 wps_build_encr_settings(struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain) argument
|
/external/openssl/crypto/des/ |
H A D | destest.c | 290 static unsigned char plain[24]= variable 612 for (i=0; i<sizeof(plain); i++) 613 des_cfb_encrypt(&(plain[i]),&(cfb_buf1[i]), 615 if (memcmp(cfb_cipher8,cfb_buf1,sizeof(plain)) != 0) 622 for (i=0; i<sizeof(plain); i++) 625 if (memcmp(plain,cfb_buf2,sizeof(plain)) != 0) 639 des_ofb_encrypt(plain,ofb_buf1,64,sizeof(plain)/8,ks,&ofb_tmp); 653 if (memcmp(plain,ofb_buf [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/ |
H A D | ikev2.c | 1172 struct wpabuf *plain = wpabuf_alloc(data->IDr_len + 1000); local 1173 if (plain == NULL) { 1177 if (ikev2_build_idr(data, plain, 1181 &data->keys, 0, msg, plain, 1183 wpabuf_free(plain); 1187 wpabuf_free(plain); 1205 struct wpabuf *msg, *plain; local 1214 plain = wpabuf_alloc(data->IDr_len + 1000); 1215 if (plain == NULL) { 1220 if (ikev2_build_idr(data, plain, IKEV2_PAYLOAD_AUTHENTICATIO 1248 struct wpabuf *plain = wpabuf_alloc(100); local [all...] |
/external/openssl/crypto/rc2/ |
H A D | rc2test.c | 120 static unsigned char plain[CFB_TEST_SIZE]= variable 225 idea_cfb64_encrypt(plain,cfb_buf1,(long)12,&eks, 227 idea_cfb64_encrypt(&(plain[12]),&(cfb_buf1[12]), 244 if (memcmp(plain,cfb_buf2,CFB_TEST_SIZE) != 0)
|
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/ |
H A D | ikev2_common.c | 189 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt); 190 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain); 195 const u8 *plain, u8 *crypt, size_t len) 239 if (crypto_cipher_encrypt(cipher, plain, crypt, len) < 0) { 254 const u8 *crypt, u8 *plain, size_t len) 278 des3_decrypt(crypt, &des3key, plain); 279 plain += 8; 302 if (crypto_cipher_decrypt(cipher, crypt, plain, len) < 0) { 599 struct wpabuf *plain, u8 next_payload) 647 pad_len = iv_len - (wpabuf_len(plain) 194 ikev2_encr_encrypt(int alg, const u8 *key, size_t key_len, const u8 *iv, const u8 *plain, u8 *crypt, size_t len) argument 253 ikev2_encr_decrypt(int alg, const u8 *key, size_t key_len, const u8 *iv, const u8 *crypt, u8 *plain, size_t len) argument 597 ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, struct wpabuf *msg, struct wpabuf *plain, u8 next_payload) argument [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
H A D | eap_tls_common.h | 56 const u8 *plain, size_t plain_len);
|
/external/ppp/pppd/plugins/radius/ |
H A D | radius.c | 734 u_char plain[32]; local 743 memcpy(plain, vp->strvalue, sizeof(plain)); 751 plain[i] ^= buf[i]; 759 plain[i + 16] ^= buf[i]; 766 mppe_set_keys(challenge, &plain[8]); 789 u_char plain[32]; local 807 memcpy(plain, crypt, 32); 816 plain[i] ^= buf[i]; 818 if (plain[ [all...] |
/external/wpa_supplicant/tests/ |
H A D | test_aes.c | 95 printf("AES-128 EAX mode decryption returned invalid plain " 109 u8 plain[32]; member in struct:cbc_test_vector 150 memcpy(buf, tv->plain, tv->len); 158 if (memcmp(buf, tv->plain, tv->len) != 0) { 235 u8 plain[] = { local 249 if (aes_wrap(kek, 2, plain, result)) { 261 if (memcmp(result, plain, 16) != 0) {
|