diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-05-16 16:09:07 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-05-16 16:09:07 +0200 |
commit | bcec0d0ddca049bc70bffd156e7aa57249dd667e (patch) | |
tree | 8994821a4a34b417b67566e6e9a616fbf9a23c10 | |
parent | 5b5ff7c0ae0acbcc02a3f49bb4b949b1444cc516 (diff) |
Clarify DSS signature encoding.
-rw-r--r-- | src/plop.erl | 3 |
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, |