roaes

Crates.ioroaes
lib.rsroaes
version0.1.2
sourcesrc
created_at2021-11-12 20:51:11.934378
updated_at2021-11-12 23:21:02.996278
descriptionRust implementation of openaes file format.
homepage
repositoryhttps://github.com/moschroe/roaes
max_upload_size
id481104
size47,949
Moe (moschroe)

documentation

README

roaes

Disclaimer: Neither this project, nor the author, are in any way associated with Team Win or Team Win Recovery Project (TWRP). No infringement on or claim over the aforementioned terms is made or intended.

Library

Library implementing the openaes standard used by the Team Win Recovery Project (TWRP), as of 2018-08-24.

There are both implementations for reading (decrypting) and writing (encrypting) data. The intention is to make encrypted TWRP backups accessible or even facilitate re-compression with a different/more modern algorithm.

Beware

All cryptographic code is re-used from libraries of the wider ecosystem. No assessment as to their quality or suitability has been made beyond testing basic compliance with sample files!

Binary

The executable roaes will decrypt and encrypt the openaes format. It uses very simple command line parsing. Running the command without any parameter will print its usage information.

USAGE: roaes enc|dev <key>

decrypts files encrypted in CBC mode with the TWRP-flavoured oaes binary
reads stdin and writes to stdout, expects encryption key as single argument

Data is read from standard input and written to standard output. No file handles are opened at all. To process data, use appropriate shell mechanisms like roaes enc somekey < plaintext.file > ciphertext.file.

Setting the environment variable RUST_LOG to one of trace, debug, info, warn or error might reveal information about internal state (though neither plaintext, ciphertext nor key material).

Commit count: 8

cargo fmt