Added support for HS256 and HS512 algorithms