Lines Matching refs:secret
267 struct sctp_auth_bytes *secret; in sctp_auth_asoc_set_secret() local
275 secret = sctp_auth_create_key(auth_len, gfp); in sctp_auth_asoc_set_secret()
276 if (!secret) in sctp_auth_asoc_set_secret()
280 memcpy(secret->data, ep_key->key->data, ep_key->key->len); in sctp_auth_asoc_set_secret()
284 memcpy(secret->data + offset, first_vector->data, first_vector->len); in sctp_auth_asoc_set_secret()
287 memcpy(secret->data + offset, last_vector->data, last_vector->len); in sctp_auth_asoc_set_secret()
289 return secret; in sctp_auth_asoc_set_secret()
304 struct sctp_auth_bytes *secret = NULL; in sctp_auth_asoc_create_secret() local
349 secret = sctp_auth_asoc_set_secret(ep_key, first_vector, last_vector, in sctp_auth_asoc_create_secret()
355 return secret; in sctp_auth_asoc_create_secret()
394 struct sctp_auth_bytes *secret; in sctp_auth_asoc_init_active_key() local
411 secret = sctp_auth_asoc_create_secret(asoc, ep_key, gfp); in sctp_auth_asoc_init_active_key()
412 if (!secret) in sctp_auth_asoc_init_active_key()
416 asoc->asoc_shared_key = secret; in sctp_auth_asoc_init_active_key()