1 security.sign.hash
<security.sign.hash
algorithm='algorithm'
hash-size='hash-size'
>
<private-key /> *
<public-key /> *
<message /> *
</security.sign.hash>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aalgorithm | string | Algorithm of generation (RSA, DSA...). In this document are detailed all the types. | |||
Ahash-size | integer | Indicate the lenght of the hash you should generate. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eprivate-key | file|byte[]|strBase64 | ||||
Epublic-key | file|byte[]|strBase64 | ||||
Emessage | String |
Returns | |
---|---|
Type | Description |
String | The hash of the certification. |
Exceptions
hash length expected was [hash-size] while found [real-size]
Example
Generate a hash for a private key and a public one from a message.
Copy
<xsql-script name='push_test'> <body> <set name='hash'> <security.sign.hash algorithm='SHA1withRSA' hash-size='172'> <file type='absolute' name='private.der' /> <file type='absolute' name='public.der' /> <message /> </security.sign.hash> </set> </body> </xsql-script>