[IMP] compare_digest fallback