private HandshakeRivestCipher(HandshakeRivestCipher source) { this.key = source.key.ToArray(); this.vector = source.vector.ToArray(); this.position = source.position; this.i = source.i; this.j = source.j; }
public HandshakeKey(HandshakeKeyOwnership ownership, byte[] secret, FileHash hash) { switch (ownership) { case HandshakeKeyOwnership.Initiator: inner = new HandshakeRivestCipher(Bytes.Hash("keyA", secret, hash.ToBytes()), 1024); break; case HandshakeKeyOwnership.Receiver: inner = new HandshakeRivestCipher(Bytes.Hash("keyB", secret, hash.ToBytes()), 1024); break; } }
private HandshakeKey(HandshakeRivestCipher key) { inner = key; }