spelling: unmarshalling

This commit is contained in:
Josh Soref 2018-03-14 03:27:22 +00:00
parent 3b694feabc
commit 33f90d7783
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ const (
)
// unmarshal calls asn1.Unmarshal, but also returns an error if there is any
// trailing data after unmarshaling.
// trailing data after unmarshalling.
func unmarshal(in []byte, out interface{}) error {
trailing, err := asn1.Unmarshal(in, out)
if err != nil {

View File

@ -83,7 +83,7 @@ func decodePkcs8ShroudedKeyBag(asn1Data, password []byte) (privateKey interface{
ret := new(asn1.RawValue)
if err = unmarshal(pkData, ret); err != nil {
return nil, errors.New("pkcs12: error unmarshaling decrypted private key: " + err.Error())
return nil, errors.New("pkcs12: error unmarshalling decrypted private key: " + err.Error())
}
if privateKey, err = x509.ParsePKCS8PrivateKey(pkData); err != nil {