(self, shared_key, fixed_info, bit_size)
| 239 | return alg_id + apu_info + apv_info + pub_info |
| 240 | |
| 241 | def compute_derived_key(self, shared_key, fixed_info, bit_size): |
| 242 | ckdf = ConcatKDFHash( |
| 243 | algorithm=hashes.SHA256(), |
| 244 | length=bit_size // 8, |
| 245 | otherinfo=fixed_info, |
| 246 | backend=default_backend(), |
| 247 | ) |
| 248 | return ckdf.derive(shared_key) |
| 249 | |
| 250 | def deliver(self, key, pubkey, headers, bit_size): |
| 251 | shared_key = key.exchange_shared_key(pubkey) |
no outgoing calls