No need to create a stream for updating, there's already nsICryptoHash.update(string, len)
http://mxr.mozilla.org/mozilla-central/source/netwerk/base/public/nsICryptoHash.idl#67