mirror of https://github.com/perkeep/perkeep.git
Fix redundant cast.
This commit is contained in:
parent
bfcc2ae8f5
commit
97df8d6caa
|
@ -322,8 +322,7 @@ func readPublicKeyPacket(r io.Reader, length uint16) (pk PublicKeyPacket, err os
|
||||||
|
|
||||||
// RFC 4880, section 12.2
|
// RFC 4880, section 12.2
|
||||||
fprint := sha1.New()
|
fprint := sha1.New()
|
||||||
fprint.Write([]byte{'\x99', uint8(length >> 8),
|
fprint.Write([]byte{'\x99', uint8(length >> 8), uint8(length)})
|
||||||
uint8(length & 0xff)})
|
|
||||||
fprint.Write(buf[0:6]) // version, timestamp, algorithm
|
fprint.Write(buf[0:6]) // version, timestamp, algorithm
|
||||||
|
|
||||||
pk.CreationTime = uint32(buf[1]) << 24 |
|
pk.CreationTime = uint32(buf[1]) << 24 |
|
||||||
|
|
Loading…
Reference in New Issue