We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Users may accidentally forget to call jwt.verify(). Is there any reason not to combine .init and .verify into a single function?
jwt.verify()
.init
.verify
Before:
let jwt = JWT::init( data, b64_offset: u32, pubkey_modulus_limbs, redc_params_limbs, signature_limbs, ); jwt.verify();
After:
let jwt = JWT::verify( data, b64_offset: u32, pubkey_modulus_limbs, redc_params_limbs, signature_limbs, );
Also, for partial hashing:
let jwt = JWT::verify_with_partial_hash( partial_data, partial_hash, full_data_length, b64_offset, pubkey_modulus_limbs, redc_params_limbs, signature_limbs, );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Users may accidentally forget to call
jwt.verify()
. Is there any reason not to combine.init
and.verify
into a single function?Before:
After:
Also, for partial hashing:
The text was updated successfully, but these errors were encountered: