/net/mac80211/ |
D | aes_ccm.c | 19 static void aes_ccm_prepare(struct crypto_cipher *tfm, u8 *scratch, u8 *a) in aes_ccm_prepare() argument 29 crypto_cipher_encrypt_one(tfm, b, b_0); in aes_ccm_prepare() 34 crypto_cipher_encrypt_one(tfm, b, aad); in aes_ccm_prepare() 40 crypto_cipher_encrypt_one(tfm, a, aad); in aes_ccm_prepare() 48 crypto_cipher_encrypt_one(tfm, s_0, b_0); in aes_ccm_prepare() 52 void ieee80211_aes_ccm_encrypt(struct crypto_cipher *tfm, u8 *scratch, in ieee80211_aes_ccm_encrypt() argument 67 aes_ccm_prepare(tfm, scratch, b); in ieee80211_aes_ccm_encrypt() 79 crypto_cipher_encrypt_one(tfm, b, b); in ieee80211_aes_ccm_encrypt() 83 crypto_cipher_encrypt_one(tfm, e, b_0); in ieee80211_aes_ccm_encrypt() 93 int ieee80211_aes_ccm_decrypt(struct crypto_cipher *tfm, u8 *scratch, in ieee80211_aes_ccm_decrypt() argument [all …]
|
D | aes_ccm.h | 18 void ieee80211_aes_ccm_encrypt(struct crypto_cipher *tfm, u8 *scratch, 21 int ieee80211_aes_ccm_decrypt(struct crypto_cipher *tfm, u8 *scratch, 24 void ieee80211_aes_key_free(struct crypto_cipher *tfm);
|
D | wep.c | 124 void ieee80211_wep_encrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key, in ieee80211_wep_encrypt_data() argument 127 struct blkcipher_desc desc = { .tfm = tfm }; in ieee80211_wep_encrypt_data() 134 crypto_blkcipher_setkey(tfm, rc4key, klen); in ieee80211_wep_encrypt_data() 191 int ieee80211_wep_decrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key, in ieee80211_wep_decrypt_data() argument 194 struct blkcipher_desc desc = { .tfm = tfm }; in ieee80211_wep_decrypt_data() 198 crypto_blkcipher_setkey(tfm, rc4key, klen); in ieee80211_wep_decrypt_data()
|
D | tkip.h | 18 void ieee80211_tkip_encrypt_data(struct crypto_blkcipher *tfm, 27 int ieee80211_tkip_decrypt_data(struct crypto_blkcipher *tfm,
|
D | wep.h | 21 void ieee80211_wep_encrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key, 23 int ieee80211_wep_decrypt_data(struct crypto_blkcipher *tfm, u8 *rc4key,
|
D | tkip.c | 202 void ieee80211_tkip_encrypt_data(struct crypto_blkcipher *tfm, in ieee80211_tkip_encrypt_data() argument 217 ieee80211_wep_encrypt_data(tfm, rc4key, 16, pos, payload_len); in ieee80211_tkip_encrypt_data() 224 int ieee80211_tkip_decrypt_data(struct crypto_blkcipher *tfm, in ieee80211_tkip_decrypt_data() argument 327 res = ieee80211_wep_decrypt_data(tfm, rc4key, 16, pos, payload_len - 12); in ieee80211_tkip_decrypt_data()
|
D | key.c | 305 key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt(key_data); in ieee80211_key_alloc() 306 if (!key->u.ccmp.tfm) { in ieee80211_key_alloc() 406 ieee80211_aes_key_free(key->u.ccmp.tfm); in ieee80211_key_free() 464 ieee80211_aes_key_free(key->u.ccmp.tfm); in __ieee80211_key_destroy()
|
D | key.h | 90 struct crypto_cipher *tfm; member
|
D | wpa.c | 408 ieee80211_aes_ccm_encrypt(key->u.ccmp.tfm, key->u.ccmp.tx_crypto_buf, pos, len, in ccmp_encrypt_skb() 472 key->u.ccmp.tfm, key->u.ccmp.rx_crypto_buf, in ieee80211_crypto_ccmp_decrypt()
|
/net/sunrpc/auth_gss/ |
D | gss_krb5_crypto.c | 54 struct crypto_blkcipher *tfm, in krb5_encrypt() argument 63 struct blkcipher_desc desc = { .tfm = tfm, .info = local_iv }; in krb5_encrypt() 65 if (length % crypto_blkcipher_blocksize(tfm) != 0) in krb5_encrypt() 68 if (crypto_blkcipher_ivsize(tfm) > 16) { in krb5_encrypt() 70 crypto_blkcipher_ivsize(tfm)); in krb5_encrypt() 75 memcpy(local_iv, iv, crypto_blkcipher_ivsize(tfm)); in krb5_encrypt() 88 struct crypto_blkcipher *tfm, in krb5_decrypt() argument 97 struct blkcipher_desc desc = { .tfm = tfm, .info = local_iv }; in krb5_decrypt() 99 if (length % crypto_blkcipher_blocksize(tfm) != 0) in krb5_decrypt() 102 if (crypto_blkcipher_ivsize(tfm) > 16) { in krb5_decrypt() [all …]
|
D | gss_spkm3_seal.c | 162 desc.tfm = crypto_alloc_hash(cksumname, 0, CRYPTO_ALG_ASYNC); in make_spkm3_checksum() 163 if (IS_ERR(desc.tfm)) in make_spkm3_checksum() 165 cksum->len = crypto_hash_digestsize(desc.tfm); in make_spkm3_checksum() 168 err = crypto_hash_setkey(desc.tfm, key->data, key->len); in make_spkm3_checksum() 184 crypto_free_hash(desc.tfm); in make_spkm3_checksum()
|
/net/wireless/ |
D | lib80211_crypt_ccmp.c | 55 struct crypto_cipher *tfm; member 63 static inline void lib80211_ccmp_aes_encrypt(struct crypto_cipher *tfm, in lib80211_ccmp_aes_encrypt() argument 66 crypto_cipher_encrypt_one(tfm, ct, pt); in lib80211_ccmp_aes_encrypt() 78 priv->tfm = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC); in lib80211_ccmp_init() 79 if (IS_ERR(priv->tfm)) { in lib80211_ccmp_init() 82 priv->tfm = NULL; in lib80211_ccmp_init() 90 if (priv->tfm) in lib80211_ccmp_init() 91 crypto_free_cipher(priv->tfm); in lib80211_ccmp_init() 101 if (_priv && _priv->tfm) in lib80211_ccmp_deinit() 102 crypto_free_cipher(_priv->tfm); in lib80211_ccmp_deinit() [all …]
|
D | lib80211_crypt_tkip.c | 362 struct blkcipher_desc desc = { .tfm = tkey->tx_tfm_arc4 }; in lib80211_tkip_encrypt() 416 struct blkcipher_desc desc = { .tfm = tkey->rx_tfm_arc4 }; in lib80211_tkip_decrypt() 550 desc.tfm = tfm_michael; in michael_mic() 673 struct crypto_hash *tfm = tkey->tx_tfm_michael; in lib80211_tkip_set_key() local 681 tkey->tx_tfm_michael = tfm; in lib80211_tkip_set_key()
|
D | lib80211_crypt_wep.c | 141 struct blkcipher_desc desc = { .tfm = wep->tx_tfm }; in lib80211_wep_encrypt() 188 struct blkcipher_desc desc = { .tfm = wep->rx_tfm }; in lib80211_wep_decrypt()
|
/net/xfrm/ |
D | xfrm_ipcomp.c | 50 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); in ipcomp_decompress() local 51 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress() 143 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); in ipcomp_compress() local 147 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress() 264 struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); in ipcomp_free_tfms() local 265 crypto_free_comp(tfm); in ipcomp_free_tfms() 280 struct crypto_comp *tfm; in ipcomp_alloc_tfms() local 283 tfm = *per_cpu_ptr(tfms, cpu); in ipcomp_alloc_tfms() 285 if (!strcmp(crypto_comp_name(tfm), alg_name)) { in ipcomp_alloc_tfms() 304 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, in ipcomp_alloc_tfms() local [all …]
|
/net/ipv4/ |
D | ah4.c | 225 struct crypto_hash *tfm; in ah_init_state() local 237 tfm = crypto_alloc_hash(x->aalg->alg_name, 0, CRYPTO_ALG_ASYNC); in ah_init_state() 238 if (IS_ERR(tfm)) in ah_init_state() 241 ahp->tfm = tfm; in ah_init_state() 242 if (crypto_hash_setkey(tfm, x->aalg->alg_key, in ah_init_state() 256 crypto_hash_digestsize(tfm)) { in ah_init_state() 258 x->aalg->alg_name, crypto_hash_digestsize(tfm), in ah_init_state() 283 crypto_free_hash(ahp->tfm); in ah_init_state() 297 crypto_free_hash(ahp->tfm); in ah_destroy()
|
D | tcp.c | 2583 if (p->md5_desc.tfm) in __tcp_free_md5sig_pool() 2584 crypto_free_hash(p->md5_desc.tfm); in __tcp_free_md5sig_pool() 2630 p->md5_desc.tfm = hash; in __tcp_alloc_md5sig_pool()
|
/net/ipv6/ |
D | ah6.c | 433 struct crypto_hash *tfm; in ah6_init_state() local 445 tfm = crypto_alloc_hash(x->aalg->alg_name, 0, CRYPTO_ALG_ASYNC); in ah6_init_state() 446 if (IS_ERR(tfm)) in ah6_init_state() 449 ahp->tfm = tfm; in ah6_init_state() 450 if (crypto_hash_setkey(tfm, x->aalg->alg_key, in ah6_init_state() 464 crypto_hash_digestsize(tfm)) { in ah6_init_state() 466 x->aalg->alg_name, crypto_hash_digestsize(tfm), in ah6_init_state() 499 crypto_free_hash(ahp->tfm); in ah6_init_state() 513 crypto_free_hash(ahp->tfm); in ah6_destroy()
|
/net/sctp/ |
D | auth.c | 447 struct crypto_hash *tfm = NULL; in sctp_auth_init_hmacs() local 481 tfm = crypto_alloc_hash(sctp_hmac_list[id].hmac_name, 0, in sctp_auth_init_hmacs() 483 if (IS_ERR(tfm)) in sctp_auth_init_hmacs() 486 ep->auth_hmacs[id] = tfm; in sctp_auth_init_hmacs() 737 desc.tfm = asoc->ep->auth_hmacs[hmac_id]; in sctp_auth_calculate_hmac() 741 if (crypto_hash_setkey(desc.tfm, &asoc_key->data[0], asoc_key->len)) in sctp_auth_calculate_hmac()
|
D | sm_make_chunk.c | 1543 desc.tfm = sctp_sk(ep->base.sk)->hmac; in sctp_pack_cookie() 1546 if (crypto_hash_setkey(desc.tfm, key, keylen) || in sctp_pack_cookie() 1612 desc.tfm = sctp_sk(ep->base.sk)->hmac; in sctp_unpack_cookie() 1616 if (crypto_hash_setkey(desc.tfm, key, keylen) || in sctp_unpack_cookie() 1626 if (crypto_hash_setkey(desc.tfm, key, keylen) || in sctp_unpack_cookie()
|
D | socket.c | 5963 struct crypto_hash *tfm = NULL; in sctp_inet_listen() local 5976 tfm = crypto_alloc_hash(sctp_hmac_alg, 0, CRYPTO_ALG_ASYNC); in sctp_inet_listen() 5977 if (IS_ERR(tfm)) { in sctp_inet_listen() 5981 sctp_hmac_alg, PTR_ERR(tfm)); in sctp_inet_listen() 6004 sctp_sk(sk)->hmac = tfm; in sctp_inet_listen() 6009 crypto_free_hash(tfm); in sctp_inet_listen()
|
/net/rxrpc/ |
D | rxkad.c | 129 desc.tfm = conn->cipher; in rxkad_prime_packet_security() 178 desc.tfm = call->conn->cipher; in rxkad_secure_packet_auth() 224 desc.tfm = call->conn->cipher; in rxkad_secure_packet_encrypt() 282 desc.tfm = call->conn->cipher; in rxkad_secure_packet() 353 desc.tfm = call->conn->cipher; in rxkad_verify_packet_auth() 436 desc.tfm = call->conn->cipher; in rxkad_verify_packet_encrypt() 517 desc.tfm = call->conn->cipher; in rxkad_verify_packet() 725 desc.tfm = conn->cipher; in rxkad_encrypt_response() 854 desc.tfm = conn->server_key->payload.data; in rxkad_decrypt_ticket() 982 desc.tfm = rxkad_ci; in rxkad_decrypt_response()
|