File: test_mceliece460896f.py

package info (click to toggle)
python-mceliece 0~20241009.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: python: 491; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 200 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
from mceliece import mceliece460896f


def test_mceliece460896f():
    pk, sk = mceliece460896f.keypair()
    c, k1 = mceliece460896f.enc(pk)
    k2 = mceliece460896f.dec(c, sk)
    assert (k1 == k2)