Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 13 of 13) sorted by relevance

/net/ceph/
Dcrypto.c219 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_aes_crypt() argument
227 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
231 if (encrypt) in ceph_aes_crypt()
248 if (encrypt) in ceph_aes_crypt()
255 encrypt ? "en" : "de", ret); in ceph_aes_crypt()
263 if (encrypt) { in ceph_aes_crypt()
283 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_crypt() argument
291 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
Dcrypto.h30 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt,
Dmessenger_v2.c841 static int gcm_crypt(struct ceph_connection *con, bool encrypt, in gcm_crypt() argument
848 nonce = encrypt ? &con->v2.out_gcm_nonce : &con->v2.in_gcm_nonce; in gcm_crypt()
852 ret = crypto_wait_req(encrypt ? crypto_aead_encrypt(con->v2.gcm_req) : in gcm_crypt()
/net/sunrpc/auth_gss/
Dgss_krb5_mech.c43 .encrypt = krb5_encrypt,
65 .encrypt = krb5_encrypt,
86 .encrypt = krb5_encrypt,
109 .encrypt = krb5_encrypt,
Dgss_krb5_crypto.c206 err = kctx->gk5e->encrypt(kctx->seq, NULL, checksumdata, in make_checksum()
544 u32 offset, u8 *iv, struct page **pages, int encrypt) in gss_krb5_cts_crypt() argument
567 if (encrypt) in gss_krb5_cts_crypt()
581 if (encrypt) in gss_krb5_cts_crypt()
Dgss_krb5_keys.c200 (*(gk5e->encrypt))(cipher, NULL, inblock.data, in krb5_derive_key()
/net/tipc/
Dcrypto.c1714 goto encrypt; in tipc_crypto_xmit()
1716 goto encrypt; in tipc_crypto_xmit()
1720 goto encrypt; in tipc_crypto_xmit()
1731 goto encrypt; in tipc_crypto_xmit()
1735 goto encrypt; in tipc_crypto_xmit()
1743 goto encrypt; in tipc_crypto_xmit()
1746 goto encrypt; in tipc_crypto_xmit()
1756 goto encrypt; in tipc_crypto_xmit()
1761 encrypt: in tipc_crypto_xmit()
/net/bluetooth/
Dhci_conn.c1457 cp.encrypt = 0x01; in hci_conn_encrypt()
1491 goto encrypt; in hci_conn_security()
1498 goto encrypt; in hci_conn_security()
1506 goto encrypt; in hci_conn_security()
1515 goto encrypt; in hci_conn_security()
1531 encrypt: in hci_conn_security()
Dhci_event.c3035 cp.encrypt = 0x01; in hci_auth_complete_evt()
3055 cp.encrypt = 0x01; in hci_auth_complete_evt()
3165 if (ev->encrypt) { in hci_encrypt_change_evt()
3175 if ((conn->type == ACL_LINK && ev->encrypt == 0x02) || in hci_encrypt_change_evt()
3212 if (!ev->status && ev->encrypt && conn->type == ACL_LINK) { in hci_encrypt_change_evt()
Dl2cap_core.c8324 static inline void l2cap_check_encryption(struct l2cap_chan *chan, u8 encrypt) in l2cap_check_encryption() argument
8329 if (encrypt == 0x00) { in l2cap_check_encryption()
8341 static void l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt) in l2cap_security_cfm() argument
8349 BT_DBG("conn %p status 0x%2.2x encrypt %u", conn, status, encrypt); in l2cap_security_cfm()
8364 if (!status && encrypt) in l2cap_security_cfm()
8375 l2cap_check_encryption(chan, encrypt); in l2cap_security_cfm()
Dhci_core.c1029 __u8 encrypt = opt; in hci_encrypt_req() local
1031 BT_DBG("%s %x", req->hdev->name, encrypt); in hci_encrypt_req()
1034 hci_req_add(req, HCI_OP_WRITE_ENCRYPT_MODE, 1, &encrypt); in hci_encrypt_req()
/net/bluetooth/rfcomm/
Dcore.c2133 static void rfcomm_security_cfm(struct hci_conn *conn, u8 status, u8 encrypt) in rfcomm_security_cfm() argument
2138 BT_DBG("conn %p status 0x%02x encrypt 0x%02x", conn, status, encrypt); in rfcomm_security_cfm()
2147 if (status || encrypt == 0x00) { in rfcomm_security_cfm()
2153 if (d->state == BT_CONNECTED && !status && encrypt == 0x00) { in rfcomm_security_cfm()
/net/mac80211/
Dtx.c1965 enum ieee80211_encrypt encrypt) in ieee80211_skb_resize() argument
1971 enc_tailroom = encrypt == ENCRYPT_MGMT || in ieee80211_skb_resize()
1972 (encrypt == ENCRYPT_DATA && in ieee80211_skb_resize()
2006 enum ieee80211_encrypt encrypt; in ieee80211_xmit() local
2009 encrypt = ENCRYPT_NO; in ieee80211_xmit()
2011 encrypt = ENCRYPT_MGMT; in ieee80211_xmit()
2013 encrypt = ENCRYPT_DATA; in ieee80211_xmit()
2016 if (encrypt != ENCRYPT_NO) in ieee80211_xmit()
2021 if (ieee80211_skb_resize(sdata, skb, headroom, encrypt)) { in ieee80211_xmit()