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

IDEA vector creation
=====================

This page documents the code that was used to generate the IDEA CBC, 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 IDEA in CBC, CFB, and OFB modes. Then
the following python script was run to generate the vector files.

.. literalinclude:: /development/custom-vectors/idea/generate_idea.py

Download link: :download:`generate_idea.py
</development/custom-vectors/idea/generate_idea.py>`


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

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

.. literalinclude:: /development/custom-vectors/idea/verify_idea.py

Download link: :download:`verify_idea.py
</development/custom-vectors/idea/verify_idea.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).