Delayed-input cryptographic protocols