]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/openpgp/packet: comment typo fix.
authorAdam Langley <agl@golang.org>
Sat, 19 Feb 2011 15:41:57 +0000 (10:41 -0500)
committerAdam Langley <agl@golang.org>
Sat, 19 Feb 2011 15:41:57 +0000 (10:41 -0500)
R=rsc
CC=golang-dev
https://golang.org/cl/4178065

src/pkg/crypto/openpgp/packet/encrypted_key.go
src/pkg/crypto/openpgp/packet/literal.go
src/pkg/crypto/openpgp/packet/packet.go

index 4a926cdb1109da0e39891dba256bd7176d814282..b11a9b8301af696910e2ac5d1db9f72a45ad4c2a 100644 (file)
@@ -20,8 +20,8 @@ type EncryptedKey struct {
        KeyId      uint64
        Algo       PublicKeyAlgorithm
        Encrypted  []byte
-       CipherFunc CipherFunction // only valid after a sucessful Decrypt
-       Key        []byte         // only valid after a sucessful Decrypt
+       CipherFunc CipherFunction // only valid after a successful Decrypt
+       Key        []byte         // only valid after a successful Decrypt
 }
 
 func (e *EncryptedKey) parse(r io.Reader) (err os.Error) {
index 5f72d6a2cd3229ecf69675910d8e8c07d29dbdf5..04f50e53e130da9ecfcbeddf98f9679e43ece29f 100644 (file)
@@ -14,11 +14,11 @@ import (
 type LiteralData struct {
        IsBinary bool
        FileName string
-       Time     uint32 // Unix epoc time. Either creation time or modification time. 0 means undefined.
+       Time     uint32 // Unix epoch time. Either creation time or modification time. 0 means undefined.
        Body     io.Reader
 }
 
-// ForEyesOnly return whether the contents of the LiteralData have been marked
+// ForEyesOnly returns whether the contents of the LiteralData have been marked
 // as especially sensitive.
 func (l *LiteralData) ForEyesOnly() bool {
        return l.FileName == "_CONSOLE"
index 80e25e250f291c30a475411e0d1afb7e493e56d6..be8ce75f5f16a2bf1d2ec847152e58007ac78a26 100644 (file)
@@ -300,7 +300,7 @@ type SignatureType uint8
 
 const (
        SigTypeBinary        SignatureType = 0
-       SigTypeText          SignatureType = 1
+       SigTypeText          = 1
        SigTypeGenericCert   = 0x10
        SigTypePersonaCert   = 0x11
        SigTypeCasualCert    = 0x12