Commit 6b8646a9 authored by Luc Libralesso's avatar Luc Libralesso
Browse files

add step by step midori128 testing

parent a6759aad
require 'minitest/autorun'
require_relative "../../cryptosystems/midori128/midori128.rb"
class TestMidori128 < Minitest::Unit::TestCase
def test_add_key()
# create DAG
dag =
# # simulate behavior
output = dag.simulate_behavior(
assert_equal(output, [
0x1e, 0xdf, 0x18, 0xe4,
0x0a, 0xf7, 0x01, 0xaf,
0xc4, 0x1b, 0xb7, 0xc8,
0xfd, 0x4c, 0x3e, 0x3d
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment