Complete digest and signature implementation.