Skip to main content

Crate tc_rc2_wrap

Crate tc_rc2_wrap 

Source
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§

Rc2WrapEngine
CMS RC2 key wrapping (RFC 3217) with SHA-1 integrity and random padding.
Rc2WrapParamsOwned
Owned RC2 key-encryption key, effective key size and optional IV, wiped on drop.
Rc2WrapParamsRef
Borrowed RC2 key-encryption key, effective key size and optional IV.

Type Aliases§

Rc2WrapError
CMS RC2 key-wrap operation error.
Rc2WrapInitError
CMS RC2 key-wrapper initialization error.