summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-05-16 16:09:07 +0200
committerLinus Nordberg <linus@nordberg.se>2014-05-16 16:09:07 +0200
commitbcec0d0ddca049bc70bffd156e7aa57249dd667e (patch)
tree8994821a4a34b417b67566e6e9a616fbf9a23c10 /src/plop.erl
parent5b5ff7c0ae0acbcc02a3f49bb4b949b1444cc516 (diff)
Clarify DSS signature encoding.
Diffstat (limited to 'src/plop.erl')
-rw-r--r--src/plop.erl3
1 files changed, 3 insertions, 0 deletions
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),
<<SigLen:16,