Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add make_signature and verify_signature to Sspi trait. #343

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AvivNaaman
Copy link

resolves #338

Implement for NTLM.
Missing docs & tests.
Copy link
Collaborator

@TheBestTvarynka TheBestTvarynka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Thank you for your contribution! I reviewed the code and left a few comments. Overall, your code is good 👍

src/negotiate.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/ntlm/mod.rs Outdated Show resolved Hide resolved
src/ntlm/mod.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
…tions.

Error message formatting.
Use a generic u32 flags parameter for *_signature functions.
@AvivNaaman
Copy link
Author

@TheBestTvarynka What tests are you suggesting to add to the new functions?
Most of the current tests for encryption/decryption provide a descent validation to the signature functions (indirectly -- I suppose we'd like to add some tests for those functions specifically.
Should I copy the existing tests and modify them (to perform, for example, make_signature instead of encrypt_message, and test the output), write a whole other set of tests, or modify the existing tests to check both flows somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Supporting no-encryption NTLM message signing & GSS MIC calculation
2 participants