Home
last modified time | relevance | path

Searched refs:au (Results 1 – 2 of 2) sorted by relevance

/net/ceph/
Dauth_none.c43 struct ceph_none_authorizer *au) in ceph_auth_none_build_authorizer() argument
45 void *p = au->buf; in ceph_auth_none_build_authorizer()
46 void *const end = p + sizeof(au->buf); in ceph_auth_none_build_authorizer()
55 au->buf_len = p - (void *)au->buf; in ceph_auth_none_build_authorizer()
56 dout("%s built authorizer len %d\n", __func__, au->buf_len); in ceph_auth_none_build_authorizer()
97 struct ceph_none_authorizer *au; in ceph_auth_none_create_authorizer() local
100 au = kmalloc(sizeof(*au), GFP_NOFS); in ceph_auth_none_create_authorizer()
101 if (!au) in ceph_auth_none_create_authorizer()
104 au->base.destroy = ceph_auth_none_destroy_authorizer; in ceph_auth_none_create_authorizer()
106 ret = ceph_auth_none_build_authorizer(ac, au); in ceph_auth_none_create_authorizer()
[all …]
Dauth_x.c302 static int encrypt_authorizer(struct ceph_x_authorizer *au, in encrypt_authorizer() argument
310 msg_a = au->buf->vec.iov_base; in encrypt_authorizer()
311 WARN_ON(msg_a->ticket_blob.secret_id != cpu_to_le64(au->secret_id)); in encrypt_authorizer()
313 end = au->buf->vec.iov_base + au->buf->vec.iov_len; in encrypt_authorizer()
317 msg_b->nonce = cpu_to_le64(au->nonce); in encrypt_authorizer()
327 ret = ceph_x_encrypt(&au->session_key, p, end - p, sizeof(*msg_b)); in encrypt_authorizer()
336 au->buf->vec.iov_len = p - au->buf->vec.iov_base; in encrypt_authorizer()
342 static void ceph_x_authorizer_cleanup(struct ceph_x_authorizer *au) in ceph_x_authorizer_cleanup() argument
344 ceph_crypto_key_destroy(&au->session_key); in ceph_x_authorizer_cleanup()
345 if (au->buf) { in ceph_x_authorizer_cleanup()
[all …]