github.com/mitchellh/packer@v1.3.2/builder/azure/pkcs12/errors.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package pkcs12 6 7 import "errors" 8 9 var ( 10 // ErrDecryption represents a failure to decrypt the input. 11 ErrDecryption = errors.New("pkcs12: decryption error, incorrect padding") 12 13 // ErrIncorrectPassword is returned when an incorrect password is detected. 14 // Usually, P12/PFX data is signed to be able to verify the password. 15 ErrIncorrectPassword = errors.New("pkcs12: decryption password incorrect") 16 ) 17 18 // NotImplementedError indicates that the input is not currently supported. 19 type NotImplementedError string 20 type EncodeError string 21 22 func (e NotImplementedError) Error() string { 23 return "pkcs12: " + string(e) 24 } 25 26 func (e EncodeError) Error() string { 27 return "pkcs12: encode error: " + string(e) 28 }