Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/authlib/authlib
/ check_iv
Method
check_iv
authlib/jose/rfc7516/models.py:72–74 ·
view source on GitHub ↗
(self, iv)
Source
from the content-addressed store, hash-verified
70
return
os.urandom(self.IV_SIZE // 8)
71
72
def
check_iv(self, iv):
73
if
len(iv) * 8 != self.IV_SIZE:
74
raise
ValueError(
'Invalid "iv" size'
)
75
76
def
encrypt(self, msg, aad, iv, key):
77
""
"Encrypt the given "
msg" text.
Callers
8
encrypt
Method · 0.80
decrypt
Method · 0.80
encrypt
Method · 0.80
decrypt
Method · 0.80
encrypt
Method · 0.80
decrypt
Method · 0.80
encrypt
Method · 0.80
decrypt
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected