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

Method __init__

authlib/jose/drafts/_jwe_enc_cryptodome.py:18–22  ·  view source on GitHub ↗
(self, key_size)

Source from the content-addressed store, hash-verified

16 IV_SIZE = 192
17
18 def __init__(self, key_size):
19 self.name = "XC20P"
20 self.description = "XChaCha20-Poly1305"
21 self.key_size = key_size
22 self.CEK_SIZE = key_size
23
24 def encrypt(self, msg, aad, iv, key):
25 """Content Encryption with AEAD_XCHACHA20_POLY1305.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected