diff options
| author | David Benjamin <davidben@google.com> | 2015-10-31 21:30:00 -0400 |
|---|---|---|
| committer | Adam Langley <agl@golang.org> | 2015-11-18 00:53:49 +0000 |
| commit | a3e7544ea843dd5a17cfeb02bc7774ca8a6eae42 (patch) | |
| tree | c14feb82ab61d52fdc3f7296e4b5fd34856198a3 /src/runtime | |
| parent | f4b4d2f4d9f574fe34b826bf0e6784956a247687 (diff) | |
| download | go-a3e7544ea843dd5a17cfeb02bc7774ca8a6eae42.tar.xz | |
encoding/asn1: enforce use of short form lengths.
BER allows the sender to choose either short form or long form where
both are legal, but DER requires the minimal one be used. Enforce this
and add a test. Fix one test which was not minimally-encoded and another
which would not distinguish rejecting the input because the long form
length wasn't minimally-encoded from rejecting it because long form was
chosen when short form was allowed.
Change-Id: I1b56fcca594dcdeddea9378b4fab427cbe7cd26d
Reviewed-on: https://go-review.googlesource.com/16517
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
