Skip to content

key generation in ipt manager

The IPT manager generates the key material for introduction points. Specifically:

  1. K_hs_ipt_sid, which is Ipt.k_sid in ipt_mgr.rs (l.204 approx)
  2. K_hss_ntor, which is Ipt.k_hss_ntor.

These are generated in ipt_mgr.rs in make_new_ipt, near l.370.

Currently:

  1. k_sid is tor_hscrypto::pk::HsIntroPtSessionIdKeypair which I think is the right type.
  2. k_hss_ntor is a dummy struct NtorKeyPair which exists in ipt_mgr.rs and is covered in TODO HSS.

@nickm, I'd appreciate it if you'd:

  1. Confirm that k_sid is the right type
  2. Tell me what you think ought to be done about k_hss_ntor (in particular, what type ought to be used instead).

If you felt like it, you'd be very welcome to fix things by (1) if applicable changing the type of k_sid (2) deleting ipt_mgr::NtorKeyPair and replacing it with whatever it ought to be. I don't think that's likely to conflict with other stuff I'm doing in this file.