You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish to sign a digest (I.E. as generated by subtle.digest OR as generated by another system). I believe the subtle.sign method does not expect a digest, it expects the message (original data) to be signed.
I believe if i pass in a digest to the subtle.sign method, i will end up signing a digest of that digest.
Are there any plans to allow a digest to be passed in and have this digest signed (I.E. use the underlying EVP_Sign* methods instead of the EVP_DigestSign* methods).
We do not have access to the raw PDF data in the browser (E.G. as a base64 string)
(The PDFs may be large documents therefore it is better if these are loaded via a URL, not via passed in raw data)
We do however have a hash (digest) of the PDF available, this is what we would like to sign
Hello,
I am using node-webcrypto-ossl via fortify.
I wish to sign a digest (I.E. as generated by subtle.digest OR as generated by another system). I believe the subtle.sign method does not expect a digest, it expects the message (original data) to be signed.
This is based on the assumption that subtle.sign (when using PKCS1) uses the RSA_PKCS1_sign method under the hood (https://github.com/PeculiarVentures/node-webcrypto-ossl/blob/master/src/rsa/rsa_pkcs1.cpp), which uses the EVP_DigestSign* methods, and that these methods are generating the digest internally.
I believe if i pass in a digest to the subtle.sign method, i will end up signing a digest of that digest.
Are there any plans to allow a digest to be passed in and have this digest signed (I.E. use the underlying EVP_Sign* methods instead of the EVP_DigestSign* methods).
https://wiki.openssl.org/index.php/EVP_Signing_and_Verifying
The use case for this is as follows:
(The PDFs may be large documents therefore it is better if these are loaded via a URL, not via passed in raw data)