Lines Matching refs:rxkad

135 	conn->rxkad.cipher = ci;  in rxkad_init_connection_security()
231 memcpy(&conn->rxkad.csum_iv, tmpbuf + 2, sizeof(conn->rxkad.csum_iv)); in rxkad_prime_packet_security()
243 struct crypto_skcipher *tfm = &call->conn->rxkad.cipher->base; in rxkad_get_call_crypto()
286 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_secure_packet_auth()
329 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_secure_packet_encrypt()
355 if (!call->conn->rxkad.cipher) in rxkad_secure_packet()
367 memcpy(&iv, call->conn->rxkad.csum_iv.x, sizeof(iv)); in rxkad_secure_packet()
376 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_secure_packet()
453 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_verify_packet_1()
531 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_verify_packet_2()
585 if (!call->conn->rxkad.cipher) in rxkad_verify_packet()
593 memcpy(&iv, call->conn->rxkad.csum_iv.x, sizeof(iv)); in rxkad_verify_packet()
602 skcipher_request_set_sync_tfm(req, call->conn->rxkad.cipher); in rxkad_verify_packet()
654 get_random_bytes(&conn->rxkad.nonce, sizeof(conn->rxkad.nonce)); in rxkad_issue_challenge()
657 challenge.nonce = htonl(conn->rxkad.nonce); in rxkad_issue_challenge()
688 trace_rxrpc_tx_challenge(conn, serial, 0, conn->rxkad.nonce); in rxkad_issue_challenge()
739 req = skcipher_request_alloc(&conn->rxkad.cipher->base, GFP_NOFS); in rxkad_encrypt_response()
746 skcipher_request_set_sync_tfm(req, conn->rxkad.cipher); in rxkad_encrypt_response()
1242 if (ntohl(response->encrypted.inc_nonce) != conn->rxkad.nonce + 1) { in rxkad_verify_response()
1295 if (conn->rxkad.cipher) in rxkad_clear()
1296 crypto_free_sync_skcipher(conn->rxkad.cipher); in rxkad_clear()
1338 const struct rxrpc_security rxkad = { variable