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

BCryptDecrypt error! #240

Open
joaorstavares opened this issue Mar 25, 2024 · 5 comments
Open

BCryptDecrypt error! #240

joaorstavares opened this issue Mar 25, 2024 · 5 comments

Comments

@joaorstavares
Copy link

Hi

I'm trying to use the nuget package, however when decrypting a message and calling:
status = BCrypt.BCryptDecrypt(hKey, cipherText, cipherText.Length, ref authInfo, ivData, ivData.Length, plainText, plainText.Length, ref plainTextSize, 0x0);

Visual Studio gives me error saying that BCrypt does not contain a definition for BCryptDecrypt.

Isn't this because BCryptDecrypt is declared as internal and not as public, like BCryptEncrypt is?

I'm kinda new at this.

Kind Regards,
João Tavares.

@joaorstavares
Copy link
Author

I think BCryptSetAlgorithmProperty has the same issue, has I get the same error from VS.

@dvsekhvalnov
Copy link
Owner

Hi @joaorstavares , confused, library is not asking to use BCryptDecrypt anywhere.

How did you get there? And what issues are you experiencing with library itself?

@joaorstavares
Copy link
Author

I'm talking about the code in jose-jwt>crypto>AesGcm.cs

@joaorstavares
Copy link
Author

I'm trying to decrypt a message in a .NET Framework project.

Since I cannot use System.Cryptography in it, I tried jose-jwt NuGet Package.

@dvsekhvalnov
Copy link
Owner

@joaorstavares, still not follow :(

jose-jwt is heavily relies on System.Cryptography, if you can't use it by some reason, library will not help much here, it can't work without.

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

No branches or pull requests

2 participants