From bcec0d0ddca049bc70bffd156e7aa57249dd667e Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 16 May 2014 16:09:07 +0200 Subject: Clarify DSS signature encoding. --- src/plop.erl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/plop.erl b/src/plop.erl index d62274a..0ba14cc 100644 --- a/src/plop.erl +++ b/src/plop.erl @@ -403,6 +403,9 @@ serialise(#signature{ algorithm = Algorithm, signature = Signature % DER encoded. }) -> + %% Encode a DSS signature according to RFC5246 section 4.7 and + %% don't forget that the signature is a vector as specified in + %% section 4.3 and has a length field. SigLen = size(Signature), [serialise(Algorithm), <