コード例 #1
0
        public long Handshake(EncryptionSubject other)
        {
            var key = 1L;

            for (var i = 0; i < _loopSize; i++)
            {
                key = Transform(key, other.PublicKey);
            }

            return(key);
        }
コード例 #2
0
 public Solution(long publicKey1, long publicKey2)
 {
     _card = new EncryptionSubject(publicKey1);
     _door = new EncryptionSubject(publicKey2);
 }