-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SodiumException.Constructor
Andrew Lambert edited this page May 28, 2019
·
8 revisions
libsodium.SodiumException.Constructor
Sub Constructor(ErrorCode As Int32)| Name | Type | Comment |
|---|---|---|
| ErrorCode | Int32 | The error code. |
libsodium does not report error codes(!) These codes are defined by the binding:
-
ERR_INIT_FAILED: libsodium can not be initialized. -
ERR_UNAVAILABLE: libsodium is not installed. -
ERR_PROTECT_FAILED: Unable to set the protection level for the specified memory range. -
ERR_CANT_ALLOC: Unable to create a buffer of the requested size. -
ERR_TOO_LARGE: The data are too large for the buffer. -
ERR_READ_DENIED: The specified memory range is secured and can not be accessed. -
ERR_WRITE_DENIED: The specified memory range is secured and can not be modified. -
ERR_LOCK_DENIED: The specified memory lock can not be modified. -
ERR_INVALID_STATE: The requested operation is illegal in the current context. -
ERR_COMPUTATION_FAILED: The requested operation failed, possibly due to resource constraints. -
ERR_SIZE_MISMATCH: The requested operation expected input of a different length than what was provided. -
ERR_KEYGEN_FAILED: Generating a cryptographic key pair failed. -
ERR_KEYDERIVE_FAILED: Deriving a cryptographic key failed. -
ERR_OPSLIMIT: The OpsLimit parameter must be greater-than or equal-to 3. -
ERR_OUT_OF_RANGE: A parameter is invalid because it is outside the expected range. -
ERR_CONVERSION_FAILED: The requested key-type conversion failed. -
ERR_IMPORT_PASSWORD: The given password does not decrypt this exported key. -
ERR_IMPORT_ENCRYPTED: This exported key is password protected but no password was provided. -
ERR_WRONG_HALF: The ForeignKey class may not be used with the secret half of keypairs. -
ERR_OUT_OF_BOUNDS: The requested operation failed because it would have exceeded an allocation boundary. -
ERR_SIZE_REQUIRED: The requested operation cannot be performed on MemoryBlocks of unknown size. -
ERR_KEYTYPE_MISMATCH: The specified key is of a type that is not intended for the requested operation. -
ERR_PARAMETER_CONFLICT: Two or more parameters are mutually contradictory. -
ERR_IMPORT_INVALID: The data do not conform to the export format.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-26 Andrew Lambert, offered under the CC BY-SA 3.0 License.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication