[NTG-context] workaround for wrapping SHA512