/freebsd-9.3-release/crypto/openssl/demos/tunala/ |
H A D | autogunk.sh | 23 if test ! -f Makefile.plain; then 24 mv Makefile Makefile.plain
|
H A D | autoungunk.sh | 7 if test -f Makefile.plain; then 11 mv Makefile.plain Makefile
|
/freebsd-9.3-release/sys/opencrypto/ |
H A D | skipjack.h | 17 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 D | skipjack.c | 129 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 D | des_i.h | 24 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 D | aes.h | 21 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 24 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
|
H A D | aes-unwrap.c | 28 * @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 D | crypto_internal-cipher.c | 115 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 D | aes-wrap.c | 27 * @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 D | crypto_libtomcrypt.c | 105 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 D | aes_wrap.h | 25 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 D | crypto.h | 122 * @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 D | crypto_nss.c | 150 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 D | crypto_gnutls.c | 116 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 D | crypto_internal-rsa.c | 111 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 D | des-internal.c | 440 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 D | pkcs1.c | 135 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 D | pkcs1.h | 26 u8 *plain, size_t *plain_len);
|
/freebsd-9.3-release/crypto/heimdal/ |
H A D | krb5.conf | 10 plain = {
|
/freebsd-9.3-release/crypto/openssh/ |
H A D | cipher-aes.c | 76 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 D | rd_priv.c | 49 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 D | wps_enrollee.c | 191 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 D | wps_attr_build.c | 253 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 D | destest.c | 306 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 D | ikev2.c | 1172 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...] |