public EncryptedVoterData(CipherText voternumber, CipherText cpr, CipherText ballotstatus) : this() { VoterNumber = voternumber; CPR = cpr; BallotStatus = ballotstatus; }
/// <summary> /// May I have a new Message? /// </summary> /// <param name="symmetricKey">The asymetrically-encrypted symmetric key.</param> /// <param name="content">The content of the message. Should be a symmetrically encrypted command.</param> /// <param name="senderHash">The asymetrically-encrypted sender-hash of the content.</param> /// <param name="iv">The initilization-vector for the content.</param> public Message(CipherText symmetricKey, CipherText content, CipherText senderHash, byte[] iv) : this() { Contract.Requires(iv != null); SymmetricKey = symmetricKey; Command = content; SenderHash = senderHash; Iv = iv; }