[PATCH] Add support for SHA384 and SHA512