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

123

/freebsd-9.3-release/crypto/openssl/demos/tunala/
H A Dautogunk.sh23 if test ! -f Makefile.plain; then
24 mv Makefile Makefile.plain
H A Dautoungunk.sh7 if test -f Makefile.plain; then
11 mv Makefile.plain Makefile
/freebsd-9.3-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-9.3-release/contrib/wpa/src/crypto/
H A Ddes_i.h24 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt);
25 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain);
28 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt);
29 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
H A Daes.h21 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
24 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
H A Daes-unwrap.c28 * @plain: Plaintext key, n * 64 bits
31 int aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain) argument
39 r = plain;
54 r = plain + (n - 1) * 8;
70 * These are already in @plain due to the location of temporary
H A Dcrypto_internal-cipher.c115 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument
122 if (plain != crypt)
123 os_memcpy(crypt, plain, len);
134 ctx->u.aes.cbc[j] ^= plain[j];
139 plain += ctx->u.aes.block_size;
149 ctx->u.des3.cbc[j] ^= plain[j];
153 plain += 8;
163 ctx->u.des3.cbc[j] ^= plain[j];
167 plain += 8;
180 u8 *plain, size_
179 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
[all...]
H A Daes-wrap.c27 * @plain: Plaintext key to be wrapped, n * 64 bits
31 int aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher) argument
42 os_memcpy(r, plain, 8 * n);
H A Dcrypto_libtomcrypt.c105 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
108 aes_ecb_encrypt(plain, crypt, skey);
134 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
137 aes_ecb_encrypt(plain, (u8 *) crypt, skey);
356 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument
362 if (plain != crypt)
363 os_memcpy(crypt, plain, len);
370 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc);
381 u8 *plain, size_t len)
386 if (plain !
380 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 Daes_wrap.h25 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 Dcrypto.h122 * @plain: Plaintext data to be encrypted (16 bytes)
125 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
145 * @plain: Buffer for the decrypted data (16 bytes)
147 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
237 * @plain: Plaintext to cipher
247 const u8 *plain, u8 *crypt, size_t len);
253 * @plain: Resulting plaintext
262 const u8 *crypt, u8 *plain, size_t len);
402 * @plain: Buffer for plaintext (at least crypt_len bytes)
408 u8 *plain, size_
[all...]
H A Dcrypto_nss.c150 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
166 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
197 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument
205 u8 *plain, size_t len)
204 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
H A Dcrypto_gnutls.c116 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
119 gcry_cipher_encrypt(hd, crypt, 16, plain, 16);
146 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
149 gcry_cipher_decrypt(hd, plain, 16, crypt, 16);
280 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, argument
283 if (gcry_cipher_encrypt(ctx->enc, crypt, len, plain, len) !=
291 u8 *plain, size_t len)
293 if (gcry_cipher_decrypt(ctx->dec, plain, len, crypt, len) !=
290 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
H A Dcrypto_internal-rsa.c111 u8 *plain, size_t *plain_len)
114 crypt, crypt_len, plain, plain_len);
109 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 Ddes-internal.c440 void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt) argument
443 work[0] = WPA_GET_BE32(plain);
444 work[1] = WPA_GET_BE32(plain + 4);
451 void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain) argument
457 WPA_PUT_BE32(plain, work[0]);
458 WPA_PUT_BE32(plain + 4, work[1]);
474 void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt) argument
478 work[0] = WPA_GET_BE32(plain);
479 work[1] = WPA_GET_BE32(plain + 4);
488 void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain) argument
[all...]
/freebsd-9.3-release/contrib/wpa/src/tls/
H A Dpkcs1.c135 u8 *plain, size_t *plain_len)
141 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0)
154 plain[0] != 0x00 || (plain[1] != 0x00 && plain[1] != 0x01)) {
160 pos = plain + 3;
161 if (plain[1] == 0x00) {
163 if (plain[2] != 0x00) {
168 while (pos + 1 < plain + len && *pos == 0x00 && pos[1] == 0x00)
172 if (plain[
133 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.h26 u8 *plain, size_t *plain_len);
/freebsd-9.3-release/crypto/heimdal/
H A Dkrb5.conf10 plain = {
/freebsd-9.3-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-9.3-release/crypto/heimdal/lib/krb5/
H A Drd_priv.c49 krb5_data plain; local
94 &plain);
99 ret = decode_EncKrbPrivPart (plain.data, plain.length, &part, &len);
100 krb5_data_free (&plain);
/freebsd-9.3-release/contrib/wpa/src/wps/
H A Dwps_enrollee.c191 struct wpabuf *msg, *plain; local
195 plain = wpabuf_alloc(200);
196 if (plain == NULL)
201 wpabuf_free(plain);
208 wps_build_e_snonce1(wps, plain) ||
209 wps_build_key_wrap_auth(wps, plain) ||
210 wps_build_encr_settings(wps, msg, plain) ||
212 wpabuf_free(plain);
216 wpabuf_free(plain);
273 static int wps_build_ap_settings(struct wps_data *wps, struct wpabuf *plain) argument
292 struct wpabuf *msg, *plain; local
[all...]
H A Dwps_attr_build.c253 struct wpabuf *plain)
262 pad_len = block_size - wpabuf_len(plain) % block_size;
263 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len);
266 wpabuf_put_be16(msg, block_size + wpabuf_len(plain));
273 wpabuf_put_buf(msg, plain);
274 if (aes_128_cbc_encrypt(wps->keywrapkey, iv, data, wpabuf_len(plain)))
252 wps_build_encr_settings(struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain) argument
/freebsd-9.3-release/crypto/openssl/crypto/des/
H A Ddestest.c306 static unsigned char plain[24] = { variable
615 for (i = 0; i < sizeof(plain); i++)
616 des_cfb_encrypt(&(plain[i]), &(cfb_buf1[i]),
618 if (memcmp(cfb_cipher8, cfb_buf1, sizeof(plain)) != 0) {
624 for (i = 0; i < sizeof(plain); i++)
627 if (memcmp(plain, cfb_buf2, sizeof(plain)) != 0) {
640 des_ofb_encrypt(plain, ofb_buf1, 64, sizeof(plain) / 8, ks, &ofb_tmp);
656 if (memcmp(plain, ofb_buf
[all...]
/freebsd-9.3-release/contrib/wpa/src/eap_peer/
H A Dikev2.c1172 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...]

Completed in 138 milliseconds

123