mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
a2743dcaeb
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.
29 lines
707 B
Plaintext
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
|
|
|