URL
https://opencores.org/ocsvn/csa/csa/trunk
Subversion Repositories csa
Compare Revisions
- This comparison shows the changes necessary to convert path
/csa/trunk
- from Rev 46 to Rev 47
- ↔ Reverse comparison
Rev 46 → Rev 47
/makefile
1,7 → 1,7
MODULE=decrypt |
MODULE=key_schedule |
TEST_IN_FILE=test_dat/$(MODULE).in |
TEST_TIMES=1 |
DEBUG=y |
DEBUG=n |
|
all:bench sw_sim rtl |
|
37,6 → 37,18
done ; \ |
echo $$str >$(TEST_IN_FILE) |
|
preare_bin_fn = \ |
str="" ; \ |
for ((i=0;i<$1;i=i+1)); \ |
do \ |
n=$$(expr $$RANDOM % 256 ) ; \ |
binstr=$$(echo "ibase=10;obase=16;$$n"|bc) ; \ |
binstr=$$(echo "000: $$binstr " | xxd -r ); \ |
str+=$$binstr ; \ |
done ; \ |
echo -n $$str >$(TEST_IN_FILE) ; \ |
hexdump -C $(TEST_IN_FILE) ; |
|
preare_block_decypher: |
$(call preare_fn,64) |
|
44,7 → 56,7
$(call preare_fn,8) |
|
preare_key_schedule: |
$(call preare_fn,8) |
$(call preare_bin_fn,8) |
|
preare_decrypt: |
#$(call preare_fn,204) # evenkey + oddkey + ts pacted (188) |