Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd/contrib/netbsd-tests/lib/libdes/
H A Dt_des.c391 des_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), ks, &cfb_tmp, in cfb_test()
398 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) in cfb_test()
414 des_cfb64_encrypt(&(plain[12]), &(cfb_buf1[12]), sizeof(plain) - 12, ks, in cfb64_test()
423 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) in cfb64_test()
452 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) in ede_cfb64_test()
749 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) in ATF_TC_BODY()
769 des_ofb_encrypt(plain, ofb_buf1, 64, sizeof(plain) / 8, ks, &ofb_tmp); in ATF_TC_BODY()
794 plain[8 + 0], plain[8 + 1], in ATF_TC_BODY()
795 plain[8 + 2], plain[8 + 3], in ATF_TC_BODY()
796 plain[8 + 4], plain[8 + 5], in ATF_TC_BODY()
[all …]
/freebsd/crypto/openssl/test/
H A Ddestest.c513 DES_cfb_encrypt(plain, cfb_buf1, bits, sizeof(plain), &ks, &cfb_tmp, in cfb_test()
515 if (!TEST_mem_eq(cfb_cipher, sizeof(plain), cfb_buf1, sizeof(plain))) in cfb_test()
520 return TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain)); in cfb_test()
556 DES_cfb64_encrypt(&plain[12], &cfb_buf1[12], sizeof(plain) - 12, &ks, in test_des_cfb64()
558 if (!TEST_mem_eq(cfb_cipher64, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_cfb64()
565 if (!TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain))) in test_des_cfb64()
572 if (!TEST_mem_eq(cfb_cipher8, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_cfb64()
579 return TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain)); in test_des_cfb64()
594 if (!TEST_mem_eq(cfb_cipher64, sizeof(plain), cfb_buf1, sizeof(plain))) in test_des_ede_cfb64()
602 return TEST_mem_eq(plain, sizeof(plain), cfb_buf2, sizeof(plain)); in test_des_ede_cfb64()
[all …]
H A Dideatest.c45 static const unsigned char plain[CFB_TEST_SIZE] = { variable
100 IDEA_cfb64_encrypt(plain, cfb_buf1, (long)12, &eks, in test_idea_cfb64()
102 IDEA_cfb64_encrypt(&plain[12], &cfb_buf1[12], in test_idea_cfb64()
114 return TEST_mem_eq(plain, CFB_TEST_SIZE, cfb_buf2, CFB_TEST_SIZE); in test_idea_cfb64()
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_internal-cipher.c110 if (plain != crypt) in crypto_cipher_encrypt()
111 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
126 plain += AES_BLOCK_SIZE; in crypto_cipher_encrypt()
140 plain += 8; in crypto_cipher_encrypt()
154 plain += 8; in crypto_cipher_encrypt()
167 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
174 if (plain != crypt) in crypto_cipher_decrypt()
175 os_memcpy(plain, crypt, len); in crypto_cipher_decrypt()
190 plain += AES_BLOCK_SIZE; in crypto_cipher_decrypt()
204 plain += 8; in crypto_cipher_decrypt()
[all …]
H A Dcrypto_libtomcrypt.c360 if (plain != crypt) in crypto_cipher_encrypt()
361 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
379 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
384 if (plain != crypt) in crypto_cipher_decrypt()
385 os_memcpy(plain, crypt, len); in crypto_cipher_decrypt()
617 u8 *plain, size_t *plain_len) in crypto_public_key_decrypt_pkcs1() argument
642 plain[0] != 0x00 || plain[1] != 0x01 || plain[2] != 0xff) { in crypto_public_key_decrypt_pkcs1()
648 pos = plain + 3; in crypto_public_key_decrypt_pkcs1()
651 if (pos - plain - 2 < 8) { in crypto_public_key_decrypt_pkcs1()
664 len -= pos - plain; in crypto_public_key_decrypt_pkcs1()
[all …]
H A Ddes-internal.c435 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) in des_block_encrypt() argument
438 work[0] = WPA_GET_BE32(plain); in des_block_encrypt()
439 work[1] = WPA_GET_BE32(plain + 4); in des_block_encrypt()
446 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) in des_block_decrypt() argument
452 WPA_PUT_BE32(plain, work[0]); in des_block_decrypt()
453 WPA_PUT_BE32(plain + 4, work[1]); in des_block_decrypt()
469 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) in des3_encrypt() argument
473 work[0] = WPA_GET_BE32(plain); in des3_encrypt()
474 work[1] = WPA_GET_BE32(plain + 4); in des3_encrypt()
492 WPA_PUT_BE32(plain, work[0]); in des3_decrypt()
[all …]
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_wrap.h21 int __must_check aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain,
24 const u8 *cipher, u8 *plain);
54 const u8 *plain, size_t plain_len,
61 u8 *plain);
66 size_t M, const u8 *plain, size_t plain_len,
71 u8 *plain);
H A Daes-unwrap.c27 u8 *plain) in aes_unwrap() argument
36 r = plain; in aes_unwrap()
51 r = plain + (n - 1) * 8; in aes_unwrap()
H A Daes-ccm.c149 size_t M, const u8 *plain, size_t plain_len, in aes_ccm_ae() argument
164 aes_ccm_auth(aes, plain, plain_len, x); in aes_ccm_ae()
168 aes_ccm_encr(aes, L, plain, plain_len, crypt, a); in aes_ccm_ae()
180 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) in aes_ccm_ad() argument
199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a); in aes_ccm_ad()
202 aes_ccm_auth(aes, plain, crypt_len, x); in aes_ccm_ad()
H A Dcrypto_nettle.c261 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
264 nettle_aes_encrypt(actx, AES_BLOCK_SIZE, crypt, plain); in aes_encrypt()
292 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
295 nettle_aes_decrypt(actx, AES_BLOCK_SIZE, plain, crypt); in aes_decrypt()
436 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
441 nettle_arcfour_crypt(&ctx->u.arcfour_ctx, len, crypt, plain); in crypto_cipher_encrypt()
452 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
456 nettle_arcfour_crypt(&ctx->u.arcfour_ctx, len, plain, crypt); in crypto_cipher_decrypt()
H A Daes.h15 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
18 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
H A Dcrypto_gnutls.c237 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
240 gcry_cipher_encrypt(hd, crypt, 16, plain, 16); in aes_encrypt()
271 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
274 gcry_cipher_decrypt(hd, plain, 16, crypt, 16); in aes_decrypt()
481 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
484 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) != in crypto_cipher_encrypt()
492 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
494 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) != in crypto_cipher_decrypt()
/freebsd/contrib/wpa/src/tls/
H A Dpkcs1.c136 u8 *plain, size_t *plain_len) in pkcs1_decrypt_public_key() argument
157 plain[0] != 0x00 || plain[1] != 0x01) { in pkcs1_decrypt_public_key()
160 wpa_hexdump_key(MSG_DEBUG, "Signature EB", plain, len); in pkcs1_decrypt_public_key()
164 pos = plain + 3; in pkcs1_decrypt_public_key()
166 if (plain[2] != 0xff) { in pkcs1_decrypt_public_key()
169 wpa_hexdump_key(MSG_DEBUG, "Signature EB", plain, len); in pkcs1_decrypt_public_key()
172 while (pos < plain + len && *pos == 0xff) in pkcs1_decrypt_public_key()
175 if (pos - plain - 2 < 8) { in pkcs1_decrypt_public_key()
179 wpa_hexdump_key(MSG_DEBUG, "Signature EB", plain, len); in pkcs1_decrypt_public_key()
190 len -= pos - plain; in pkcs1_decrypt_public_key()
[all …]
/freebsd/crypto/openssh/
H A Dcipher-aes.c76 u_char *cprev, *cnow, *plain, *ivp; in ssh_rijndael_cbc() local
89 plain = (u_char *)src; in ssh_rijndael_cbc()
91 for (i = 0; i < blocks; i++, plain+=RIJNDAEL_BLOCKSIZE, in ssh_rijndael_cbc()
94 buf[j] = plain[j] ^ cprev[j]; in ssh_rijndael_cbc()
101 plain = dest+len-RIJNDAEL_BLOCKSIZE; in ssh_rijndael_cbc()
105 plain-=RIJNDAEL_BLOCKSIZE) { in ssh_rijndael_cbc()
106 rijndael_decrypt(&c->r_ctx, cnow, plain); in ssh_rijndael_cbc()
109 plain[j] ^= ivp[j]; in ssh_rijndael_cbc()
/freebsd/contrib/bearssl/test/
H A Dtest_crypto.c3604 unsigned char plain[16]; in monte_carlo_AES_decrypt() local
3613 hextobin(plain, splain); in monte_carlo_AES_decrypt()
3689 memcpy(buf, plain, sizeof plain); in test_AES_generic()
3696 check_equals("KAT AES decrypt", buf, plain, sizeof plain); in test_AES_generic()
4795 unsigned char plain[8]; in monte_carlo_DES_decrypt() local
4850 unsigned char plain[8]; in test_DES_generic() local
4866 memcpy(buf, plain, sizeof plain); in test_DES_generic()
4873 check_equals("KAT DES decrypt", buf, plain, sizeof plain); in test_DES_generic()
4879 memcpy(buf, plain, sizeof plain); in test_DES_generic()
4888 buf, plain, sizeof plain); in test_DES_generic()
[all …]
/freebsd/share/mk/
H A Dplain.test.mk9 .error plain.test.mk cannot be included directly.
31 TEST_INTERFACE.${_T}= plain
42 TEST_INTERFACE.${_T}= plain
51 TEST_INTERFACE.${_T}= plain
/freebsd/contrib/wpa/src/wps/
H A Dwps_enrollee.c210 struct wpabuf *msg, *plain; in wps_build_m5() local
214 plain = wpabuf_alloc(200); in wps_build_m5()
215 if (plain == NULL) in wps_build_m5()
220 wpabuf_free(plain); in wps_build_m5()
232 wpabuf_clear_free(plain); in wps_build_m5()
236 wpabuf_clear_free(plain); in wps_build_m5()
368 end = wpabuf_put(plain, 0); in wps_build_ap_settings()
384 if (plain == NULL) in wps_build_m7()
389 wpabuf_free(plain); in wps_build_m7()
402 wpabuf_clear_free(plain); in wps_build_m7()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Drd_priv.c47 krb5_data plain; in krb5_rd_priv() local
96 &plain); in krb5_rd_priv()
101 ret = decode_EncKrbPrivPart (plain.data, plain.length, &part, &len); in krb5_rd_priv()
102 krb5_data_free (&plain); in krb5_rd_priv()
H A Daes-test.c481 krb5_data *plain) in krb_checksum_iov() argument
488 p = plain->data; in krb_checksum_iov()
489 len = plain->length; in krb_checksum_iov()
595 krb5_data cipher, plain; in krb_enc_test() local
608 plain.length = krbencs[i].plen; in krb_enc_test()
609 plain.data = krbencs[i].pdata; in krb_enc_test()
611 ret = krb_enc(context, crypto, krbencs[i].usage, &cipher, &plain); in krb_enc_test()
616 ret = krb_enc_iov(context, crypto, krbencs[i].usage, &cipher, &plain); in krb_enc_test()
621 cipher.length, &plain); in krb_enc_test()
625 ret = krb_checksum_iov(context, crypto, krbencs[i].usage, &plain); in krb_enc_test()
[all …]
/freebsd/tools/lua/
H A Dtemplate.lua157 return function(view, plain)
158 if plain == true then return view end
326 function template.precompile(view, path, strip, plain)
344 function template.compile(view, cache_key, plain)
347 return load_chunk(template.parse(view, plain)), false
352 local func = load_chunk(template.parse(view, plain))
365 function template.parse(view, plain)
367 if plain ~= true then
368 view = template.load(view, plain)
598 function template.process(view, context, cache_key, plain)
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Dikev2.c1111 if (plain == NULL) { in ikev2_build_sa_init()
1121 wpabuf_free(plain); in ikev2_build_sa_init()
1125 wpabuf_free(plain); in ikev2_build_sa_init()
1143 struct wpabuf *msg, *plain; in ikev2_build_sa_auth() local
1153 if (plain == NULL) { in ikev2_build_sa_auth()
1161 &data->keys, 0, msg, plain, in ikev2_build_sa_auth()
1163 wpabuf_free(plain); in ikev2_build_sa_auth()
1167 wpabuf_free(plain); in ikev2_build_sa_auth()
1187 if (plain == NULL) { in ikev2_build_notify()
1199 wpabuf_free(plain); in ikev2_build_notify()
[all …]
/freebsd/contrib/wpa/src/eap_common/
H A Dikev2_common.c176 const u8 *plain, u8 *crypt, size_t len) in ikev2_encr_encrypt() argument
199 if (crypto_cipher_encrypt(cipher, plain, crypt, len) < 0) { in ikev2_encr_encrypt()
211 const u8 *crypt, u8 *plain, size_t len) in ikev2_encr_decrypt() argument
234 if (crypto_cipher_decrypt(cipher, crypt, plain, len) < 0) { in ikev2_encr_decrypt()
532 struct wpabuf *plain, u8 next_payload) in ikev2_build_encrypted() argument
580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; in ikev2_build_encrypted()
583 wpabuf_put(plain, pad_len); in ikev2_build_encrypted()
584 wpabuf_put_u8(plain, pad_len); in ikev2_build_encrypted()
587 wpabuf_head(plain), wpabuf_mhead(plain), in ikev2_build_encrypted()
588 wpabuf_len(plain)) < 0) in ikev2_build_encrypted()
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_tls_common.c382 struct wpabuf *plain, *encr; in eap_server_tls_phase1() local
396 plain = wpabuf_alloc(1); in eap_server_tls_phase1()
397 if (!plain) in eap_server_tls_phase1()
399 wpabuf_put_u8(plain, 0); in eap_server_tls_phase1()
400 encr = eap_server_tls_encrypt(sm, data, plain); in eap_server_tls_phase1()
401 wpabuf_free(plain); in eap_server_tls_phase1()
502 const struct wpabuf *plain) in eap_server_tls_encrypt() argument
506 buf = tls_connection_encrypt(sm->cfg->ssl_ctx, data->conn, plain); in eap_server_tls_encrypt()
/freebsd/sys/contrib/zlib/doc/
H A 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>>...14