OpenCores
URL https://opencores.org/ocsvn/camellia-vhdl/camellia-vhdl/trunk

Subversion Repositories camellia-vhdl

[/] [camellia-vhdl/] [trunk/] [looping/] [sbox2.vhd] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 pfulgoni
 
2
--------------------------------------------------------------------------------
3
-- Designer:      Paolo Fulgoni <pfulgoni@opencores.org>
4
--
5
-- Create Date:   01/22/2008
6
-- Last Update:   01/22/2008
7
-- Project Name:  camellia-vhdl
8
-- Description:   Asynchronous SBOX2
9
--
10
-- Copyright (C) 2008  Paolo Fulgoni
11
-- This file is part of camellia-vhdl.
12
-- camellia-vhdl is free software; you can redistribute it and/or modify
13
-- it under the terms of the GNU General Public License as published by
14
-- the Free Software Foundation; either version 3 of the License, or
15
-- (at your option) any later version.
16
-- camellia-vhdl is distributed in the hope that it will be useful,
17
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
18
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
-- GNU General Public License for more details.
20
-- You should have received a copy of the GNU General Public License
21
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
--
23
-- The Camellia cipher algorithm is 128 bit cipher developed by NTT and
24
-- Mitsubishi Electric researchers.
25
-- http://info.isl.ntt.co.jp/crypt/eng/camellia/
26
--------------------------------------------------------------------------------
27
library IEEE;
28
use IEEE.std_logic_1164.all;
29
 
30
 
31
entity SBOX2 is
32
    port  (
33
            data_in  : IN STD_LOGIC_VECTOR(0 to 7);
34
            data_out : OUT STD_LOGIC_VECTOR(0 to 7)
35
            );
36
end SBOX2;
37
 
38
architecture RTL of SBOX2 is
39
 
40
    component SBOX1 is
41
        port  (
42
               data_in  : IN STD_LOGIC_VECTOR(0 to 7);
43
               data_out : OUT STD_LOGIC_VECTOR(0 to 7)
44
                );
45
    end component;
46
 
47
    -- SBOX1 signals
48
    signal s1_data_in  : STD_LOGIC_VECTOR(0 to 7);
49
    signal s1_data_out : STD_LOGIC_VECTOR(0 to 7);
50
 
51
begin
52
 
53
    S1 : SBOX1
54
        port map(s1_data_in, s1_data_out);
55
 
56
    s1_data_in <= data_in;
57
    data_out <= s1_data_out(1 to 7) & s1_data_out(0);
58
 
59
end RTL;

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.