• David Benjamin's avatar
    encoding/asn1: enforce use of short form lengths. · a3e7544e
    David Benjamin authored
    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/16517Reviewed-by: 's avatarAdam Langley <agl@golang.org>
    Run-TryBot: Adam Langley <agl@golang.org>
    a3e7544e
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...