public I2PLeaseInfo(I2PDestinationInfo di) { PublicKey = di.Destination.PublicKey; PrivateKey = di.PrivateKey; PrivateSigningKey = di.PrivateSigningKey; PublicSigningKey = di.Destination.SigningPublicKey; }
public I2PDestinationInfo(BufRef reader) { Certificate = new I2PCertificate(reader); PrivateKey = new I2PPrivateKey(reader, Certificate); PublicKey = new I2PPublicKey(reader, Certificate); PrivateSigningKey = new I2PSigningPrivateKey(reader, Certificate); PublicSigningKey = new I2PSigningPublicKey(reader, Certificate); }
public I2PKeysAndCert(I2PPublicKey pubkey, I2PSigningPublicKey signkey) { Data = new BufLen(new byte[RecordSize(signkey.Certificate)]); Data.Randomize(); Certificate = signkey.Certificate; PublicKey = pubkey; SigningPublicKey = signkey; }
public I2PDestinationInfo(string base64) { var reader = new BufRefLen(FreenetBase64.Decode(base64)); Certificate = new I2PCertificate(reader); PrivateKey = new I2PPrivateKey(reader, Certificate); PublicKey = new I2PPublicKey(reader, Certificate); PrivateSigningKey = new I2PSigningPrivateKey(reader, Certificate); PublicSigningKey = new I2PSigningPublicKey(reader, Certificate); }
public I2PLeaseInfo( I2PPublicKey pubkey, I2PSigningPublicKey spubkey, I2PPrivateKey privkey, I2PSigningPrivateKey sprivkey) { PublicKey = pubkey; PrivateKey = privkey; PrivateSigningKey = sprivkey; PublicSigningKey = spubkey; }
public I2PDestinationInfo(I2PSigningKey.SigningKeyTypes signkeytype) { Certificate = new I2PCertificate(signkeytype); var keys = I2PPrivateKey.GetNewKeyPair(); PublicKey = keys.PublicKey; PrivateKey = keys.PrivateKey; PrivateSigningKey = new I2PSigningPrivateKey(Certificate); PublicSigningKey = new I2PSigningPublicKey(PrivateSigningKey); }
public I2PLeaseSet(I2PKeysAndCert dest, IEnumerable <I2PLease> leases, I2PLeaseInfo info) { Destination = dest; Leases = new List <I2PLease>(); if (leases != null) { Leases.AddRange(leases); } Info = info; PublicKey = info.PublicKey; PublicSigningKey = info.PublicSigningKey; }
public I2PDestinationInfo( I2PCertificate cert, I2PPublicKey pubkey, I2PSigningPublicKey spubkey, I2PPrivateKey privkey, I2PSigningPrivateKey sprivkey) { Certificate = cert; PublicKey = pubkey; PrivateKey = privkey; PrivateSigningKey = sprivkey; PublicSigningKey = spubkey; }
public I2PLeaseSet(BufRef reader) { Destination = new I2PDestination(reader); PublicKey = new I2PPublicKey(reader, I2PKeyType.DefaultAsymetricKeyCert); PublicSigningKey = new I2PSigningPublicKey(reader, Destination.Certificate); var leases = new List <I2PLease>(); int leasecount = reader.Read8(); for (int i = 0; i < leasecount; ++i) { leases.Add(new I2PLease(reader)); } Leases = leases; Signature = new I2PSignature(reader, Destination.Certificate); }
public I2PRouterIdentity(I2PPublicKey pubkey, I2PSigningPublicKey signkey) : base(pubkey, signkey) { }
public I2PDestination(I2PPublicKey pubkey, I2PSigningPublicKey signkey) : base(pubkey, signkey) { }