MCPcopy Index your code
hub / github.com/authlib/authlib / compute_derived_key

Method compute_derived_key

authlib/jose/rfc7518/jwe_algs.py:241–248  ·  view source on GitHub ↗
(self, shared_key, fixed_info, bit_size)

Source from the content-addressed store, hash-verified

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)

Calls

no outgoing calls