From: Blom, J.J.C. (Jaap) <jb...@cr...> - 2010-06-18 14:54:55
|
Hi, I was wondering why the digest for a data graph is first hexadecimal encoded and then base 64 encoded (instead of only base 64 encoded like the signature for a warrant graph). I conclude this on basis of the code from NG4J 0.9.3. In de.fuberlin.wiwiss.ng4j.swp.util.SWPSignatureUtilities in the function protected static String calculateDigest( String dataInCanonicalForm, Node digestMethod ) on line 225 the following lines of code are present: res = Hex.encode( resBuf ); return new String(Base64.encodeBase64( res )) ; I suspect that this is a bug, am I correct? Greetings, Jaap Blom ________________________________ http://www.croon.nl/disclaimer http://www.croon.nl/inkoopvoorwaarden Kamer van Koophandel Rotterdam nr. / Chamber of Commerce Rotterdam no.: 24002312 |