An in-process AEAD: encrypt(key, nonce, plaintext, aad) gives the
ciphertext and tag; decrypt gives the plaintext, or None when the
tag does not match.
Attributes#
| Attribute | Type | Description |
|---|---|---|
encrypt | Callable[[bytes, bytes, bytes, bytes], bytes] | |
decrypt | Callable[[bytes, bytes, bytes, bytes], bytes | None] |
Functions#
__init__#
__init__(encrypt, decrypt) -> None| Parameter | Type | Description |
|---|---|---|
encrypt | Callable[[bytes, bytes, bytes, bytes], bytes] | |
decrypt | Callable[[bytes, bytes, bytes, bytes], bytes | None] |