MCPcopy Create free account
hub / github.com/authlib/authlib / prepare_key

Method prepare_key

authlib/jose/drafts/_jwe_algorithms.py:33–36  ·  view source on GitHub ↗
(self, raw_data)

Source from the content-addressed store, hash-verified

31 self.aeskw = AESAlgorithm(key_size)
32
33 def prepare_key(self, raw_data):
34 if isinstance(raw_data, self.ALLOWED_KEY_CLS):
35 return raw_data
36 return ECKey.import_key(raw_data)
37
38 def generate_preset(self, enc_alg, key):
39 epk = self._generate_ephemeral_key(key)

Callers 2

_wrap_cekMethod · 0.45
unwrapMethod · 0.45

Calls 1

import_keyMethod · 0.45

Tested by

no test coverage detected