Lines Matching refs:secret
262 struct sctp_auth_bytes *secret; in sctp_auth_asoc_set_secret() local
270 secret = sctp_auth_create_key(auth_len, gfp); in sctp_auth_asoc_set_secret()
271 if (!secret) in sctp_auth_asoc_set_secret()
275 memcpy(secret->data, ep_key->key->data, ep_key->key->len); in sctp_auth_asoc_set_secret()
279 memcpy(secret->data + offset, first_vector->data, first_vector->len); in sctp_auth_asoc_set_secret()
282 memcpy(secret->data + offset, last_vector->data, last_vector->len); in sctp_auth_asoc_set_secret()
284 return secret; in sctp_auth_asoc_set_secret()
299 struct sctp_auth_bytes *secret = NULL; in sctp_auth_asoc_create_secret() local
344 secret = sctp_auth_asoc_set_secret(ep_key, first_vector, last_vector, in sctp_auth_asoc_create_secret()
350 return secret; in sctp_auth_asoc_create_secret()
389 struct sctp_auth_bytes *secret; in sctp_auth_asoc_init_active_key() local
407 secret = sctp_auth_asoc_create_secret(asoc, ep_key, gfp); in sctp_auth_asoc_init_active_key()
408 if (!secret) in sctp_auth_asoc_init_active_key()
412 asoc->asoc_shared_key = secret; in sctp_auth_asoc_init_active_key()