adding JH

This commit is contained in:
bg 2011-02-01 13:53:55 +01:00
parent 7ce0cfaf62
commit 4f19c43af8
162 changed files with 42012 additions and 132 deletions

View File

@ -1,6 +1,6 @@
/* aes.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes128_dec.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes128_enc.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes192_dec.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes192_enc.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes256_dec.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes256_enc.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes_dec.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes_enc.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes_invsbox.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes_keyschedule.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes_sbox.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-basic.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-cbc.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-cfb_bit.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-cbc.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-cmac.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-ctr.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-eax.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-ofb.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal-performance.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_aes128.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_aes192.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_aes256.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_camellia128.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_cast5.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_cast6.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_des.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_present.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_rc5.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_rc6.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_seed.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_serpent.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_skipjack.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_tdes.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_tdes2.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_threefis1024.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_threefis256.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_threefis512.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bcal_xtea.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* keysize_descriptor.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* blake_common.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* blake_large.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* blake_small.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* blockcipher_descriptor.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bmw_large.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* bmw_small.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* cubehash.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* aes_enc_round.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* gf256mul.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* groestl_large.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* groestl_small.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal-basic.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal-hmac.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal-nessie.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal-performance.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal-test.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_blake_large.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_blake_large.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_blake_small.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_blake_small.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_bmw_large.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_bmw_large.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_bmw_small.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_bmw_small.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_cubehash.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_echo.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_groestl_large.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_groestl_large.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_groestl_small.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_groestl_small.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

98
hfal/hfal_jh.c Normal file
View File

@ -0,0 +1,98 @@
/* hfal_jh.c */
/*
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* \file hfal_jh.c
* \email daniel.otte@rub.de
* \author Daniel Otte
* \date 2010-12-16
* \license GPLv3 or later
*
*/
#include <stdlib.h>
#include "hashfunction_descriptor.h"
#include "jh_simple.h"
static const char jh224_str[] = "JH-224";
static const char jh256_str[] = "JH-256";
static const char jh384_str[] = "JH-384";
static const char jh512_str[] = "JH-512";
const hfdesc_t jh224_desc = {
HFDESC_TYPE_HASHFUNCTION,
0,
jh224_str,
sizeof(jh_ctx_t),
JH224_BLOCKSIZE,
224,
(hf_init_fpt)jh224_init,
(hf_nextBlock_fpt)jh_nextBlock,
(hf_lastBlock_fpt)jh_lastBlock,
(hf_ctx2hash_fpt)jh224_ctx2hash,
(hf_free_fpt)NULL,
(hf_mem_fpt)NULL
};
const hfdesc_t jh256_desc = {
HFDESC_TYPE_HASHFUNCTION,
0,
jh256_str,
sizeof(jh_ctx_t),
JH256_BLOCKSIZE,
256,
(hf_init_fpt)jh256_init,
(hf_nextBlock_fpt)jh_nextBlock,
(hf_lastBlock_fpt)jh_lastBlock,
(hf_ctx2hash_fpt)jh256_ctx2hash,
(hf_free_fpt)NULL,
(hf_mem_fpt)NULL
};
const hfdesc_t jh384_desc = {
HFDESC_TYPE_HASHFUNCTION,
0,
jh384_str,
sizeof(jh_ctx_t),
JH384_BLOCKSIZE,
384,
(hf_init_fpt)jh384_init,
(hf_nextBlock_fpt)jh_nextBlock,
(hf_lastBlock_fpt)jh_lastBlock,
(hf_ctx2hash_fpt)jh384_ctx2hash,
(hf_free_fpt)NULL,
(hf_mem_fpt)NULL
};
const hfdesc_t jh512_desc = {
HFDESC_TYPE_HASHFUNCTION,
0,
jh512_str,
sizeof(jh_ctx_t),
JH512_BLOCKSIZE,
512,
(hf_init_fpt)jh512_init,
(hf_nextBlock_fpt)jh_nextBlock,
(hf_lastBlock_fpt)jh_lastBlock,
(hf_ctx2hash_fpt)jh512_ctx2hash,
(hf_free_fpt)NULL,
(hf_mem_fpt)NULL
};

31
hfal/hfal_jh.h Normal file
View File

@ -0,0 +1,31 @@
/* hfal_jh.h */
/*
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HFAL_JH_H_
#define HFAL_JH_H_
#include "hashfunction_descriptor.h"
extern const hfdesc_t jh224_desc;
extern const hfdesc_t jh256_desc;
extern const hfdesc_t jh384_desc;
extern const hfdesc_t jh512_desc;
#endif /* HFAL_JH_H_ */

View File

@ -1,6 +1,6 @@
/* hfal_keccak.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_keccak.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_md5.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_md5.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_sha1.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_sha1.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_sha256.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_sha256.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_shabal.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_shabal.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_skein1024.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_skein1024.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_skein256.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_skein256.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_skein512.c */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
/* hfal_skein512.h */
/*
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
#!/usr/bin/ruby
# bigint_test.rb
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
#!/usr/bin/ruby
# cmacvs_test.rb
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
#!/usr/bin/ruby
# create-algo-impl-relation.rb
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -2,7 +2,7 @@
# performnce to wiki
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
#!/usr/bin/ruby
# shavs_test.rb
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -2,7 +2,7 @@
# performnce to wiki
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
#!/usr/bin/ruby
# gcdext-test.rb
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
#!/usr/bin/ruby
# get_performance.rb
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
#!/usr/bin/ruby
# get_primes.rb
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

View File

@ -1,7 +1,7 @@
#!/usr/bin/ruby
# get_test.rb
=begin
This file is part of the AVR-Crypto-Lib.
This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify

Some files were not shown because too many files have changed in this diff Show More