summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plop.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plop.erl b/src/plop.erl
index ab38c9b..eb16aa8 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),
<<SigLen:16,