Text this: Security analysis and improvement of two attribute-based signature schemes