library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; entity repro3 is end ; architecture beh of repro3 is begin process variable foo, bar : std_logic; begin (foo, bar) := "10"; -- crashes wait; end process; end architecture; mail/cryptography/atom/docs/development/custom-vectors/seed.rst?h=master' type='application/atom+xml'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development/custom-vectors/seed.rst
blob: 290fb77a499c9c13eeddce3dd2d6f3b5bc01675f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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`: http://botan.randombit.net