Arduino secure

patched file sha1.cpp and sha256.cpp (changed write function: now it
returns size_t value)