Cryptosystems Using Error-correcting Codes Based on the Rank Metric