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

Method decrypt

authlib/jose/rfc7516/models.py:87–97  ·  view source on GitHub ↗

Decrypt the given cipher text. :param ciphertext: ciphertext in bytes :param aad: additional authenticated data in bytes :param iv: initialization vector in bytes :param tag: authentication tag in bytes :param key: encrypted key in bytes :return: mess

(self, ciphertext, aad, iv, tag, key)

Source from the content-addressed store, hash-verified

85 raise NotImplementedError
86
87 def decrypt(self, ciphertext, aad, iv, tag, key):
88 """Decrypt the given cipher text.
89
90 :param ciphertext: ciphertext in bytes
91 :param aad: additional authenticated data in bytes
92 :param iv: initialization vector in bytes
93 :param tag: authentication tag in bytes
94 :param key: encrypted key in bytes
95 :return: message
96 """
97 raise NotImplementedError
98
99
100class JWEZipAlgorithm:

Calls

no outgoing calls