DaGenix / rust-crypto

A (mostly) pure-Rust implementation of various cryptographic algorithms.
Apache License 2.0
1.4k stars 297 forks source link

Sha256 streaming encryption #441

Open Anastasiya-Zhyrkevich opened 6 years ago

Anastasiya-Zhyrkevich commented 6 years ago

Is it possible to apply sha256 to streaming, to avoid keeping whole buffer in memory?

newpavlov commented 6 years ago

IIURC it's possible, but I would recommend to use sha2 crate instead. It supports streaming messages processing.

BTW, it's not encryption, but hashing. ;)