Skip to content
Snippets Groups Projects
Commit e92b9a7e authored by Igor Markin's avatar Igor Markin
Browse files

Update README

parent 058d7cca
No related branches found
No related tags found
1 merge request!44Implement a new signature/verification algorithm with severity level
......@@ -74,8 +74,11 @@ signingService.helpers.parseHtml = (htmlString) => {
* [Optional]
* Define a custom SHA256 funcion.
* By default it's using WebCrypto or Node.JS Crypto API
* The function must properly handle bytes, base64 strings and utf8 strings
* base64 stirngs must be directly covnerted to bytes
* Refer to ICryptoService for further details
*/
signingService.helpers.SHA256 = async (value: string) => {
signingService.helpers.cryptoSerivce.SHA256 = async (value: string) => {
// returns hash base64 string
};
......@@ -91,11 +94,12 @@ signingService.helpers.signRSAExternal = async (value: string) => {
* [Optional]
* Define a function to verify RSA signature.
* Uses WebCrypto/Node.JS crypto by default
* Refer to ICryptoService for further details
*/
signingService.helpers.verifyRSASignature = async (
publicKeyBase64,
signingService.helpers.cryptoService.verifyRSASignature = async (
publicKeyPEM,
data,
signatureBase64
signature
) => {
// returns true/false
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment