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
5package pkcs12
6
7import "errors"
8
9var (
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.
19type NotImplementedError string
20
21func (e NotImplementedError) Error() string {
22	return "pkcs12: " + string(e)
23}
24