Verificate a hash certified. Giving a hash and a message, it is verified that this hash has been gerenated from
a given message.
1 security.wic.certificates.verify
<security.wic.certificates.verify
algorithm='algorithm'
hash-size='hash-size'
>
<fecha /> *
<message /> *
<hash /> *
</security.wic.certificates.verify>
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 which you should generate. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Efecha | Date | ||||
Emessage | String | ||||
Ehash | String |
Returns | |
---|---|
Type | Description |
Boolean | Returns true if the hash generated for the keys match with the given message. |
Example
Copy
<xsql-script name='push_test'> <body> <println> <security.wic.certificates.verify algorithm='SHA1withRSA' hash-size='172' code='CERT1'> <date>11-03-2012</date> <string>2010-03-11;2010-03-11T11:27:08;FAC 001/9;1200.00;mYJEv4iGwLcnQbRD7dPs2uD1mX08XjXIKcGg3GEHmwMhmmGYusffIJjTdSITLX+uujTwzqmL/U5nvt6S9s8ijN3LwkJXsiEpt099e1MET/8y3+Y1bN+K+YPJQiVmlQS0fXETsOPo8SwUZdBALt0vTo1VhUZKejACcjEYJG6nI=</string> <string>F02032032032032030203203200</string> </security.wic.certificates.verify> </println> </body> </xsql-script>