tc_tea
Rusty implementation of Tencent modified TEA (tc_tea).
Test data generated using its C++ implementation: tc_tea.cpp (BSD-3-Clause).
Code implemented according to the spec described in iweizime/StepChanger:腾讯 TEA 加密算法.
Features
random(default:on): Enable RNG when generating padding bytes for tc_tea.random_secure(default:on): Use a secure RNG when generating padding bytes for tc_tea.
If you don't expect to encrypt anything, you can specify default-features = false to drop RNG support.
In this case, it will use a pre-generated deterministic salt.
Install
Add the following to [dependencies] section in your Cargo.toml file:
= "0.2"
Usage
use tc_tea;
License
Dual licensed under MIT OR Apache-2.0 license.
SPDX-License-Identifier: MIT OR Apache-2.0