Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd-12.1/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-12.1/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-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 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 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 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-12.1/contrib/wpa/src/tls/
H A Dpkcs1.c136 u8 *plain, size_t *plain_len) in pkcs1_decrypt_public_key() argument
142 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0) in pkcs1_decrypt_public_key()
157 plain[0] != 0x00 || plain[1] != 0x01) { in pkcs1_decrypt_public_key()
163 pos = plain + 3; in pkcs1_decrypt_public_key()
165 if (plain[2] != 0xff) { in pkcs1_decrypt_public_key()
170 while (pos < plain + len && *pos == 0xff) in pkcs1_decrypt_public_key()
173 if (pos - plain - 2 < 8) { in pkcs1_decrypt_public_key()
180 if (pos + 16 /* min hash len */ >= plain + len || *pos != 0x00) { in pkcs1_decrypt_public_key()
186 len -= pos - plain; in pkcs1_decrypt_public_key()
189 os_memmove(plain, pos, len); in pkcs1_decrypt_public_key()
/freebsd-12.1/sys/opencrypto/
H A Dskipjack.c129 skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key_tables) in skipjack_forwards() argument
131 u_int8_t wh1 = plain[0]; u_int8_t wl1 = plain[1]; in skipjack_forwards()
132 u_int8_t wh2 = plain[2]; u_int8_t wl2 = plain[3]; in skipjack_forwards()
133 u_int8_t wh3 = plain[4]; u_int8_t wl3 = plain[5]; in skipjack_forwards()
134 u_int8_t wh4 = plain[6]; u_int8_t wl4 = plain[7]; in skipjack_forwards()
196 skipjack_backwards (u_int8_t *cipher, u_int8_t *plain, u_int8_t **key_tables) in skipjack_backwards() argument
256 plain [0] = wh1; plain [1] = wl1; in skipjack_backwards()
257 plain [2] = wh2; plain [3] = wl2; in skipjack_backwards()
258 plain [4] = wh3; plain [5] = wl3; in skipjack_backwards()
259 plain [6] = wh4; plain [7] = wl4; in skipjack_backwards()
H A Dskipjack.h20 extern void skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key);
21 extern void skipjack_backwards(u_int8_t *cipher, u_int8_t *plain, u_int8_t **key);
/freebsd-12.1/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-12.1/targets/
H A DMakefile74 plain := ${DIRDEPS:@d@${exists(${SRCTOP}/$d/${.MAKE.DEPENDFILE_PREFIX:T}):?$d:}@} macro
75 .if ${plain} != ${DIRDEPS}
76 qual := ${DIRDEPS:${plain:${M_ListToSkip}}:@d@${all_machine_list:O:u:@m@${exists(${SRCTOP}/$d/${.MA…
77 DIRDEPS := ${plain} ${qual}
97 plain := ${DIRDEPS:@d@${exists(${SRCTOP}/$d/${.MAKE.DEPENDFILE_PREFIX:T}):?$d:}@} macro
98 .if !empty(plain) && ${plain} != ${DIRDEPS}
99 qual := ${DIRDEPS:${plain:${M_ListToSkip}}:M*.${REQUESTED_MACHINE}}
103 DIRDEPS := ${plain} ${qual}
/freebsd-12.1/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-12.1/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 …]
H A Dwps_registrar.c1867 if (plain == NULL) { in wps_build_ap_cred()
1881 wpabuf_clear_free(plain); in wps_build_ap_cred()
1936 if (plain == NULL || in wps_build_m2()
2009 if (plain == NULL) in wps_build_m4()
2014 wpabuf_free(plain); in wps_build_m4()
2031 wpabuf_clear_free(plain); in wps_build_m4()
2045 if (plain == NULL) in wps_build_m6()
2050 wpabuf_free(plain); in wps_build_m6()
2066 wpabuf_clear_free(plain); in wps_build_m6()
2081 if (plain == NULL) in wps_build_m8()
[all …]
/freebsd-12.1/share/mk/
H A Dplain.test.mk10 .error plain.test.mk cannot be included directly.
32 TEST_INTERFACE.${_T}= plain
43 TEST_INTERFACE.${_T}= plain
52 TEST_INTERFACE.${_T}= plain
/freebsd-12.1/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-12.1/contrib/wpa/src/eap_peer/
H A Dikev2.c1109 if (plain == NULL) { in ikev2_build_sa_init()
1119 wpabuf_free(plain); in ikev2_build_sa_init()
1123 wpabuf_free(plain); in ikev2_build_sa_init()
1141 struct wpabuf *msg, *plain; in ikev2_build_sa_auth() local
1151 if (plain == NULL) { in ikev2_build_sa_auth()
1159 &data->keys, 0, msg, plain, in ikev2_build_sa_auth()
1161 wpabuf_free(plain); in ikev2_build_sa_auth()
1165 wpabuf_free(plain); in ikev2_build_sa_auth()
1185 if (plain == NULL) { in ikev2_build_notify()
1197 wpabuf_free(plain); in ikev2_build_notify()
[all …]
/freebsd-12.1/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-12.1/contrib/wpa/src/ap/
H A Dwpa_auth_ft.c94 *plain = NULL; in wpa_ft_rrb_decrypt()
101 if (!*plain) in wpa_ft_rrb_decrypt()
123 os_free(*plain); in wpa_ft_rrb_decrypt()
124 *plain = NULL; in wpa_ft_rrb_decrypt()
167 plain += len; in wpa_ft_rrb_get_tlv()
203 plain += len; in wpa_ft_rrb_dump()
293 plain += len; in wpa_ft_rrb_get_tlv_vlan()
446 if (!*plain) { in wpa_ft_rrb_lin()
451 pos = *plain; in wpa_ft_rrb_lin()
466 os_free(*plain); in wpa_ft_rrb_lin()
[all …]
/freebsd-12.1/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