Comments (2)
It looks like if I extract the info portion of the request and run sha256sum on it, I get the same thing that ring calculates.
Here are the hex contents of the info section
3082028902010030143112301006035504031309736f6d65776865726530
820222300d06092a864886f70d01010105000382020f003082020a028202
0100ca67c3ec0f6c07c2e4cf816d241333b84493f2a52ab03034864f699a
d1a85acbe7b9ed246e53117d36eab513fac26d08f1c3250f8ddd4e96d2a9
7b2fbd03a31e2c551f9f75d7725a3faffcf063705ac1151b352961e46417
4424df10a4f264368eb22a6398d5066e1981a19df2302d23f232c05fa06a
c3b07e857cef5b869734555308fbf6de3176da1195d80f1e5f8f9eec0b86
eb4d578b63e526faf59ba5951355084e0263820a0b2419873029ac3b4db1
ad3a21c301e5cbe2de56b8de9570eb1738326e3af36059dad4bd353f9a68
91b0f6dfc705705c001a811734443d916c29935bb10e3000d8f09c878e01
ea8d7fe126f46e7794733d37e6d4483e5b6af82e12e3d38b2c396a5eda58
a0fcc19595cf5cf2a0030db876e14579fdf89b33445bef0c4e4e11850f76
bb0b3c82871c9e27840ed6cd3ababc418b4ed209c6129bfff61b0f2c1f7d
ca76ff62099c89d40803b8ca7d4e364b23e78ae41c224d51b440fbe3e615
75ea3d16668a741d45549e97db291504bbff1d2ac59ec9ce1461315ec327
4cfe1f8075266739af73a472d1dde3a83e4cb25d0ef796200a1a7e18c95d
fa6b7b68b771cb7349ce75302c37e2593a8133823a09cb69faac44b641b1
232871df58a7c527a15ef9d029701eb7f3346fbc3229e090a17356993102
59bbc77eebb2a8041697df3ee185b050342e1ce89b198e161b10c51deb30
6ba9fed30203010001a048300f06092a864886f70d01090231020c00300f
06092a864886f70d01090731020c00302406092a864886f70d01090e3117
301530130603551d25040c300a06082b06010505070302
and the corresponding shasum 74aa8106d16b55c514359679681f3a35a96aea650c9c5c6987c09156b98d6b4c
This shasum matches the last 32 bytes of the vector calculated by ring
from ring.
It appears the problem is in the x509_cert crate, the attributes of the CertReqInfo are not kept in the right order, causing the bytes to be different.
from ring.
Related Issues (20)
- Unsupported architecture compiling for `aarch64-linux-android` using MacOS SDK 14.2 HOT 2
- evaluation of constant value failed -> assert!(cfg!(target_feature = "sse") && cfg!(target_feature = "sse2")) HOT 1
- Error: dangerous relocation: call8: call target out of range:(xtensa-esp32s3-espidf) HOT 1
- assert!(cfg!(target_feature = "sse") && cfg!(target_feature = "sse2")) panic at build on i386, i586, FreeBSD, or many target_os=none x86 targets. HOT 5
- error: failed to run custom build command for `ring v0.16.20` HOT 1
- Consider using `zeroize` crate for key materials HOT 1
- Build fails on i386: evaluation of constant value failed HOT 1
- Fails to build on Linux SPARC HOT 10
- warning: [email protected]: aarch64-fslc-linux-gcc: error: unrecognized command-line option ‘-m64’ HOT 3
- Add riscv64 Support HOT 3
- Disclosure Policy HOT 3
- Attempted to use functionality that requires system randomness!!
- warning: [email protected]: Compiler family detection failed due to error: ToolNotFound: Failed to find tool. Is `C:\Program` installed? HOT 2
- Ring compile error when trying to cross compile from windows 10 to x86_64-unknown-linux-gnu HOT 2
- Ring no longer builds with Rust 1.61 due to cc dependency HOT 1
- support for RISCV32 HOT 2
- `less-safe-getrandom-custom-or-rdrand` not working on target `x86_64-fortanix-unknown-sgx` HOT 1
- Add store/restore functionality to digest::Context HOT 1
- Build fails on target wasm32-wasi HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ring.