genode/repos/gems/run/aes_cbc_4k.run
Norman Feske a2743dcaeb Library for the AES-CBC en/decryption of 4K blocks
The 'aes_cbc_4k' library is simple wrapper around libsparkcrypto to
serve as a backend for storage encryption. It operates on data chunks of
4 KiB and uses AES-CBC while incorporating the block number and the
private key as salt values.
2019-04-09 12:30:35 +02:00

29 lines
707 B
Plaintext

build "core init test/aes_cbc_4k"
create_boot_directory
install_config {
<config>
<parent-provides>
<service name="LOG"/>
<service name="PD"/>
<service name="CPU"/>
<service name="ROM"/>
</parent-provides>
<default-route> <any-service> <parent/> </any-service> </default-route>
<default caps="100"/>
<start name="test-aes_cbc_4k">
<resource name="RAM" quantum="2M"/>
</start>
</config>}
exec echo -n "Not for the public" > [run_dir]/genode/plaintext
exec echo -n "Better kept private" > [run_dir]/genode/key
build_boot_image "core ld.lib.so spark.lib.so libsparkcrypto.lib.so init test-aes_cbc_4k"
append qemu_args "-nographic "
run_genode_until "Test succeeded.*\n" 20