tiny sha1 implementation

from Paul E. Jones <paulej@packetizer.com>