add sha3sum calculation

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix sha3sum bugs

Signed-off-by: Mattias Andrée <maandree@operamail.com>