• David Symonds's avatar
    crypto/subtle: make ConstantTimeCompare return zero for args of different length. · 446bfffc
    David Symonds authored
    This is more useful than panicking, since otherwise every caller needs
    to do the length check before calling; some will forget, and have a
    potential submarine crasher as a result. Other implementations of this
    functionality do a length check.
    
    This is backward compatible, except if someone has written code that
    relies on this panicking with different length args. However, that was
    not the case before Go 1.3 either.
    
    Updates #7304.
    
    LGTM=agl
    R=agl, minux, hanwen
    CC=golang-codereviews
    https://golang.org/cl/118750043
    446bfffc
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
liblink Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
androidtest.bash Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
nacltest.bash Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...