File: aes.py

package info (click to toggle)
python-snitun 0.45.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 664 kB
  • sloc: python: 6,681; sh: 5; makefile: 3
file content (10 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
"""AES helper functions."""

from __future__ import annotations

import os


def generate_aes_keyset() -> tuple[bytes, bytes]:
    """Generate AES key + IV for CBC."""
    return (os.urandom(32), os.urandom(16))