Searched refs:plain (Results 1 - 25 of 53) sorted by relevance

123

/freebsd-10.0-release/sys/opencrypto/
H A Dskipjack.h17 extern void skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key);
18 extern void skipjack_backwards(u_int8_t *cipher, u_int8_t *plain, u_int8_t **key);
H A Dskipjack.c129 skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key_tables) argument
131 u_int8_t wh1 = plain[0]; u_int8_t wl1 = plain[1];
132 u_int8_t wh2 = plain[2]; u_int8_t wl2 = plain[3];
133 u_int8_t wh3 = plain[4]; u_int8_t wl3 = plain[5];
134 u_int8_t wh4 = plain[6]; u_int8_t wl4 = plain[7];
196 skipjack_backwards (u_int8_t *cipher, u_int8_t *plain, u_int8_ argument
[all...]
/freebsd-10.0-release/contrib/wpa/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.c103 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument
110 if (plain != crypt)
111 os_memcpy(crypt, plain, len);
122 ctx->u.aes.cbc[j] ^= plain[j];
126 plain += AES_BLOCK_SIZE;
136 ctx->u.des3.cbc[j] ^= plain[j];
140 plain += 8;
150 ctx->u.des3.cbc[j] ^= plain[j];
154 plain += 8;
167 u8 *plain, size_
166 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
[all...]
H A Daes-unwrap.c22 * @plain: Plaintext key, n * 64 bits
25 int aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain) argument
33 r = plain;
48 r = plain + (n - 1) * 8;
64 * These are already in @plain due to the location of temporary
H A Daes_wrap.h21 int __must_check aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher);
22 int __must_check aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain);
45 const u8 *plain, size_t plain_len,
52 u8 *plain);
57 size_t M, const u8 *plain, size_t plain_len,
62 u8 *plain);
H A Daes-wrap.c21 * @plain: Plaintext key to be wrapped, n * 64 bits
25 int aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher) argument
36 os_memcpy(r, plain, 8 * n);
H A Dcrypto_libtomcrypt.c99 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
102 aes_ecb_encrypt(plain, crypt, skey);
128 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
131 aes_ecb_encrypt(plain, (u8 *) crypt, skey);
350 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument
356 if (plain != crypt)
357 os_memcpy(crypt, plain, len);
364 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc);
375 u8 *plain, size_t len)
380 if (plain !
374 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
611 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 Dcrypto.h101 * @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);
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);
382 * @plain: Buffer for plaintext (at least crypt_len bytes)
388 u8 *plain, size_
[all...]
H A Dcrypto_nss.c144 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
160 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
191 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument
199 u8 *plain, size_t len)
198 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) 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);
274 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument
277 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) !=
285 u8 *plain, size_t len)
287 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) !=
284 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
H A Dcrypto_internal-rsa.c104 u8 *plain, size_t *plain_len)
107 crypt, crypt_len, plain, plain_len);
102 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
H A Daes-ccm.c149 size_t M, const u8 *plain, size_t plain_len,
164 aes_ccm_auth(aes, plain, plain_len, x);
168 aes_ccm_encr(aes, L, plain, plain_len, crypt, a);
180 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain)
199 aes_ccm_encr(aes, L, crypt, crypt_len, plain, a);
202 aes_ccm_auth(aes, plain, crypt_len, x);
148 aes_ccm_ae(const u8 *key, size_t key_len, const u8 *nonce, size_t M, const u8 *plain, size_t plain_len, const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) argument
178 aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce, size_t M, const u8 *crypt, size_t crypt_len, const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) argument
H A Ddes-internal.c434 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) argument
437 work[0] = WPA_GET_BE32(plain);
438 work[1] = WPA_GET_BE32(plain + 4);
445 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) argument
451 WPA_PUT_BE32(plain, work[0]);
452 WPA_PUT_BE32(plain + 4, work[1]);
468 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) argument
472 work[0] = WPA_GET_BE32(plain);
473 work[1] = WPA_GET_BE32(plain + 4);
482 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain) argument
[all...]
/freebsd-10.0-release/contrib/wpa/src/tls/
H A Dpkcs1.c129 u8 *plain, size_t *plain_len)
135 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0)
148 plain[0] != 0x00 || (plain[1] != 0x00 && plain[1] != 0x01)) {
154 pos = plain + 3;
155 if (plain[1] == 0x00) {
157 if (plain[2] != 0x00) {
162 while (pos + 1 < plain + len && *pos == 0x00 && pos[1] == 0x00)
166 if (plain[
127 pkcs1_decrypt_public_key(struct crypto_rsa_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
[all...]
H A Dpkcs1.h20 u8 *plain, size_t *plain_len);
/freebsd-10.0-release/crypto/heimdal/
H A Dkrb5.conf10 plain = {
/freebsd-10.0-release/crypto/openssh/
H A Dcipher-aes.c76 u_char *cprev, *cnow, *plain, *ivp; local
89 plain = (u_char *)src;
91 for (i = 0; i < blocks; i++, plain+=RIJNDAEL_BLOCKSIZE,
94 buf[j] = plain[j] ^ cprev[j];
101 plain = dest+len-RIJNDAEL_BLOCKSIZE;
105 plain-=RIJNDAEL_BLOCKSIZE) {
106 rijndael_decrypt(&c->r_ctx, cnow, plain);
109 plain[j] ^= ivp[j];
/freebsd-10.0-release/crypto/heimdal/lib/krb5/
H A Drd_priv.c47 krb5_data plain; local
96 &plain);
101 ret = decode_EncKrbPrivPart (plain.data, plain.length, &part, &len);
102 krb5_data_free (&plain);
/freebsd-10.0-release/crypto/openssl/crypto/des/
H A Ddestest.c290 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...]
/freebsd-10.0-release/contrib/wpa/src/wps/
H A Dwps_enrollee.c210 struct wpabuf *msg, *plain; local
214 plain = wpabuf_alloc(200);
215 if (plain == NULL)
220 wpabuf_free(plain);
227 wps_build_e_snonce1(wps, plain) ||
228 wps_build_key_wrap_auth(wps, plain) ||
229 wps_build_encr_settings(wps, msg, plain) ||
232 wpabuf_free(plain);
236 wpabuf_free(plain);
320 static int wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument
339 struct wpabuf *msg, *plain; local
[all...]
/freebsd-10.0-release/contrib/wpa/src/eap_peer/
H A Dikev2.c1167 struct wpabuf *plain = wpabuf_alloc(data->IDr_len + 1000); local
1168 if (plain == NULL) {
1172 if (ikev2_build_idr(data, plain,
1176 &data->keys, 0, msg, plain,
1178 wpabuf_free(plain);
1182 wpabuf_free(plain);
1200 struct wpabuf *msg, *plain; local
1209 plain = wpabuf_alloc(data->IDr_len + 1000);
1210 if (plain == NULL) {
1215 if (ikev2_build_idr(data, plain, IKEV2_PAYLOAD_AUTHENTICATIO
1243 struct wpabuf *plain = wpabuf_alloc(100); local
[all...]
/freebsd-10.0-release/contrib/wpa/src/eap_common/
H A Dikev2_common.c184 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt);
185 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
190 const u8 *plain, u8 *crypt, size_t len)
234 if (crypto_cipher_encrypt(cipher, plain, crypt, len) < 0) {
249 const u8 *crypt, u8 *plain, size_t len)
273 des3_decrypt(crypt, &des3key, plain);
274 plain += 8;
297 if (crypto_cipher_decrypt(cipher, crypt, plain, len) < 0) {
594 struct wpabuf *plain, u8 next_payload)
642 pad_len = iv_len - (wpabuf_len(plain)
189 ikev2_encr_encrypt(int alg, const u8 *key, size_t key_len, const u8 *iv, const u8 *plain, u8 *crypt, size_t len) argument
248 ikev2_encr_decrypt(int alg, const u8 *key, size_t key_len, const u8 *iv, const u8 *crypt, u8 *plain, size_t len) argument
592 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...]
/freebsd-10.0-release/contrib/wpa/src/eap_server/
H A Deap_tls_common.h82 const struct wpabuf *plain);

Completed in 240 milliseconds

123