File: pycrypto.py

package info (click to toggle)
bandit 1.7.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,864 kB
  • sloc: python: 19,727; makefile: 23; sh: 14
file content (11 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
from Crypto.Cipher import AES
from Crypto import Random

from . import CryptoMaterialsCacheEntry


def test_pycrypto():
    key = b'Sixteen byte key'
    iv = Random.new().read(AES.block_size)
    cipher = pycrypto_arc2.new(key, AES.MODE_CFB, iv)
    factory = CryptoMaterialsCacheEntry()