You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
751 B

  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. package pkcs12
  5. import "errors"
  6. var (
  7. // ErrDecryption represents a failure to decrypt the input.
  8. ErrDecryption = errors.New("pkcs12: decryption error, incorrect padding")
  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. // NotImplementedError indicates that the input is not currently supported.
  14. type NotImplementedError string
  15. func (e NotImplementedError) Error() string {
  16. return "pkcs12: " + string(e)
  17. }