Home
last modified time | relevance | path

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

/net/ceph/
Dcrypto.c218 static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_aes_crypt() argument
226 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
230 if (encrypt) in ceph_aes_crypt()
247 if (encrypt) in ceph_aes_crypt()
254 encrypt ? "en" : "de", ret); in ceph_aes_crypt()
262 if (encrypt) { in ceph_aes_crypt()
282 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt, in ceph_crypt() argument
290 return ceph_aes_crypt(key, encrypt, buf, buf_len, in_len, in ceph_crypt()
Dcrypto.h27 int ceph_crypt(const struct ceph_crypto_key *key, bool encrypt,
/net/sunrpc/auth_gss/
Dgss_krb5_mech.c41 .encrypt = krb5_encrypt,
63 .encrypt = krb5_encrypt,
84 .encrypt = krb5_encrypt,
105 .encrypt = krb5_encrypt,
128 .encrypt = krb5_encrypt,
Dgss_krb5_crypto.c340 err = kctx->gk5e->encrypt(kctx->seq, NULL, checksumdata, in make_checksum()
678 u32 offset, u8 *iv, struct page **pages, int encrypt) in gss_krb5_cts_crypt() argument
701 if (encrypt) in gss_krb5_cts_crypt()
715 if (encrypt) in gss_krb5_cts_crypt()
Dgss_krb5_keys.c200 (*(gk5e->encrypt))(cipher, NULL, inblock.data, in krb5_derive_key()
/net/bluetooth/
Dhci_conn.c1340 cp.encrypt = 0x01; in hci_conn_encrypt()
1372 goto encrypt; in hci_conn_security()
1379 goto encrypt; in hci_conn_security()
1386 goto encrypt; in hci_conn_security()
1395 goto encrypt; in hci_conn_security()
1407 encrypt: in hci_conn_security()
Dhci_event.c2800 cp.encrypt = 0x01; in hci_auth_complete_evt()
2820 cp.encrypt = 0x01; in hci_auth_complete_evt()
2915 u8 encrypt; in read_enc_key_size_complete() local
2918 encrypt = 0x00; in read_enc_key_size_complete()
2920 encrypt = 0x02; in read_enc_key_size_complete()
2922 encrypt = 0x01; in read_enc_key_size_complete()
2924 hci_encrypt_cfm(conn, 0, encrypt); in read_enc_key_size_complete()
2945 if (ev->encrypt) { in hci_encrypt_change_evt()
2955 if ((conn->type == ACL_LINK && ev->encrypt == 0x02) || in hci_encrypt_change_evt()
2996 if (!ev->status && ev->encrypt && conn->type == ACL_LINK) { in hci_encrypt_change_evt()
[all …]
Dl2cap_core.c7471 static inline void l2cap_check_encryption(struct l2cap_chan *chan, u8 encrypt) in l2cap_check_encryption() argument
7476 if (encrypt == 0x00) { in l2cap_check_encryption()
7488 static void l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt) in l2cap_security_cfm() argument
7496 BT_DBG("conn %p status 0x%2.2x encrypt %u", conn, status, encrypt); in l2cap_security_cfm()
7511 if (!status && encrypt) in l2cap_security_cfm()
7522 l2cap_check_encryption(chan, encrypt); in l2cap_security_cfm()
Dhci_core.c982 __u8 encrypt = opt; in hci_encrypt_req() local
984 BT_DBG("%s %x", req->hdev->name, encrypt); in hci_encrypt_req()
987 hci_req_add(req, HCI_OP_WRITE_ENCRYPT_MODE, 1, &encrypt); in hci_encrypt_req()
/net/bluetooth/rfcomm/
Dcore.c2099 static void rfcomm_security_cfm(struct hci_conn *conn, u8 status, u8 encrypt) in rfcomm_security_cfm() argument
2104 BT_DBG("conn %p status 0x%02x encrypt 0x%02x", conn, status, encrypt); in rfcomm_security_cfm()
2113 if (status || encrypt == 0x00) { in rfcomm_security_cfm()
2119 if (d->state == BT_CONNECTED && !status && encrypt == 0x00) { in rfcomm_security_cfm()