gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/xcrypto/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  
    21  func (e NotImplementedError) Error() string {
    22  	return "pkcs12: " + string(e)
    23  }