]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: remove bookkeeping code from pHash function
authorJoe Kyo <xunianzu@gmail.com>
Mon, 16 Oct 2017 06:25:14 +0000 (07:25 +0100)
committerFilippo Valsorda <hi@filippo.io>
Tue, 31 Oct 2017 19:11:03 +0000 (19:11 +0000)
commit54d04c2fcb7e1e0bebbedeeca6328fd0362254ce
tree483eaf3a420c51f951172206ea4a2daa9b3b0faf
parent622cfd88337a1f733a41119fabf2f01968ea6f52
crypto/tls: remove bookkeeping code from pHash function

Since copy function can figure out how many bytes of data to copy when
two slices have different length, it is not necessary to check how many
bytes need to copy each time before copying the data.

Change-Id: I5151ddfe46af5575566fe9c9a2648e111575ec3d
Reviewed-on: https://go-review.googlesource.com/71090
Reviewed-by: Filippo Valsorda <hi@filippo.io>
Run-TryBot: Filippo Valsorda <hi@filippo.io>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/tls/prf.go