binarysign #29

Merged
zxq9 merged 5 commits from binarysign into master 2025-11-01 11:32:06 +09:00
Owner

Adding binary signatures to GajuDesk's GRIDS implementation.

"message" type signatures in GRIDS operate over strings by converting them to binary data and then doing a little dance around a fixed salt (for no real reason), hashing the resulting binary, signing it and returning the signature. The verification procedure builds up to the same hash and then checks the signature over that hash.

"binary" type signatures are a bit more simple. They require that the data in the GRIDS JSON message be encoded as base64. This data is decoded from base64 to a binary, then a fixed salt is prepended, the resulting binary is hashed, and the signature is returned. Verification involves doing the same process, starting from the base64 encoded binary in the GRIDS message, then building up to the same hash and then verifying the signature over that hash.

Hakuzaru exposes the binary level operations rather than concerning itself with the base64 stuff, as that is really a serialization issue and not fundamental to the core operations.

Adding binary signatures to GajuDesk's GRIDS implementation. "message" type signatures in GRIDS operate over strings by converting them to binary data and then doing a little dance around a fixed salt (for no real reason), hashing the resulting binary, signing it and returning the signature. The verification procedure builds up to the same hash and then checks the signature over that hash. "binary" type signatures are a bit more simple. They require that the data in the GRIDS JSON message be encoded as base64. This data is decoded from base64 to a binary, then a fixed salt is prepended, the resulting binary is hashed, and the signature is returned. Verification involves doing the same process, starting from the base64 encoded binary in the GRIDS message, then building up to the same hash and then verifying the signature over that hash. Hakuzaru exposes the binary level operations rather than concerning itself with the base64 stuff, as that is really a serialization issue and not fundamental to the core operations.
zxq9 added 3 commits 2025-10-29 16:11:35 +09:00
zxq9 requested review from dimitar.p.ivanov 2025-10-29 16:11:48 +09:00
zxq9 requested review from pharpend 2025-10-29 16:11:49 +09:00
zxq9 requested review from spivee 2025-10-29 16:11:50 +09:00
zxq9 requested review from uwiger 2025-10-29 16:11:50 +09:00
zxq9 added 2 commits 2025-10-29 16:15:54 +09:00
zxq9 merged commit 76f9d074a9 into master 2025-11-01 11:32:06 +09:00
zxq9 deleted branch binarysign 2025-11-01 11:32:07 +09:00
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/GajuDesk#29
No description provided.