Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Noise.ErrorSourceErrors returned across all Noise API boundaries.
No Noise operation raises exceptions for protocol-level failures; every failure path returns an ('a, t) result.
type t = | Decrypt_failedAEAD authentication tag did not match; the ciphertext is corrupt or the wrong key was used.
*)| Nonce_exhaustedThe per-direction nonce counter has reached its maximum value (2^64 - 1).
*)| Invalid_state of stringAn operation was called in the wrong phase, such as write_message after the handshake is complete, or transport before it has finished.
| Bad_message_length of {}A message exceeds 65535 bytes.
*)| Bad_psk of stringThe pre-shared keys do not match the pattern's PSK tokens, or one is not 32 bytes.
*)| Unsupported_primitive of stringThe protocol name references an unimplemented DH function, cipher, or hash.
*)| DH_error of stringA Diffie-Hellman operation failed.
*)Pretty-printer, suitable for Format.printf "%a" Error.pp e.