Method and device for encryption / decryption based on the Montgomery method using efficient modular multiplication