How to calculate DigestValue in Digital signature

0

Good morning friends, here I put my signature example XADES-EPES ENVELOPED where I could not find how to generate the DigestValue. I do not understand where the calculation comes from or in what moment of time they are done .. I explain myself better, for example .. the labels are placed and based on them is calculated? or the calculation is done without the labels being in the XML ... thanks in advance the help. Here I put the example of xml work in PHP.

    
asked by Jhonatan wagner ocampo 22.01.2018 в 20:49
source

1 answer

0

DigestValue contains the result of applying the hash algorithm to the transformed resource (s) coded in base 64.

for PHP this method works:

$ strcadena would be the xml fragment to calculate

to calculate the digestvalue of the signature policy

    
answered by 05.09.2018 в 23:47