PHP 8.0.30
Preview: seed.rst Size: 937 B
/opt/alt/python37/share/doc/alt-python37-cryptography/docs/development/custom-vectors/seed.rst

SEED vector creation
=====================

This page documents the code that was used to generate the SEED CFB and OFB
test vectors as well as the code used to verify them against another
implementation. The vectors were generated using OpenSSL and verified
with `Botan`_.

Creation
--------

``cryptography`` was modified to support SEED in CFB and OFB modes. Then
the following python script was run to generate the vector files.

.. literalinclude:: /development/custom-vectors/seed/generate_seed.py

Download link: :download:`generate_seed.py
</development/custom-vectors/seed/generate_seed.py>`


Verification
------------

The following Python code was used to verify the vectors using the `Botan`_
project's Python bindings.

.. literalinclude:: /development/custom-vectors/seed/verify_seed.py

Download link: :download:`verify_seed.py
</development/custom-vectors/seed/verify_seed.py>`

.. _`Botan`: https://botan.randombit.net

Directory Contents

Dirs: 7 × Files: 7

Name Size Perms Modified Actions
arc4 DIR
- drwxr-xr-x 2021-10-11 07:57:09
Edit Download
cast5 DIR
- drwxr-xr-x 2021-10-11 07:57:09
Edit Download
hkdf DIR
- drwxr-xr-x 2021-10-11 07:57:09
Edit Download
idea DIR
- drwxr-xr-x 2021-10-11 07:57:09
Edit Download
- drwxr-xr-x 2021-10-11 07:57:09
Edit Download
secp256k1 DIR
- drwxr-xr-x 2021-10-11 07:57:09
Edit Download
seed DIR
- drwxr-xr-x 2021-10-11 07:57:09
Edit Download
834 B lrw-r--r-- 2018-07-18 11:21:39
Edit Download
996 B lrw-r--r-- 2018-07-18 11:21:39
Edit Download
752 B lrw-r--r-- 2018-07-18 11:21:39
Edit Download
949 B lrw-r--r-- 2018-07-18 11:21:39
Edit Download
1.68 KB lrw-r--r-- 2018-07-18 11:21:39
Edit Download
998 B lrw-r--r-- 2018-07-18 11:21:39
Edit Download
937 B lrw-r--r-- 2018-07-18 11:21:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).