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
num-bigint-dig
I used num-bigint-dig instead of num-bigint。
num-bigint
In my Cargo.toml
num-bigint = { version = "0.8.1", features = ["i128", "u64_digit"], default-features = false, package = "num-bigint-dig" }
Below is my code
let cipher = encrypt(data, public_key); let x = BigUint::from_bytes_be(&cipher[0..32]); let y = BigUint::from_bytes_be(&cipher[32..64]); let sm3 = &cipher[64..96]; let secret = &cipher[96..]; yasna::construct_der(|writer| { writer.write_sequence(|writer| { writer.next().write_biguint(&x); writer.next().write_biguint(&y); writer.next().write_bytes(&sm3); writer.next().write_bytes(&secret); }); })
But the method write_biguint dose not support num-bigint-dig::BigUnit.
write_biguint
num-bigint-dig::BigUnit
So How to make it work?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I used
num-bigint-dig
instead ofnum-bigint
。In my Cargo.toml
Below is my code
But the method
write_biguint
dose not supportnum-bigint-dig::BigUnit
.So How to make it work?
The text was updated successfully, but these errors were encountered: