[Acc] [PATCH 3/4] digest: add ctx allocation check