unicorn/qemu
Daniel P. Berrange 5019f39c15
crypto: introduce new module for computing hash digests
Introduce a new crypto/ directory that will (eventually) contain
all the cryptographic related code. This initially defines a
wrapper for initializing gnutls and for computing hashes with
gnutls. The former ensures that gnutls is guaranteed to be
initialized exactly once in QEMU regardless of CLI args. The
block quorum code currently fails to initialize gnutls so it
only works by luck, if VNC server TLS is not requested. The
hash APIs avoids the need to litter the rest of the code with
preprocessor checks and simplifies callers by allocating the
correct amount of memory for the requested hash.

Backports commit ddbb0d09661f5fce21b335ba9aea8202d189b98e from qemu
2018-02-17 15:23:17 -05:00
..
crypto crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
default-configs
docs docs: clarify memory region lifecycle 2018-02-12 15:11:21 -05:00
fpu softfloat: expand out STATUS macro 2018-02-12 13:43:13 -05:00
hw qerror: Clean up QERR_ macros to expand into a single string 2018-02-17 15:23:09 -05:00
include crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
qapi qerror: Clean up QERR_ macros to expand into a single string 2018-02-17 15:23:09 -05:00
qobject qerror: Finally unused, clean up 2018-02-17 15:23:10 -05:00
qom qerror: Clean up QERR_ macros to expand into a single string 2018-02-17 15:23:09 -05:00
scripts
target-arm target-arm: Implement YIELD insn to yield in ARM and Thumb translators 2018-02-17 15:23:14 -05:00
target-i386 target-i386: avoid overflow in the tsc-frequency property 2018-02-17 15:23:17 -05:00
target-m68k m68k: remove useless parameter op_size from gen_lea_indexed() 2018-02-17 15:23:14 -05:00
target-mips target-mips: add mips32r6-generic CPU definition 2018-02-17 15:23:13 -05:00
target-sparc target-*: Increment num_insns immediately after tcg_gen_insn_start 2018-02-11 12:46:30 -05:00
tcg tcg/s390: fix branch target change during code retranslation 2018-02-17 15:23:17 -05:00
util bitmap: add atomic test and clear 2018-02-13 10:02:12 -05:00
aarch64.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
aarch64eb.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
accel.c
arm.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
armeb.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
CODING_STYLE
configure tcg: Drop ia64 host support 2018-02-04 18:33:02 -05:00
COPYING
COPYING.LIB
cpu-exec.c include/exec: Move tb hash functions out 2018-02-17 15:23:15 -05:00
cpus.c
cputlb.c memory: replace cpu_physical_memory_reset_dirty() with test-and-clear 2018-02-13 11:25:45 -05:00
exec.c exec: skip MMIO regions correctly in cpu_physical_memory_write_rom_internal 2018-02-17 15:23:16 -05:00
gen_all_header.sh
glib_compat.c crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
HACKING import 2015-08-21 15:04:50 +08:00
header_gen.py crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
ioport.c memory: Define API for MemoryRegionOps to take attrs and return status 2018-02-12 17:17:27 -05:00
LICENSE
m68k.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
Makefile
Makefile.objs crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
Makefile.target
memory_mapping.c memory_mapping: Rework cpu related includes 2018-02-17 15:23:15 -05:00
memory.c memory: Add global-locking property to memory regions 2018-02-17 15:23:16 -05:00
mips64.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
mips64el.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
mips.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
mipsel.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
powerpc.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
qapi-schema.json
qemu-log.c
qemu-timer.c timer is redundant 2017-01-20 16:46:58 +08:00
rules.mak
softmmu_template.h Add MemTxAttrs to the IOTLB 2018-02-12 18:38:38 -05:00
sparc64.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
sparc.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
tcg-runtime.c
translate-all.c include/exec: Move tb hash functions out 2018-02-17 15:23:15 -05:00
translate-all.h translate-all: remove unnecessary argument to tb_invalidate_phys_range 2018-02-13 09:04:51 -05:00
unicorn_common.h
VERSION
vl.c crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00
vl.h
x86_64.h crypto: introduce new module for computing hash digests 2018-02-17 15:23:17 -05:00