Lines Matching refs:Context
157 SHA_CTX Context; in ChallengeHash() local
167 SHA1_Init(&Context); in ChallengeHash()
169 SHA1_Update(&Context, PeerChallenge, 16); in ChallengeHash()
170 SHA1_Update(&Context, AuthenticatorChallenge, 16); in ChallengeHash()
171 SHA1_Update(&Context, Name, strlen(Name)); in ChallengeHash()
173 SHA1_Final(Digest, &Context); in ChallengeHash()
219 SHA_CTX Context; in GenerateAuthenticatorResponse() local
251 SHA1_Init(&Context); in GenerateAuthenticatorResponse()
252 SHA1_Update(&Context, PasswordHashHash, 16); in GenerateAuthenticatorResponse()
253 SHA1_Update(&Context, NTResponse, 24); in GenerateAuthenticatorResponse()
254 SHA1_Update(&Context, Magic1, 39); in GenerateAuthenticatorResponse()
255 SHA1_Final(Digest, &Context); in GenerateAuthenticatorResponse()
257 SHA1_Init(&Context); in GenerateAuthenticatorResponse()
258 SHA1_Update(&Context, Digest, 20); in GenerateAuthenticatorResponse()
259 SHA1_Update(&Context, Challenge, 8); in GenerateAuthenticatorResponse()
260 SHA1_Update(&Context, Magic2, 41); in GenerateAuthenticatorResponse()
271 SHA1_End(&Context, AuthenticatorResponse + 2); in GenerateAuthenticatorResponse()
281 SHA_CTX Context; in GetMasterKey() local
287 SHA1_Init(&Context); in GetMasterKey()
288 SHA1_Update(&Context, PasswordHashHash, 16); in GetMasterKey()
289 SHA1_Update(&Context, NTResponse, 24); in GetMasterKey()
290 SHA1_Update(&Context, Magic1, 27); in GetMasterKey()
291 SHA1_Final(Digest, &Context); in GetMasterKey()
300 SHA_CTX Context; in GetAsymetricStartKey() local
339 SHA1_Init(&Context); in GetAsymetricStartKey()
340 SHA1_Update(&Context, MasterKey, 16); in GetAsymetricStartKey()
341 SHA1_Update(&Context, SHA1_Pad1, 40); in GetAsymetricStartKey()
342 SHA1_Update(&Context, s, 84); in GetAsymetricStartKey()
343 SHA1_Update(&Context, SHA1_Pad2, 40); in GetAsymetricStartKey()
344 SHA1_Final(Digest, &Context); in GetAsymetricStartKey()
353 SHA_CTX Context; in GetNewKeyFromSHA() local
356 SHA1_Init(&Context); in GetNewKeyFromSHA()
357 SHA1_Update(&Context, StartKey, SessionKeyLength); in GetNewKeyFromSHA()
358 SHA1_Update(&Context, SHA1_Pad1, 40); in GetNewKeyFromSHA()
359 SHA1_Update(&Context, SessionKey, SessionKeyLength); in GetNewKeyFromSHA()
360 SHA1_Update(&Context, SHA1_Pad2, 40); in GetNewKeyFromSHA()
361 SHA1_Final(Digest, &Context); in GetNewKeyFromSHA()
371 SHA_CTX Context;
374 SHA1_Init(&Context);
375 SHA1_Update(&Context, InitialSessionKey, LengthOfDesiredKey);
376 SHA1_Update(&Context, SHA1_Pad1, 40);
377 SHA1_Update(&Context, CurrentSessionKey, LengthOfDesiredKey);
378 SHA1_Update(&Context, SHA1_Pad2, 40);
379 SHA1_Final(Digest, &Context);