interfaz
Last change
on this file was
130b818,
checked in by aaraujo <aaraujo@…>, 8 years ago
|
Documentación inicial de los archivos fuentes.
|
-
Property mode set to
100644
|
File size:
658 bytes
|
Rev | Line | |
---|
[b939736] | 1 | #pragma once |
---|
| 2 | |
---|
| 3 | #include <cstdio> |
---|
| 4 | #include "types.h" |
---|
| 5 | #include "resource.h" |
---|
| 6 | |
---|
| 7 | namespace hash_nm { |
---|
[130b818] | 8 | |
---|
| 9 | /** |
---|
| 10 | * @brief Funcion hash GOST 34.11-2012 (stribog) |
---|
| 11 | * |
---|
| 12 | * Esta función hash se encuentra en la última actualización del estándar ruso. |
---|
| 13 | * |
---|
| 14 | * @param buf |
---|
| 15 | * @param size |
---|
| 16 | * @param mode |
---|
| 17 | * @return hash |
---|
| 18 | */ |
---|
| 19 | block512_t hash(char *buf, size_t size, hash_mode_t mode = hm512); |
---|
| 20 | |
---|
| 21 | /** |
---|
| 22 | * @brief Prepara la tabla para realizar cálculos de la función hash |
---|
| 23 | * |
---|
| 24 | * Esta función debe ejecutarse para que se pueda utilizar el algoritmo de hash. |
---|
| 25 | * |
---|
| 26 | */ |
---|
[b939736] | 27 | void precalc_mul_table(); |
---|
| 28 | |
---|
| 29 | // #include "hash.hpp" |
---|
| 30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.