OpenCores
URL https://opencores.org/ocsvn/simpletousesha2/simpletousesha2/trunk

Subversion Repositories simpletousesha2

[/] [simpletousesha2/] [trunk/] [src/] [sha256pkg.vhd] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 shadow7853
library ieee;
2
use ieee.std_logic_1164.all;
3
use ieee.numeric_std.all;
4
library work;
5
 
6
-- SHA-256 Constants Package
7
 
8
package shaPkg is
9
 
10
  constant CW     : integer := 8;         -- CLOCK MSG CHUNK WIDTH
11
  constant CLENBIT: integer := 4;         -- CLOCK MSG CHUNK WIDTH BIT --(SE 0 = CW ALTRIMENTI < CW)
12
  constant WW     : integer := 32;        -- WORD WIDTH
13
  constant STBIT  : integer := 6;         -- STEP COUNTER BIT
14
  constant STMAX  : integer := 64;        -- STEP NUMBER
15
  constant OS     : integer := 256;       -- OUTPUT SIZE
16
  constant WOUT   : integer := 8;         -- OUTPUT WORDS
17
  constant ISS    : integer := 256;       -- INTERNAL STATE SIZE
18
  constant BS     : integer := 512;       -- BLOCK SIZE
19
  constant WBLK   : integer := 16;        -- WORD IN BLOCK
20
  constant LENBIT : integer := 9;         -- MAX BLOCK LENGTH SIZE (EXPONENT)
21
  constant MSGBIT : integer := 64;        -- MAX MSG SIZE (EXPONENT)
22
 
23
  -- INITIAL HASH VALUE
24
 
25
  constant HASH0  : unsigned(0 to WW-1) := x"6a09e667";
26
  constant HASH1  : unsigned(0 to WW-1) := x"bb67ae85";
27
  constant HASH2  : unsigned(0 to WW-1) := x"3c6ef372";
28
  constant HASH3  : unsigned(0 to WW-1) := x"a54ff53a";
29
  constant HASH4  : unsigned(0 to WW-1) := x"510e527f";
30
  constant HASH5  : unsigned(0 to WW-1) := x"9b05688c";
31
  constant HASH6  : unsigned(0 to WW-1) := x"1f83d9ab";
32
  constant HASH7  : unsigned(0 to WW-1) := x"5be0cd19";
33
 
34
end shaPkg;

powered by: WebSVN 2.1.0

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