/freebsd-10.0-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-10.0-release/contrib/wpa/src/crypto/ |
H A D | des_i.h | 18 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 D | aes.h | 15 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt); 18 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
|
H A D | crypto_internal-cipher.c | 103 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 D | aes-unwrap.c | 22 * @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 D | aes_wrap.h | 21 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 D | aes-wrap.c | 21 * @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 D | crypto_libtomcrypt.c | 99 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 D | crypto.h | 101 * @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 D | crypto_nss.c | 144 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 D | crypto_gnutls.c | 110 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 D | crypto_internal-rsa.c | 104 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 D | aes-ccm.c | 149 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 D | des-internal.c | 434 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 D | pkcs1.c | 129 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 D | pkcs1.h | 20 u8 *plain, size_t *plain_len);
|
/freebsd-10.0-release/crypto/heimdal/ |
H A D | krb5.conf | 10 plain = {
|
/freebsd-10.0-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-10.0-release/crypto/heimdal/lib/krb5/ |
H A D | rd_priv.c | 47 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 D | destest.c | 290 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 D | wps_enrollee.c | 210 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 D | ikev2.c | 1167 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 D | ikev2_common.c | 184 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 D | eap_tls_common.h | 82 const struct wpabuf *plain);
|