Lines Matching refs:sha1Context

542     SHA1_CTX	sha1Context;  in ChallengeHash()  local
552 SHA1_Init(&sha1Context); in ChallengeHash()
553 SHA1_Update(&sha1Context, PeerChallenge, 16); in ChallengeHash()
554 SHA1_Update(&sha1Context, rchallenge, 16); in ChallengeHash()
555 SHA1_Update(&sha1Context, (unsigned char *)user, strlen(user)); in ChallengeHash()
556 SHA1_Final(sha1Hash, &sha1Context); in ChallengeHash()
683 SHA1_CTX sha1Context; in GenerateAuthenticatorResponse() local
687 SHA1_Init(&sha1Context); in GenerateAuthenticatorResponse()
688 SHA1_Update(&sha1Context, PasswordHashHash, MD4_SIGNATURE_SIZE); in GenerateAuthenticatorResponse()
689 SHA1_Update(&sha1Context, NTResponse, 24); in GenerateAuthenticatorResponse()
690 SHA1_Update(&sha1Context, Magic1, sizeof(Magic1)); in GenerateAuthenticatorResponse()
691 SHA1_Final(Digest, &sha1Context); in GenerateAuthenticatorResponse()
695 SHA1_Init(&sha1Context); in GenerateAuthenticatorResponse()
696 SHA1_Update(&sha1Context, Digest, sizeof(Digest)); in GenerateAuthenticatorResponse()
697 SHA1_Update(&sha1Context, Challenge, sizeof(Challenge)); in GenerateAuthenticatorResponse()
698 SHA1_Update(&sha1Context, Magic2, sizeof(Magic2)); in GenerateAuthenticatorResponse()
699 SHA1_Final(Digest, &sha1Context); in GenerateAuthenticatorResponse()
737 SHA1_CTX sha1Context; in mppe_set_keys() local
740 SHA1_Init(&sha1Context); in mppe_set_keys()
741 SHA1_Update(&sha1Context, PasswordHashHash, MD4_SIGNATURE_SIZE); in mppe_set_keys()
742 SHA1_Update(&sha1Context, PasswordHashHash, MD4_SIGNATURE_SIZE); in mppe_set_keys()
743 SHA1_Update(&sha1Context, rchallenge, 8); in mppe_set_keys()
744 SHA1_Final(Digest, &sha1Context); in mppe_set_keys()
781 SHA1_CTX sha1Context; in mppe_set_keys2() local
827 SHA1_Init(&sha1Context); in mppe_set_keys2()
828 SHA1_Update(&sha1Context, PasswordHashHash, MD4_SIGNATURE_SIZE); in mppe_set_keys2()
829 SHA1_Update(&sha1Context, NTResponse, 24); in mppe_set_keys2()
830 SHA1_Update(&sha1Context, Magic1, sizeof(Magic1)); in mppe_set_keys2()
831 SHA1_Final(MasterKey, &sha1Context); in mppe_set_keys2()
840 SHA1_Init(&sha1Context); in mppe_set_keys2()
841 SHA1_Update(&sha1Context, MasterKey, 16); in mppe_set_keys2()
842 SHA1_Update(&sha1Context, SHApad1, sizeof(SHApad1)); in mppe_set_keys2()
843 SHA1_Update(&sha1Context, s, 84); in mppe_set_keys2()
844 SHA1_Update(&sha1Context, SHApad2, sizeof(SHApad2)); in mppe_set_keys2()
845 SHA1_Final(Digest, &sha1Context); in mppe_set_keys2()
856 SHA1_Init(&sha1Context); in mppe_set_keys2()
857 SHA1_Update(&sha1Context, MasterKey, 16); in mppe_set_keys2()
858 SHA1_Update(&sha1Context, SHApad1, sizeof(SHApad1)); in mppe_set_keys2()
859 SHA1_Update(&sha1Context, s, 84); in mppe_set_keys2()
860 SHA1_Update(&sha1Context, SHApad2, sizeof(SHApad2)); in mppe_set_keys2()
861 SHA1_Final(Digest, &sha1Context); in mppe_set_keys2()