ocm: verify Nextcloud RSA-SHA512 signatures and SHA-512 digests (#454) #458
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-454c-nc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root-cause fix for #454. NC 34 signs OCM requests with SHA-512 digests + RSA-SHA512 over "(request-target) content-length date digest host" (confirmed in their OCMSignatoryManager). Verifier now honours the declared digest algorithm (SHA-256/512, unsupported refused by name), the declared signature algorithm, and rebuilds the base from the sender's headers list with host taken from the request authority (HTTP/2-safe). SignLegacy dialect unchanged via fallback list. TDD: red test is a byte-faithful NC-34 signed request; witnessed red on runner, full suite green.