• Home
  • Raw
  • Download

Lines Matching refs:end

97 static int ceph_x_decrypt(struct ceph_crypto_key *secret, void **p, void *end)  in ceph_x_decrypt()  argument
102 ceph_decode_32_safe(p, end, ciphertext_len, e_inval); in ceph_x_decrypt()
103 ceph_decode_need(p, end, ciphertext_len, e_inval); in ceph_x_decrypt()
162 void **p, void *end) in process_one_ticket() argument
180 ceph_decode_need(p, end, sizeof(u32) + 1, bad); in process_one_ticket()
197 ret = ceph_x_decrypt(secret, p, end); in process_one_ticket()
220 ceph_decode_8_safe(p, end, is_enc, bad); in process_one_ticket()
224 ret = ceph_x_decrypt(&th->session_key, p, end); in process_one_ticket()
233 tpend = end; in process_one_ticket()
272 void **p, void *end) in ceph_x_proc_ticket_reply() argument
278 ceph_decode_8_safe(p, end, reply_struct_v, bad); in ceph_x_proc_ticket_reply()
282 ceph_decode_32_safe(p, end, num, bad); in ceph_x_proc_ticket_reply()
286 ret = process_one_ticket(ac, secret, p, end); in ceph_x_proc_ticket_reply()
307 void *p, *end; in encrypt_authorizer() local
313 end = au->buf->vec.iov_base + au->buf->vec.iov_len; in encrypt_authorizer()
327 ret = ceph_x_encrypt(&au->session_key, p, end - p, sizeof(*msg_b)); in encrypt_authorizer()
333 WARN_ON(p != end); in encrypt_authorizer()
335 WARN_ON(p > end); in encrypt_authorizer()
419 void **p, void *end) in ceph_x_encode_ticket() argument
421 ceph_decode_need(p, end, 1 + sizeof(u64), bad); in ceph_x_encode_ticket()
428 ceph_encode_32_safe(p, end, len, bad); in ceph_x_encode_ticket()
429 ceph_encode_copy_safe(p, end, buf, len, bad); in ceph_x_encode_ticket()
431 ceph_encode_32_safe(p, end, 0, bad); in ceph_x_encode_ticket()
489 void *buf, void *end) in ceph_x_build_request() argument
514 if (p > end) in ceph_x_build_request()
538 ret = ceph_x_encode_ticket(th, &p, end); in ceph_x_build_request()
545 ceph_encode_32_safe(&p, end, need, e_range); in ceph_x_build_request()
556 ceph_encode_16_safe(&p, end, CEPHX_GET_PRINCIPAL_SESSION_KEY, in ceph_x_build_request()
558 ceph_encode_copy_safe(&p, end, in ceph_x_build_request()
561 ceph_encode_8_safe(&p, end, 1, e_range); in ceph_x_build_request()
562 ceph_encode_32_safe(&p, end, need, e_range); in ceph_x_build_request()
572 static int decode_con_secret(void **p, void *end, u8 *con_secret, in decode_con_secret() argument
577 ceph_decode_32_safe(p, end, len, bad); in decode_con_secret()
578 ceph_decode_need(p, end, len, bad); in decode_con_secret()
601 void **p, void *end, in handle_auth_session_key() argument
612 ret = ceph_x_proc_ticket_reply(ac, &xi->secret, p, end); in handle_auth_session_key()
617 if (*p == end) { in handle_auth_session_key()
633 ceph_decode_32_safe(p, end, len, e_inval); in handle_auth_session_key()
650 ceph_decode_32_safe(p, end, len, e_inval); in handle_auth_session_key()
666 void *buf, void *end, in ceph_x_handle_reply() argument
672 int len = end - buf; in ceph_x_handle_reply()
693 ceph_decode_16_safe(&p, end, op, e_inval); in ceph_x_handle_reply()
694 ceph_decode_32_safe(&p, end, result, e_inval); in ceph_x_handle_reply()
699 ret = handle_auth_session_key(ac, global_id, &p, end, in ceph_x_handle_reply()
710 ret = ceph_x_proc_ticket_reply(ac, &th->session_key, &p, end); in ceph_x_handle_reply()
845 void **p, void *end, u64 *nonce_plus_one, in decrypt_authorizer_reply() argument
853 ret = ceph_x_decrypt(secret, p, end); in decrypt_authorizer_reply()