

(30 intermediate revisions not shown) 
Line 1: 
Line 1: 
  == List of Hash Functions ==  +  = Introduction = 
   
  On this page you can find a collection of existing hash functions.
 +  An [[Introduction to Hash Functionsintroduction]] to cryptographic hash functions. 
   
  [http://mediawiki.iaik.tugraz.at/index.php/HashFunctions Collection of Cryptographic Hash Functions]
 
   
  == Notation and Definition ==  +  = The Hash Function Zoo = 
   
  == Generic Attacks on Hash Functions ==
 +  The [[The Hash Function ZooHash Function Zoo]] is a collection of peerreviewed hash functions. 
   
  == Some How Tos ==
 +  The [[The SHA3 ZooSHA3 Zoo]] contains functions submitted to the [http://www.nist.gov/hashcompetition NIST Hash Competition]. We also collect [[SHA3_Hardware_Implementations  hardware implementation results]] of the candidates. 
   
  === Working with maths and Tex ===  +  = Generic Attacks on Hash Functions = 
   
  We can write "normal" latex equation by using the ''math'' class. For instance the following code
 
   
  <blockquote style="background: white; border: 1px solid black; padding: 1em;"><pre><nowiki>
 +  [[Generic_Attacks Generic Attacks on Hash Functions]]. 
  <math>
 +  
  {\textbf x}_{t} = {\textbf f}({x}_{t1},{u}_{t1},{p}_{t1})
 +  
  </math>
 +  
  </nowiki></pre></blockquote>
 +  
   
  is displayed as
 +  [[GenericAttacksMerkleDamgaard Generic Attacks on the MerkleDamgaard Construction]]. 
   
  <math>
 
  {\textbf x}_{t} = {\textbf f}({x}_{t1},{u}_{t1},{p}_{t1})
 
  </math>
 
   
  In order to use tex commands from the amsmath package we use the class ''amsmath''.
 +  = Editors corner = 
  Automated numbering of equations works within a single ''amsmath'' environment.
 +  
  The class amsmath uses the tex template defined in
 +  
  /var/www/html/mediawiki/extensions/wikitex/wikitex.math.inc.tex
 +  
   
  I changed the template such that we can define global commands. The template looks like
 +  [[HowTo  How to]] work with math environments and BibTeX. 
   
  <blockquote style="background: white; border: 1px solid black; padding: 1em;"><pre><nowiki>
 +  Mediawiki [http://www.mediawiki.org/wiki/Category:Help help], [http://www.mediawiki.org/wiki/Help:FAQ FAQ], and release [http://mail.wikipedia.org/mailman/listinfo/mediawikiannounce mailing list]. 
  \documentclass[10pt]{article}
 +  
  \usepackage{amssymb,amsmath,amscd,concmath}
 +  
  % we can define whatever comments we would like to use for consistency.
 +  
  % of course we have to somewhere list this special commands (may be we can use
 +  
  % a pop up with editiing help or somkething similar
 +  
  % for instance:
 +  
  \newcommand{\rs}{\ensuremath{\gg}} %right shift >>
 +  
  \newcommand{\ls}{\ensuremath{\ll}} %left shift <<
 +  
  \newcommand{\rr}{\ensuremath{\ggg}} %right rotate >>>
 +  
  \newcommand{\lr}{\ensuremath{\lll}} %left rotate <<<
 +  
  \pagestyle{empty}
 +  
  \begin{document}
 +  
  %value%
 +  
  \end{document}
 +  
  </nowiki></pre></blockquote>
 +  
   +  
  For instance:
 +  
   +  
  { align="center" border="1" cellpadding="10" cellspacing="0"
 +  
  
 +  
  !code fragment
 +  
  !displayed equation
 +  
  
 +  
  
 +  
  <pre><nowiki>
 +  
  <amsmath>
 +  
  \begin{equation}
 +  
  a = \sum_{i=0}^{n}{2^i}
 +  
  \end{equation}
 +  
  </amsmath>
 +  
  </nowiki></pre>
 +  
  
 +  
  <amsmath>
 +  
  \begin{equation}
 +  
  a = \sum_{i=0}^{n}{2^i}
 +  
  \end{equation}
 +  
  </amsmath>
 +  
  
 +  
  ! colspan="2" style="background:#ffdead;"  %value% in textemplate is \begin{equation}...\end{equation}
 +  
  }
 +  
   +  
   +  
   +  
  If we start a new ''amsmath'' environment then the equation numbering starts from counter=1 again. Start a new ''amsmath'' environment:
 +  
   +  
  <amsmath>
 +  
  \begin{equation}
 +  
  b = \sum_{i=0}^{n}{2^i}
 +  
  \end{equation}
 +  
  \begin{equation}
 +  
  a = \sum_{i=0}^{n}{2^i}
 +  
  \end{equation}
 +  
  \begin{eqnarray}
 +  
  a &\lr& b\\
 +  
  c &\rr& d\\
 +  
  e &\ls& f\\
 +  
  g &\rs& h
 +  
  \end{eqnarray}
 +  
  </amsmath>
 +  
   +  
  as we see both envrionments start with 1.
 +  
   +  
  '''Note: so far I have no idea how to refer to an equation <math>\dots</math>'''
 +  
   +  
  If we use math inline then we have the following possibilities:
 +  
   +  
  * Best know attack: 2<sup>63</sup> by Wang et.al. using html: <pre><nowiki>2<sup>63</sup></nowiki></pre>
 +  
  * Best know attack: <amsmath>\begin{displaymath}2^{63}\end{displaymath}</amsmath> by Wang et.al. using amsmath <pre><nowiki><amsmath>\begin{displaymath}2^{63}\end{displaymath}</amsmath></nowiki></pre>
 +  
  * Best know attack: <math>2^{63}</math> by Wang et.al. using math <pre><nowiki><math>2^{63}</math></nowiki></pre>
 +  
   +  
   +  
  I think the first case looks best regarding the inline alignment. So I would suggest to use html for powers.
 +  
   +  
  === About different skins ===
 +  
  Every user can define his own skin. Nevertheless, it turnes out the the skin influences the alignment of inline amsmath environments. If we use the standard skin, namely MonoBook (default) then the alignment is pretty ok.
 +  
   +  
  therefore, I suggest to keep this skin as default.
 +  
   +  
   +  
  [http://mediawiki.iaik.tugraz.at/index.php/Testpage1 Testpage1]
 +  
   +  
  == Getting started ==
 +  
   +  
  * [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]
 +  
  * [http://mail.wikipedia.org/mailman/listinfo/mediawikiannounce MediaWiki release mailing list]
 +  
   
   