Lines Matching refs:new
96 struct sctp_shared_key *new; in sctp_auth_shkey_create() local
99 new = kzalloc(sizeof(struct sctp_shared_key), gfp); in sctp_auth_shkey_create()
100 if (!new) in sctp_auth_shkey_create()
103 INIT_LIST_HEAD(&new->key_list); in sctp_auth_shkey_create()
104 new->key_id = key_id; in sctp_auth_shkey_create()
106 return new; in sctp_auth_shkey_create()
193 struct sctp_auth_bytes *new; in sctp_auth_make_key_vector() local
205 new = sctp_auth_create_key(len, gfp); in sctp_auth_make_key_vector()
206 if (!new) in sctp_auth_make_key_vector()
209 memcpy(new->data, random, random_len); in sctp_auth_make_key_vector()
213 memcpy(new->data + offset, chunks, chunks_len); in sctp_auth_make_key_vector()
217 memcpy(new->data + offset, hmacs, hmacs_len); in sctp_auth_make_key_vector()
219 return new; in sctp_auth_make_key_vector()
362 struct sctp_shared_key *new; in sctp_auth_asoc_copy_shkeys() local
367 new = sctp_auth_shkey_create(sh_key->key_id, gfp); in sctp_auth_asoc_copy_shkeys()
368 if (!new) in sctp_auth_asoc_copy_shkeys()
371 new->key = sh_key->key; in sctp_auth_asoc_copy_shkeys()
372 sctp_auth_key_hold(new->key); in sctp_auth_asoc_copy_shkeys()
373 list_add(&new->key_list, &asoc->endpoint_shared_keys); in sctp_auth_asoc_copy_shkeys()