# The eHash Main Page

(Difference between revisions)
 Revision as of 08:35, 12 October 2006 (view source)Nobbi (Talk | contribs)← Older edit Revision as of 14:01, 13 October 2006 (view source)Nobbi (Talk | contribs) (→Working with maths and Tex)Newer edit → Line 98: Line 98: '''Note: so far I have no idea how to refer to an equation $\dots$''' '''Note: so far I have no idea how to refer to an equation $\dots$''' + + If we use math inline then we have the following possibilities: + + * Best know attack: 263 by Wang et.al. using html:
263
+ * Best know attack: \begin{displaymath}2^{63}\end{displaymath} by Wang et.al. using amsmath
\begin{displaymath}2^{63}\end{displaymath}
+ * Best know attack: $2^{63}$ by Wang et.al. using math
$2^{63}$
+ + + I think the first case looks best regarding the inline alignment. So I would suggest to use html for powers. + + + [http://mediawiki.iaik.tugraz.at/index.php/Testpage1 Testpage1] [http://mediawiki.iaik.tugraz.at/index.php/Testpage1 Testpage1]

## 1 List of Hash Functions

On this page you can find a collection of existing hash functions.

## 4 Some How Tos

### 4.1 Working with maths and Tex

We can write "normal" latex equation by using the math class. For instance the following code

${\textbf x}_{t} = {\textbf f}({x}_{t-1},{u}_{t-1},{p}_{t-1})$


is displayed as

${\textbf x}_{t} = {\textbf f}({x}_{t-1},{u}_{t-1},{p}_{t-1})$

In order to use tex commands from the amsmath package we use the class amsmath. 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

 \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}


For instance:

code fragment displayed equation
 <amsmath>
$$a = \sum_{i=0}^{n}{2^i}$$
</amsmath>



%value% in tex-template is $$...$$

If we start a new amsmath environment then the equation numbering starts from counter=1 again. Start a new amsmath environment:

Note: so far I have no idea how to refer to an equation $\dots$

If we use math inline then we have the following possibilities:

• Best know attack: 263 by Wang et.al. using html:
2<sup>63</sup>
• Best know attack: by Wang et.al. using amsmath
<amsmath>\begin{displaymath}2^{63}\end{displaymath}</amsmath>
• Best know attack: 263 by Wang et.al. using math
$2^{63}$

I think the first case looks best regarding the inline alignment. So I would suggest to use html for powers.

## 5 Getting started

ECRYPT is a Network of Excellence within the Information Societies Technology (IST) Programme of the European Commission. The information on this web site is provided as is, and no guarantee or warranty is given or implied that the information is fit for any particular purpose. The user thereof uses the information at his or her sole risk and liability.