Lines Matching refs:iv
189 struct rxrpc_crypt iv; in rxkad_prime_packet_security() local
209 memcpy(&iv, token->kad->session_key, sizeof(iv)); in rxkad_prime_packet_security()
219 skcipher_request_set_crypt(req, &sg, &sg, tmpsize, iv.x); in rxkad_prime_packet_security()
267 struct rxrpc_crypt iv; in rxkad_secure_packet_auth() local
287 memset(&iv, 0, sizeof(iv)); in rxkad_secure_packet_auth()
292 skcipher_request_set_crypt(req, &sg, &sg, 8, iv.x); in rxkad_secure_packet_auth()
311 struct rxrpc_crypt iv; in rxkad_secure_packet_encrypt() local
336 memcpy(&iv, token->kad->session_key, sizeof(iv)); in rxkad_secure_packet_encrypt()
341 skcipher_request_set_crypt(req, &sg[0], &sg[0], sizeof(rxkhdr), iv.x); in rxkad_secure_packet_encrypt()
355 skcipher_request_set_crypt(req, sg, sg, len, iv.x); in rxkad_secure_packet_encrypt()
375 struct rxrpc_crypt iv; in rxkad_secure_packet() local
398 memcpy(&iv, call->conn->rxkad.csum_iv.x, sizeof(iv)); in rxkad_secure_packet()
409 skcipher_request_set_crypt(req, &sg, &sg, 8, iv.x); in rxkad_secure_packet()
447 struct rxrpc_crypt iv; in rxkad_verify_packet_1() local
471 memset(&iv, 0, sizeof(iv)); in rxkad_verify_packet_1()
475 skcipher_request_set_crypt(req, sg, sg, 8, iv.x); in rxkad_verify_packet_1()
524 struct rxrpc_crypt iv; in rxkad_verify_packet_2() local
562 memcpy(&iv, token->kad->session_key, sizeof(iv)); in rxkad_verify_packet_2()
566 skcipher_request_set_crypt(req, sg, sg, len, iv.x); in rxkad_verify_packet_2()
620 struct rxrpc_crypt iv; in rxkad_verify_packet() local
637 memcpy(&iv, call->conn->rxkad.csum_iv.x, sizeof(iv)); in rxkad_verify_packet()
648 skcipher_request_set_crypt(req, &sg, &sg, 8, iv.x); in rxkad_verify_packet()
869 struct rxrpc_crypt iv; in rxkad_encrypt_response() local
877 memcpy(&iv, s2->session_key, sizeof(iv)); in rxkad_encrypt_response()
883 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_encrypt_response()
988 struct rxrpc_crypt iv, key; in rxkad_decrypt_ticket() local
1006 memcpy(&iv, &server_key->payload.data[2], sizeof(iv)); in rxkad_decrypt_ticket()
1015 skcipher_request_set_crypt(req, sg, sg, ticket_len, iv.x); in rxkad_decrypt_ticket()
1130 struct rxrpc_crypt iv; in rxkad_decrypt_response() local
1140 memcpy(&iv, session_key, sizeof(iv)); in rxkad_decrypt_response()
1146 skcipher_request_set_crypt(req, sg, sg, sizeof(resp->encrypted), iv.x); in rxkad_decrypt_response()