Lines Matching +full:qemu +full:- +full:x86
2 * QEMU Crypto anti-forensic splitter
4 * Copyright (c) 2015-2016 Red Hat, Inc.
21 #include "qemu/osdep.h"
56 "\x86\xaa\x89\x7f\x1f\x9f\xdb\x86"
62 "\xba\x3d\xc6\x4a\x28\xfa\xe2\x86"
112 return 'a' + (i - 10); in hex()
133 size_t splitlen = data->blocklen * data->stripes; in test_afsplit()
135 uint8_t *key = g_new0(uint8_t, data->blocklen); in test_afsplit()
138 /* First time we round-trip the key */ in test_afsplit()
139 qcrypto_afsplit_encode(data->hash, in test_afsplit()
140 data->blocklen, data->stripes, in test_afsplit()
141 data->key, splitkey, in test_afsplit()
144 qcrypto_afsplit_decode(data->hash, in test_afsplit()
145 data->blocklen, data->stripes, in test_afsplit()
149 expect = hex_string(data->key, data->blocklen); in test_afsplit()
150 actual = hex_string(key, data->blocklen); in test_afsplit()
158 if (data->splitkey) { in test_afsplit()
159 memset(key, 0, data->blocklen); in test_afsplit()
161 qcrypto_afsplit_decode(data->hash, in test_afsplit()
162 data->blocklen, data->stripes, in test_afsplit()
163 data->splitkey, key, in test_afsplit()
166 expect = hex_string(data->key, data->blocklen); in test_afsplit()
167 actual = hex_string(key, data->blocklen); in test_afsplit()