]> Git Repo - qemu.git/blob - qapi/crypto.json
crypto: add support for generating initialization vectors
[qemu.git] / qapi / crypto.json
1 # -*- Mode: Python -*-
2 #
3 # QAPI crypto definitions
4
5 ##
6 # QCryptoTLSCredsEndpoint:
7 #
8 # The type of network endpoint that will be using the credentials.
9 # Most types of credential require different setup / structures
10 # depending on whether they will be used in a server versus a
11 # client.
12 #
13 # @client: the network endpoint is acting as the client
14 #
15 # @server: the network endpoint is acting as the server
16 #
17 # Since: 2.5
18 ##
19 { 'enum': 'QCryptoTLSCredsEndpoint',
20   'prefix': 'QCRYPTO_TLS_CREDS_ENDPOINT',
21   'data': ['client', 'server']}
22
23
24 ##
25 # QCryptoSecretFormat:
26 #
27 # The data format that the secret is provided in
28 #
29 # @raw: raw bytes. When encoded in JSON only valid UTF-8 sequences can be used
30 # @base64: arbitrary base64 encoded binary data
31 # Since: 2.6
32 ##
33 { 'enum': 'QCryptoSecretFormat',
34   'prefix': 'QCRYPTO_SECRET_FORMAT',
35   'data': ['raw', 'base64']}
36
37
38 ##
39 # QCryptoHashAlgorithm:
40 #
41 # The supported algorithms for computing content digests
42 #
43 # @md5: MD5. Should not be used in any new code, legacy compat only
44 # @sha1: SHA-1. Should not be used in any new code, legacy compat only
45 # @sha256: SHA-256. Current recommended strong hash.
46 # Since: 2.6
47 ##
48 { 'enum': 'QCryptoHashAlgorithm',
49   'prefix': 'QCRYPTO_HASH_ALG',
50   'data': ['md5', 'sha1', 'sha256']}
51
52
53 ##
54 # QCryptoCipherAlgorithm:
55 #
56 # The supported algorithms for content encryption ciphers
57 #
58 # @aes-128: AES with 128 bit / 16 byte keys
59 # @aes-192: AES with 192 bit / 24 byte keys
60 # @aes-256: AES with 256 bit / 32 byte keys
61 # @des-rfb: RFB specific variant of single DES. Do not use except in VNC.
62 # Since: 2.6
63 ##
64 { 'enum': 'QCryptoCipherAlgorithm',
65   'prefix': 'QCRYPTO_CIPHER_ALG',
66   'data': ['aes-128', 'aes-192', 'aes-256', 'des-rfb']}
67
68
69 ##
70 # QCryptoCipherMode:
71 #
72 # The supported modes for content encryption ciphers
73 #
74 # @ecb: Electronic Code Book
75 # @cbc: Cipher Block Chaining
76 # Since: 2.6
77 ##
78 { 'enum': 'QCryptoCipherMode',
79   'prefix': 'QCRYPTO_CIPHER_MODE',
80   'data': ['ecb', 'cbc']}
81
82
83 ##
84 # QCryptoIVGenAlgorithm:
85 #
86 # The supported algorithms for generating initialization
87 # vectors for full disk encryption. The 'plain' generator
88 # should not be used for disks with sector numbers larger
89 # than 2^32, except where compatibility with pre-existing
90 # Linux dm-crypt volumes is required.
91 #
92 # @plain: 64-bit sector number truncated to 32-bits
93 # @plain64: 64-bit sector number
94 # @essiv: 64-bit sector number encrypted with a hash of the encryption key
95 # Since: 2.6
96 ##
97 { 'enum': 'QCryptoIVGenAlgorithm',
98   'prefix': 'QCRYPTO_IVGEN_ALG',
99   'data': ['plain', 'plain64', 'essiv']}
This page took 0.029247 seconds and 4 git commands to generate.