MD5 Builder: Rework for unqiue_ptr instead of malloc for internal dynamic buffers. by lrodorigo · Pull Request #7208 · esp8266/Arduino (original) (raw)

In order to guarantee exception-safety I used unique_ptr to uint8_t[], with std::nothrow decorator.
I cannot mark the functions as no-except because I don't know if the called functions (especially the Stream implementations) are no-except.

I also fixed the const-correctness of const member functions, such as toString() and getters.

I executed the host tests, I still need to run tests on the ESP8266, but this is the first time that I contribute with you, so I have to study how to setup and run your tests suite on my device.