Generic interface for cryptographic operations
