Lines Matching refs:v1

279 	const struct rxrpc_key_data_v1 *v1;  in rxrpc_preparse()  local
315 if (prep->datalen < sizeof(*v1)) in rxrpc_preparse()
318 v1 = prep->data; in rxrpc_preparse()
319 if (prep->datalen != sizeof(*v1) + v1->ticket_length) in rxrpc_preparse()
322 _debug("SCIX: %u", v1->security_index); in rxrpc_preparse()
323 _debug("TLEN: %u", v1->ticket_length); in rxrpc_preparse()
324 _debug("EXPY: %x", v1->expiry); in rxrpc_preparse()
325 _debug("KVNO: %u", v1->kvno); in rxrpc_preparse()
327 v1->session_key[0], v1->session_key[1], in rxrpc_preparse()
328 v1->session_key[2], v1->session_key[3], in rxrpc_preparse()
329 v1->session_key[4], v1->session_key[5], in rxrpc_preparse()
330 v1->session_key[6], v1->session_key[7]); in rxrpc_preparse()
331 if (v1->ticket_length >= 8) in rxrpc_preparse()
333 v1->ticket[0], v1->ticket[1], in rxrpc_preparse()
334 v1->ticket[2], v1->ticket[3], in rxrpc_preparse()
335 v1->ticket[4], v1->ticket[5], in rxrpc_preparse()
336 v1->ticket[6], v1->ticket[7]); in rxrpc_preparse()
339 if (v1->security_index != RXRPC_SECURITY_RXKAD) in rxrpc_preparse()
342 plen = sizeof(*token->kad) + v1->ticket_length; in rxrpc_preparse()
354 token->kad->ticket_len = v1->ticket_length; in rxrpc_preparse()
355 token->kad->expiry = v1->expiry; in rxrpc_preparse()
356 token->kad->kvno = v1->kvno; in rxrpc_preparse()
357 memcpy(&token->kad->session_key, &v1->session_key, 8); in rxrpc_preparse()
358 memcpy(&token->kad->ticket, v1->ticket, v1->ticket_length); in rxrpc_preparse()
489 struct rxrpc_key_data_v1 v1; in rxrpc_get_server_data_key() member
505 data.v1.security_index = RXRPC_SECURITY_RXKAD; in rxrpc_get_server_data_key()
506 data.v1.ticket_length = 0; in rxrpc_get_server_data_key()
507 data.v1.expiry = rxrpc_time64_to_u32(expiry); in rxrpc_get_server_data_key()
508 data.v1.kvno = 0; in rxrpc_get_server_data_key()
510 memcpy(&data.v1.session_key, session_key, sizeof(data.v1.session_key)); in rxrpc_get_server_data_key()