type golang.org/x/crypto/openpgp/errors.InvalidArgumentError
41 uses
golang.org/x/crypto/openpgp/errors (current package)
errors.go#L30: type InvalidArgumentError string
errors.go#L32: func (i InvalidArgumentError) Error() string {
golang.org/x/crypto/openpgp
keys.go#L239: return nil, errors.InvalidArgumentError("no armored data found")
keys.go#L245: return nil, errors.InvalidArgumentError("expected public or private key block, got: " + block.Type)
keys.go#L516: return nil, errors.InvalidArgumentError("user id field contained invalid characters")
keys.go#L671: return errors.InvalidArgumentError("signing Entity must have a private key")
keys.go#L674: return errors.InvalidArgumentError("signing Entity's private key must be decrypted")
keys.go#L678: return errors.InvalidArgumentError("given identity string not found in Entity")
read.go#L31: return nil, errors.InvalidArgumentError("expected '" + expectedType + "', got: " + block.Type)
write.go#L64: return errors.InvalidArgumentError("signing key doesn't have a private key")
write.go#L67: return errors.InvalidArgumentError("signing key is encrypted")
write.go#L177: return nil, errors.InvalidArgumentError("no valid signing keys")
write.go#L181: return nil, errors.InvalidArgumentError("no private key in signing key")
write.go#L184: return nil, errors.InvalidArgumentError("signing key must be decrypted")
write.go#L212: return nil, errors.InvalidArgumentError("cannot encrypt because no candidate hash functions are compiled in. (Wanted " + name + " in this case.)")
write.go#L262: return nil, errors.InvalidArgumentError("no encryption recipient provided")
write.go#L290: return nil, errors.InvalidArgumentError("cannot encrypt a message to key id " + strconv.FormatUint(to[i].PrimaryKey.KeyId, 16) + " because it has no encryption keys")
write.go#L308: return nil, errors.InvalidArgumentError("cannot encrypt because recipient set shares no common algorithms")
write.go#L347: return nil, errors.InvalidArgumentError("no signer provided")
golang.org/x/crypto/openpgp/packet
encrypted_key.go#L90: err = errors.InvalidArgumentError("cannot decrypted encrypted session key with private key of type " + strconv.Itoa(int(priv.PubKeyAlgo)))
encrypted_key.go#L117: return errors.InvalidArgumentError("don't know how to serialize encrypted key type " + strconv.Itoa(int(e.Algo)))
encrypted_key.go#L160: return errors.InvalidArgumentError("cannot encrypt to public key of type " + strconv.Itoa(int(pub.PubKeyAlgo)))
encrypted_key.go#L169: return errors.InvalidArgumentError("RSA encryption failed: " + err.Error())
encrypted_key.go#L188: return errors.InvalidArgumentError("ElGamal encryption failed: " + err.Error())
private_key.go#L177: err = errors.InvalidArgumentError("unknown private key type")
public_key.go#L494: return errors.InvalidArgumentError("bad public-key algorithm")
public_key.go#L506: return errors.InvalidArgumentError("public key cannot generate signatures")
public_key.go#L517: return errors.InvalidArgumentError("public key and signature use different algorithms")
public_key.go#L554: return errors.InvalidArgumentError("public key cannot generate signatures")
public_key.go#L568: return errors.InvalidArgumentError("public key and signature use different algorithms")
public_key.go#L750: err = errors.InvalidArgumentError("bad public-key algorithm")
public_key_v3.go#L180: return errors.InvalidArgumentError("bad public-key algorithm")
public_key_v3.go#L192: return errors.InvalidArgumentError("public key cannot generate signatures")
public_key_v3.go#L206: return errors.InvalidArgumentError("public key and signature use different algorithms")
public_key_v3.go#L276: err = errors.InvalidArgumentError("bad public-key algorithm")
signature.go#L480: return errors.InvalidArgumentError("hash cannot be represented in OpenPGP: " + strconv.Itoa(int(sig.Hash)))
signature.go#L604: return errors.InvalidArgumentError("Signature: need to call Sign, SignUserId or SignKey before Serialize")
signature_v3.go#L134: return errors.InvalidArgumentError("Signature: need to call Sign, SignUserId or SignKey before Serialize")
symmetrically_encrypted.go#L53: return nil, errors.InvalidArgumentError("SymmetricallyEncrypted: incorrect key length")
symmetrically_encrypted.go#L63: return nil, errors.InvalidArgumentError("can't try ciphers with different block lengths")
symmetrically_encrypted.go#L258: return nil, errors.InvalidArgumentError("SymmetricallyEncrypted.Serialize: bad key length")
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |