Home
last modified time | relevance | path

Searched refs:plain (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/external/openssl/crypto/des/
Ddestest.c290 static unsigned char plain[24]= variable
612 for (i=0; i<sizeof(plain); i++) in main()
613 des_cfb_encrypt(&(plain[i]),&(cfb_buf1[i]), in main()
615 if (memcmp(cfb_cipher8,cfb_buf1,sizeof(plain)) != 0) in main()
622 for (i=0; i<sizeof(plain); i++) in main()
625 if (memcmp(plain,cfb_buf2,sizeof(plain)) != 0) in main()
639 des_ofb_encrypt(plain,ofb_buf1,64,sizeof(plain)/8,ks,&ofb_tmp); in main()
653 if (memcmp(plain,ofb_buf2,sizeof(ofb_buf2)) != 0) in main()
660 plain[8+0], plain[8+1], plain[8+2], plain[8+3], in main()
661 plain[8+4], plain[8+5], plain[8+6], plain[8+7]); in main()
[all …]
/external/wpa_supplicant/
Dcrypto_internal.c38 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, in crypto_cipher_encrypt() argument
316 if (plain != crypt) in crypto_cipher_encrypt()
317 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
328 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
333 plain += ctx->u.aes.block_size; in crypto_cipher_encrypt()
343 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
347 plain += 8; in crypto_cipher_encrypt()
360 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
[all …]
Dcrypto_libtomcrypt.c104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
107 aes_ecb_encrypt(plain, crypt, skey); in aes_encrypt()
133 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
136 aes_ecb_encrypt(plain, (u8 *) crypt, skey); in aes_decrypt()
357 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
363 if (plain != crypt) in crypto_cipher_encrypt()
364 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
371 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); in crypto_cipher_encrypt()
382 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
387 if (plain != crypt) in crypto_cipher_decrypt()
[all …]
Dcrypto.h104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
126 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
225 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain,
241 u8 *plain, size_t len);
368 u8 *plain, size_t *plain_len);
Ddes.c449 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) in des3_encrypt() argument
453 work[0] = WPA_GET_BE32(plain); in des3_encrypt()
454 work[1] = WPA_GET_BE32(plain + 4); in des3_encrypt()
463 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain) in des3_decrypt() argument
472 WPA_PUT_BE32(plain, work[0]); in des3_decrypt()
473 WPA_PUT_BE32(plain + 4, work[1]); in des3_decrypt()
Dcrypto_cryptoapi.c315 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
320 os_memcpy(crypt, plain, 16); in aes_encrypt()
347 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
352 os_memcpy(plain, crypt, 16); in aes_decrypt()
355 if (!CryptDecrypt(akey->ckey, 0, FALSE, 0, plain, &dlen)) { in aes_decrypt()
615 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
620 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
633 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
637 os_memcpy(plain, crypt, len); in crypto_cipher_decrypt()
639 if (!CryptDecrypt(ctx->key, 0, FALSE, 0, plain, &dlen)) { in crypto_cipher_decrypt()
Dcrypto_gnutls.c121 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
124 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); in aes_encrypt()
151 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
154 gcry_cipher_decrypt(hd, plain, 16, crypt, 16); in aes_decrypt()
Dcrypto.c171 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
173 AES_encrypt(plain, crypt, ctx); in aes_encrypt()
197 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
199 AES_decrypt(crypt, plain, ctx); in aes_decrypt()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_internal.c39 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, in crypto_cipher_encrypt() argument
317 if (plain != crypt) in crypto_cipher_encrypt()
318 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
329 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
334 plain += ctx->u.aes.block_size; in crypto_cipher_encrypt()
344 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
348 plain += 8; in crypto_cipher_encrypt()
361 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
[all …]
Dcrypto_libtomcrypt.c104 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
107 aes_ecb_encrypt(plain, crypt, skey); in aes_encrypt()
133 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
136 aes_ecb_encrypt(plain, (u8 *) crypt, skey); in aes_decrypt()
357 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
363 if (plain != crypt) in crypto_cipher_encrypt()
364 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
371 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); in crypto_cipher_encrypt()
382 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
387 if (plain != crypt) in crypto_cipher_decrypt()
[all …]
Dcrypto_openssl.c174 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
176 AES_encrypt(plain, crypt, ctx); in aes_encrypt()
200 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
202 AES_decrypt(crypt, plain, ctx); in aes_decrypt()
334 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
338 if (!EVP_EncryptUpdate(&ctx->enc, crypt, &outl, plain, len)) in crypto_cipher_encrypt()
345 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
349 if (!EVP_DecryptUpdate(&ctx->dec, plain, &outl, crypt, len)) in crypto_cipher_decrypt()
Dcrypto_gnutls.c122 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
125 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); in aes_encrypt()
152 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
155 gcry_cipher_decrypt(hd, plain, 16, crypt, 16); in aes_decrypt()
286 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
289 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) != in crypto_cipher_encrypt()
297 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
299 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) != in crypto_cipher_decrypt()
Dcrypto.h105 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
127 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);
386 u8 *plain, size_t *plain_len);
Ddes.c452 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) in des3_encrypt() argument
456 work[0] = WPA_GET_BE32(plain); in des3_encrypt()
457 work[1] = WPA_GET_BE32(plain + 4); in des3_encrypt()
466 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain) in des3_decrypt() argument
475 WPA_PUT_BE32(plain, work[0]); in des3_decrypt()
476 WPA_PUT_BE32(plain + 4, work[1]); in des3_decrypt()
Dcrypto_cryptoapi.c300 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
305 os_memcpy(crypt, plain, 16); in aes_encrypt()
332 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
337 os_memcpy(plain, crypt, 16); in aes_decrypt()
340 if (!CryptDecrypt(akey->ckey, 0, FALSE, 0, plain, &dlen)) { in aes_decrypt()
600 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
605 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
618 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
622 os_memcpy(plain, crypt, len); in crypto_cipher_decrypt()
624 if (!CryptDecrypt(ctx->key, 0, FALSE, 0, plain, &dlen)) { in crypto_cipher_decrypt()
/external/wpa_supplicant_6/wpa_supplicant/src/wps/
Dwps_enrollee.c195 struct wpabuf *msg, *plain; in wps_build_m5() local
199 plain = wpabuf_alloc(200); in wps_build_m5()
200 if (plain == NULL) in wps_build_m5()
205 wpabuf_free(plain); in wps_build_m5()
212 wps_build_e_snonce1(wps, plain) || in wps_build_m5()
213 wps_build_key_wrap_auth(wps, plain) || in wps_build_m5()
214 wps_build_encr_settings(wps, msg, plain) || in wps_build_m5()
216 wpabuf_free(plain); in wps_build_m5()
220 wpabuf_free(plain); in wps_build_m5()
277 static int wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) in wps_build_ap_settings() argument
[all …]
Dwps_attr_build.c229 struct wpabuf *plain) in wps_build_encr_settings() argument
238 pad_len = block_size - wpabuf_len(plain) % block_size; in wps_build_encr_settings()
239 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings()
242 wpabuf_put_be16(msg, block_size + wpabuf_len(plain)); in wps_build_encr_settings()
249 wpabuf_put_buf(msg, plain); in wps_build_encr_settings()
250 if (aes_128_cbc_encrypt(wps->keywrapkey, iv, data, wpabuf_len(plain))) in wps_build_encr_settings()
Dwps_registrar.c1293 struct wpabuf *msg, *plain; in wps_build_m4() local
1299 plain = wpabuf_alloc(200); in wps_build_m4()
1300 if (plain == NULL) in wps_build_m4()
1305 wpabuf_free(plain); in wps_build_m4()
1313 wps_build_r_snonce1(wps, plain) || in wps_build_m4()
1314 wps_build_key_wrap_auth(wps, plain) || in wps_build_m4()
1315 wps_build_encr_settings(wps, msg, plain) || in wps_build_m4()
1317 wpabuf_free(plain); in wps_build_m4()
1321 wpabuf_free(plain); in wps_build_m4()
1330 struct wpabuf *msg, *plain; in wps_build_m6() local
[all …]
/external/wpa_supplicant_6/wpa_supplicant/tests/
Dtest_aes.c109 u8 plain[32]; in test_cbc() member
150 memcpy(buf, tv->plain, tv->len); in test_cbc()
158 if (memcmp(buf, tv->plain, tv->len) != 0) { in test_cbc()
237 u8 plain[] = { in main() local
251 if (aes_wrap(kek, 2, plain, result)) { in main()
263 if (memcmp(result, plain, 16) != 0) { in main()
/external/wpa_supplicant/tests/
Dtest_aes.c109 u8 plain[32]; in test_cbc() member
150 memcpy(buf, tv->plain, tv->len); in test_cbc()
158 if (memcmp(buf, tv->plain, tv->len) != 0) { in test_cbc()
235 u8 plain[] = { in main() local
249 if (aes_wrap(kek, 2, plain, result)) { in main()
261 if (memcmp(result, plain, 16) != 0) { in main()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Dikev2_common.c189 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) in ikev2_encr_encrypt() argument
239 if (crypto_cipher_encrypt(cipher, plain, crypt, len) < 0) { in ikev2_encr_encrypt()
254 const u8 *crypt, u8 *plain, size_t len) in ikev2_encr_decrypt() argument
278 des3_decrypt(crypt, &des3key, plain); in ikev2_encr_decrypt()
279 plain += 8; in ikev2_encr_decrypt()
302 if (crypto_cipher_decrypt(cipher, crypt, plain, len) < 0) { in ikev2_encr_decrypt()
599 struct wpabuf *plain, u8 next_payload) in ikev2_build_encrypted() argument
647 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; in ikev2_build_encrypted()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/
Dikev2.c1172 struct wpabuf *plain = wpabuf_alloc(data->IDr_len + 1000); in ikev2_build_sa_init() local
1173 if (plain == NULL) { in ikev2_build_sa_init()
1177 if (ikev2_build_idr(data, plain, in ikev2_build_sa_init()
1181 &data->keys, 0, msg, plain, in ikev2_build_sa_init()
1183 wpabuf_free(plain); in ikev2_build_sa_init()
1187 wpabuf_free(plain); in ikev2_build_sa_init()
1205 struct wpabuf *msg, *plain; in ikev2_build_sa_auth() local
1214 plain = wpabuf_alloc(data->IDr_len + 1000); in ikev2_build_sa_auth()
1215 if (plain == NULL) { in ikev2_build_sa_auth()
1220 if (ikev2_build_idr(data, plain, IKEV2_PAYLOAD_AUTHENTICATION) || in ikev2_build_sa_auth()
[all …]
/external/ppp/pppd/plugins/radius/
Dradius.c734 u_char plain[32]; in radius_setmppekeys() local
743 memcpy(plain, vp->strvalue, sizeof(plain)); in radius_setmppekeys()
751 plain[i] ^= buf[i]; in radius_setmppekeys()
759 plain[i + 16] ^= buf[i]; in radius_setmppekeys()
766 mppe_set_keys(challenge, &plain[8]); in radius_setmppekeys()
789 u_char plain[32]; in radius_setmppekeys2() local
807 memcpy(plain, crypt, 32); in radius_setmppekeys2()
816 plain[i] ^= buf[i]; in radius_setmppekeys2()
818 if (plain[0] != sizeof(mppe_send_key) /* 16 */) { in radius_setmppekeys2()
820 (int) plain[0], type); in radius_setmppekeys2()
[all …]
/external/openssl/crypto/rc2/
Drc2test.c120 static unsigned char plain[CFB_TEST_SIZE]= variable
225 idea_cfb64_encrypt(plain,cfb_buf1,(long)12,&eks, in cfb64_test()
227 idea_cfb64_encrypt(&(plain[12]),&(cfb_buf1[12]), in cfb64_test()
244 if (memcmp(plain,cfb_buf2,CFB_TEST_SIZE) != 0) in cfb64_test()
/external/zlib/doc/
Dtxtvsbin.txt9 to find out whether the format of that file is plain text. Although
18 labeled as plain text, otherwise it is labeled as binary. A prominent
26 amounts of textual characters are misidentified as plain text.
50 plain text; otherwise, it is categorized as binary. (The boundary case,
86 There is an extra category of plain text files that are "polluted" with
92 large chunks of textual data. Furthermore, "polluted" plain text should
99 and applications. We tried plain text files, system logs, source code,

12345678910>>...12