Lines Matching refs:rxkad
135 conn->rxkad.cipher = ci; in rxkad_init_connection_security()
223 memcpy(&conn->rxkad.csum_iv, tmpbuf + 2, sizeof(conn->rxkad.csum_iv)); in rxkad_prime_packet_security()
235 struct crypto_skcipher *tfm = &call->conn->rxkad.cipher->base; in rxkad_get_call_crypto()
290 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_secure_packet_auth()
339 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_secure_packet_encrypt()
386 if (!call->conn->rxkad.cipher) in rxkad_secure_packet()
398 memcpy(&iv, call->conn->rxkad.csum_iv.x, sizeof(iv)); in rxkad_secure_packet()
407 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_secure_packet()
473 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_verify_packet_1()
564 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_verify_packet_2()
629 if (!call->conn->rxkad.cipher) in rxkad_verify_packet()
637 memcpy(&iv, call->conn->rxkad.csum_iv.x, sizeof(iv)); in rxkad_verify_packet()
646 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_verify_packet()
741 get_random_bytes(&conn->rxkad.nonce, sizeof(conn->rxkad.nonce)); in rxkad_issue_challenge()
744 challenge.nonce = htonl(conn->rxkad.nonce); in rxkad_issue_challenge()
872 req = skcipher_request_alloc(&conn->rxkad.cipher->base, GFP_NOFS); in rxkad_encrypt_response()
881 skcipher_request_set_sync_tfm(req, conn->rxkad.cipher); in rxkad_encrypt_response()
1290 if (ntohl(response->encrypted.inc_nonce) != conn->rxkad.nonce + 1) in rxkad_verify_response()
1343 if (conn->rxkad.cipher) in rxkad_clear()
1344 crypto_free_sync_skcipher(conn->rxkad.cipher); in rxkad_clear()
1386 const struct rxrpc_security rxkad = { variable