Module utils

Source
Expand description

Utilities for Tink Rust code.

Some of these utilities are not idiomatic Rust, but are included to make the process of translating code from other languages (e.g. Go) easier.

Structs§

TinkError
Error type for errors emitted by Tink. Note that errors from cryptographic operations are necessarily uninformative, to avoid information leakage.

Functions§

wrap_err
Wrap an error with an additional message. This utility is intended to help with porting Go code to Rust, to cover patterns like: