Lines Matching refs:sg
190 struct scatterlist sg; in chap_server_compute_md5() local
263 sg_init_one(&sg, &chap->id, 1); in chap_server_compute_md5()
264 ret = crypto_hash_update(&desc, &sg, 1); in chap_server_compute_md5()
271 sg_init_one(&sg, &auth->password, strlen(auth->password)); in chap_server_compute_md5()
272 ret = crypto_hash_update(&desc, &sg, strlen(auth->password)); in chap_server_compute_md5()
279 sg_init_one(&sg, chap->challenge, CHAP_CHALLENGE_LENGTH); in chap_server_compute_md5()
280 ret = crypto_hash_update(&desc, &sg, CHAP_CHALLENGE_LENGTH); in chap_server_compute_md5()
392 sg_init_one(&sg, &id_as_uchar, 1); in chap_server_compute_md5()
393 ret = crypto_hash_update(&desc, &sg, 1); in chap_server_compute_md5()
400 sg_init_one(&sg, auth->password_mutual, in chap_server_compute_md5()
402 ret = crypto_hash_update(&desc, &sg, strlen(auth->password_mutual)); in chap_server_compute_md5()
412 sg_init_one(&sg, challenge_binhex, challenge_len); in chap_server_compute_md5()
413 ret = crypto_hash_update(&desc, &sg, challenge_len); in chap_server_compute_md5()