CGI-SE-Trusted-Services / c2c-common

http://pvendil.github.io/c2c-common/
GNU Affero General Public License v3.0
46 stars 18 forks source link

GenKeyTag typo #15

Open nickdurante opened 3 years ago

nickdurante commented 3 years ago

Hi @pvendil, In the Etsi102941Demo, I believe this function has a typo:

https://github.com/pvendil/c2c-common/blob/987d78f451ebf5e81a6e807482967845d78cf9b8/src/test/java/org/certificateservices/custom/c2x/demo/EtsiTs102941Demo.java#L523-L541

Line:

https://github.com/pvendil/c2c-common/blob/987d78f451ebf5e81a6e807482967845d78cf9b8/src/test/java/org/certificateservices/custom/c2x/demo/EtsiTs102941Demo.java#L538

Should be:

hMac.doFinal(macData,0); 

As the content of the HMAC should be saved in the correct byte array.