github.com/yoctocloud/packer@v0.6.2-0.20160520224004-e11a0a18423f/builder/azure/pkcs12/errors.go (about) 1 package pkcs12 2 3 import "errors" 4 5 var ( 6 // ErrDecryption represents a failure to decrypt the input. 7 ErrDecryption = errors.New("pkcs12: decryption error, incorrect padding") 8 9 // ErrIncorrectPassword is returned when an incorrect password is detected. 10 // Usually, P12/PFX data is signed to be able to verify the password. 11 ErrIncorrectPassword = errors.New("pkcs12: decryption password incorrect") 12 ) 13 14 // NotImplementedError indicates that the input is not currently supported. 15 type NotImplementedError string 16 type EncodeError string 17 18 func (e NotImplementedError) Error() string { 19 return string(e) 20 } 21 22 func (e EncodeError) Error() string { 23 return "pkcs12: encode error: " + string(e) 24 }