Expand description
CMS RC2 key wrapping as specified by RFC 3217, over the tc_rc_cipher
RC2 engine, with SHA-1 integrity and the tc_key_wrap contracts.
Wrapping needs an IV and random padding, drawn from a caller-supplied
generator, and unwrapping copies the input, so the crate needs an
allocator and rand_core. RC2 is provided for interoperability with
existing formats and is not suitable for new designs.
Structs§
- Rc2Wrap
Engine - CMS RC2 key wrapping (RFC 3217) with SHA-1 integrity and random padding.
- Rc2Wrap
Params Owned - Owned RC2 key-encryption key, effective key size and optional IV, wiped on drop.
- Rc2Wrap
Params Ref - Borrowed RC2 key-encryption key, effective key size and optional IV.
Type Aliases§
- Rc2Wrap
Error - CMS RC2 key-wrap operation error.
- Rc2Wrap
Init Error - CMS RC2 key-wrapper initialization error.