virtio crypto device specification
PATCH 1/1 virtio crypto device specification
Fix spelling mistakes of keywords to make xelatex happy:
filed--->field
--- virtio-crypto.tex | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
virtio-crypto.tex +9 -9
@@ -159,7 +159,7 @@ More algorithms will be defined in the future. \begin{itemize*} \item The driver MUST read the ready \field{status} from the bottom bit of status to check whether the hardware-backed implementation is ready or not, and the driver MUST reread it after the device reset. -\item The driver MUST NOT transmit any packets to the device if the ready \filed{status} is not set. +\item The driver MUST NOT transmit any packets to the device if the ready \field{status} is not set. \item The driver MAY read \field{max_dataqueues} field to discover the number of data queues the device supports. \item The driver MUST read \field{crypto_services} field to discover which services the device is able to offer. \item The driver MUST read the detailed algorithms fields based on \field{crypto_services} field.
@@ -634,7 +634,7 @@ The driver MUST set \field{src_data}.\field{flag} to ~VIRTIO_CRYPTO_IOVEC_F_NEXT \devicenormative{\subparagraph}{HASH Service Operation}{Device Types / Crypto Device / Device Operation / Data Virtqueue / HASH Service Operation} -The device MUST copy the results of HASH operations to the guest memory recorded by \field{digest_result_addr} filed in struct virtio_crypto_hash_input. +The device MUST copy the results of HASH operations to the guest memory recorded by \field{digest_result_addr} field in struct virtio_crypto_hash_input. The device MUST set \field{status} in strut virtio_crypto_hash_input: VIRTIO_CRYPTO_OP_OK: success; VIRTIO_CRYPTO_OP_ERR: creation failed or device error; VIRTIO_CRYPTO_OP_NOTSUPP: not support. \paragraph{MAC Service Operation}\label{sec:Device Types / Crypto Device / Device Operation / Data Virtqueue / MAC Service Operation}
@@ -685,7 +685,7 @@ The driver MUST set \field{hash_output}.\field{src_data}.\field{flag} to ~VIRTIO \devicenormative{\subparagraph}{MAC Service Operation}{Device Types / Crypto Device / Device Operation / Data Virtqueue / MAC Service Operation} -The device MUST copy the results of MAC operations to the guest memory recorded by \field{digest_result_addr} filed in struct virtio_crypto_mac_input. +The device MUST copy the results of MAC operations to the guest memory recorded by \field{digest_result_addr} field in struct virtio_crypto_mac_input. The device MUST set \field{status} in strut virtio_crypto_mac_input: VIRTIO_CRYPTO_OP_OK: success; VIRTIO_CRYPTO_OP_ERR: creation failed or device error; VIRTIO_CRYPTO_OP_NOTSUPP: not support. \paragraph{Symmetric algorithms Operation}\label{sec:Device Types / Crypto Device / Device Operation / Data Virtqueue / Symmetric algorithms Operation}
@@ -813,9 +813,9 @@ The device MUST parse the virtio_crypto_sym_data_req based on the \field{op_code The device SHOULD only parse fields of struct virtio_crypto_cipher_data_req in struct virtio_crypto_sym_data_req if the created session is VIRTIO_CRYPTO_SYM_OP_CIPHER type. The device MUST parse fields of both struct virtio_crypto_cipher_data_req and struct virtio_crypto_mac_data_req in struct virtio_crypto_sym_data_req if the created session is of the VIRTIO_CRYPTO_SYM_OP_ALGORITHM_CHAINING operation type and in the VIRTIO_CRYPTO_SYM_HASH_MODE_AUTH mode. -The device MUST copy the result of cryptographic operation to the guest memory recorded by \filed{dst_data}.\field{addr} filed in struct virtio_crypto_cipher_input in plain CIPHER mode. -The device MUST copy the result of HASH/MAC operation to the guest memory recorded by \filed{digest_result_addr} filed in struct virtio_crypto_alg_chain_data_input is of the VIRTIO_CRYPTO_SYM_OP_ALGORITHM_CHAINING type. -The device MUST set the \filed{status} field in strut virtio_crypto_cipher_input or virtio_crypto_alg_chain_data_input structure: +The device MUST copy the result of cryptographic operation to the guest memory recorded by \field{dst_data}.\field{addr} field in struct virtio_crypto_cipher_input in plain CIPHER mode. +The device MUST copy the result of HASH/MAC operation to the guest memory recorded by \field{digest_result_addr} field in struct virtio_crypto_alg_chain_data_input is of the VIRTIO_CRYPTO_SYM_OP_ALGORITHM_CHAINING type. +The device MUST set the \field{status} field in strut virtio_crypto_cipher_input or virtio_crypto_alg_chain_data_input structure: VIRTIO_CRYPTO_OP_OK: success; VIRTIO_CRYPTO_OP_ERR: creation failed or device error; VIRTIO_CRYPTO_OP_NOTSUPP: not supported. \subparagraph{Steps of Operation}\label{sec:Device Types / Crypto Device / Device Operation / Data Virtqueue / Symmetric algorithms Operation / Steps of Operation}
@@ -936,7 +936,7 @@ The driver MUST set \field{src_data}.\field{flag} to ~VIRTIO_CRYPTO_IOVEC_F_NEXT \devicenormative{\subparagraph}{AEAD Service Operation}{Device Types / Crypto Device / Device Operation / Data Virtqueue / AEAD Service Operation} The device MUST parse the virtio_crypto_aead_data_req based on the \field{op_code} in general header. -The device MUST copy the result of cryptographic operation to the guest memory recorded by \filed{dst_data}.\field{addr} filed in struct virtio_crypto_aead_input. -The device MUST copy the digest result to the guest memory recorded by \filed{digest_result_addr} filed in struct virtio_crypto_aead_input. -The device MUST set the \filed{status} field in strut virtio_crypto_aead_input: VIRTIO_CRYPTO_OP_OK: success; VIRTIO_CRYPTO_OP_ERR: creation failed or device error; VIRTIO_CRYPTO_OP_NOTSUPP: not supported. +The device MUST copy the result of cryptographic operation to the guest memory recorded by \field{dst_data}.\field{addr} field in struct virtio_crypto_aead_input. +The device MUST copy the digest result to the guest memory recorded by \field{digest_result_addr} field in struct virtio_crypto_aead_input. +The device MUST set the \field{status} field in strut virtio_crypto_aead_input: VIRTIO_CRYPTO_OP_OK: success; VIRTIO_CRYPTO_OP_ERR: creation failed or device error; VIRTIO_CRYPTO_OP_NOTSUPP: not supported. When the \field{op_code} is VIRTIO_CRYPTO_AEAD_DECRYPT, the device MUST verify and return the verification result to the driver, and if the verification result is incorrect, VIRTIO_CRYPTO_OP_BADMSG (bad message) MUST be returned to the driver.
Signature · 1 line
1.9.3
Quoted 11 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Xin Zeng
Sent: Tuesday, September 20, 2016 11:47 PM
Subject: [virtio-dev] [PATCH] virtio crypto device specificationFix spelling mistakes of keywords to make xelatex happy:
filed--->field
Oops, my typos, thank you. :)
Regards,
-Gonglei
Quoted 126 lines
Signed-off-by Xin Zeng <[email protected]>--- virtio-crypto.tex | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)virtio-crypto.tex +0
-0@@ -159,7 +159,7 @@ More algorithms will be defined in the future. \begin{itemize*} \item The driver MUST read the ready \field{status} from the bottom bit ofstatus to check whether the hardware-backed
implementation is ready or not, and the driver MUST reread it after
the device reset.
-\item The driver MUST NOT transmit any packets to the device if the ready \filed{status} is not set.
+\item The driver MUST NOT transmit any packets to the device if the ready \field{status} is not set.
\item The driver MAY read \field{max_dataqueues} field to discover the
number of data queues the device supports.
\item The driver MUST read \field{crypto_services} field to discover which
services the device is able to offer.
\item The driver MUST read the detailed algorithms fields based on
\field{crypto_services} field.virtio-crypto.tex +0
-0@@ -634,7 +634,7 @@ The driver MUST set \field{src_data}.\field{flag} to~VIRTIO_CRYPTO_IOVEC_F_NEXT
\devicenormative{\subparagraph}{HASH Service Operation}{Device Types /
Crypto Device / Device Operation / Data Virtqueue / HASH Service Operation}-The device MUST copy the results of HASH operations to the guest memory recorded by \field{digest_result_addr} filed in struct
virtio_crypto_hash_input. +The device MUST copy the results of HASH operations to the guest memory recorded by \field{digest_result_addr} field in structvirtio_crypto_hash_input.
The device MUST set \field{status} in strutvirtio_crypto_hash_input:VIRTIO_CRYPTO_OP_OK: success;VIRTIO_CRYPTO_OP_ERR: creation failed or device error;VIRTIO_CRYPTO_OP_NOTSUPP: not support.\paragraph{MAC Service Operation}\label{sec:Device Types / Crypto Device /
Device Operation / Data Virtqueue / MAC Service Operation}virtio-crypto.tex +0
-0@@ -685,7 +685,7 @@ The driver MUST set\field{hash_output}.\field{src_data}.\field{flag} to ~VIRTIO
\devicenormative{\subparagraph}{MAC Service Operation}{Device Types /
Crypto Device / Device Operation / Data Virtqueue / MAC Service Operation}-The device MUST copy the results of MAC operations to the guest memory recorded by \field{digest_result_addr} filed in struct
virtio_crypto_mac_input. +The device MUST copy the results of MAC operations to the guest memory recorded by \field{digest_result_addr} field in structvirtio_crypto_mac_input.
The device MUST set \field{status} in strutvirtio_crypto_mac_input:VIRTIO_CRYPTO_OP_OK: success;VIRTIO_CRYPTO_OP_ERR: creation failed or device error;VIRTIO_CRYPTO_OP_NOTSUPP: not support.\paragraph{Symmetric algorithms Operation}\label{sec:Device Types / Crypto
Device / Device Operation / Data Virtqueue / Symmetric algorithms Operation}virtio-crypto.tex +0
-0@@ -813,9 +813,9 @@ The device MUST parse the
virtio_crypto_sym_data_reqbased on the \field{op_code
The device SHOULD only parse fields of structvirtio_crypto_cipher_data_req
in structvirtio_crypto_sym_data_reqif the created session isVIRTIO_CRYPTO_SYM_OP_CIPHERtype.
The device MUST parse fields of both structvirtio_crypto_cipher_data_req
and structvirtio_crypto_mac_data_reqin structvirtio_crypto_sym_data_reqif the created
session is of theVIRTIO_CRYPTO_SYM_OP_ALGORITHM_CHAINING
operation type and in theVIRTIO_CRYPTO_SYM_HASH_MODE_AUTHmode. -The device MUST copy the result of cryptographic operation to the guest memory recorded by \filed{dst_data}.\field{addr} filed in structvirtio_crypto_cipher_inputin plain CIPHER mode.
-The device MUST copy the result of HASH/MAC operation to the guest memory recorded by \filed{digest_result_addr} filed in structvirtio_crypto_alg_chain_data_inputis of theVIRTIO_CRYPTO_SYM_OP_ALGORITHM_CHAININGtype.
-The device MUST set the \filed{status} field in strutvirtio_crypto_cipher_inputorvirtio_crypto_alg_chain_data_inputstructure:
+The device MUST copy the result of cryptographic operation to the guest memory recorded by \field{dst_data}.\field{addr} field in structvirtio_crypto_cipher_inputin plain CIPHER mode.
+The device MUST copy the result of HASH/MAC operation to the guest memory recorded by \field{digest_result_addr} field in structvirtio_crypto_alg_chain_data_inputis of theVIRTIO_CRYPTO_SYM_OP_ALGORITHM_CHAININGtype.
+The device MUST set the \field{status} field in strutvirtio_crypto_cipher_inputorvirtio_crypto_alg_chain_data_inputstructure:
VIRTIO_CRYPTO_OP_OK: success;VIRTIO_CRYPTO_OP_ERR: creation failed
or device error;VIRTIO_CRYPTO_OP_NOTSUPP: not supported.\subparagraph{Steps of Operation}\label{sec:Device Types / Crypto Device /
Device Operation / Data Virtqueue / Symmetric algorithms Operation / Steps of Operation}virtio-crypto.tex +0
-0@@ -936,7 +936,7 @@ The driver MUST set \field{src_data}.\field{flag} to~VIRTIO_CRYPTO_IOVEC_F_NEXT
\devicenormative{\subparagraph}{AEAD Service Operation}{Device Types /
Crypto Device / Device Operation / Data Virtqueue / AEAD Service Operation}The device MUST parse the
virtio_crypto_aead_data_reqbased on the
\field{op_code} in general header.
-The device MUST copy the result of cryptographic operation to the guest memory recorded by \filed{dst_data}.\field{addr} filed in structvirtio_crypto_aead_input.
-The device MUST copy the digest result to the guest memory recorded by \filed{digest_result_addr} filed in structvirtio_crypto_aead_input. -The device MUST set the \filed{status} field in strutvirtio_crypto_aead_input:VIRTIO_CRYPTO_OP_OK: success;VIRTIO_CRYPTO_OP_ERR: creation failed or device error;VIRTIO_CRYPTO_OP_NOTSUPP: not supported.
+The device MUST copy the result of cryptographic operation to the guest memory recorded by \field{dst_data}.\field{addr} field in structvirtio_crypto_aead_input.
+The device MUST copy the digest result to the guest memory recorded by \field{digest_result_addr} field in structvirtio_crypto_aead_input. +The device MUST set the \field{status} field in strutvirtio_crypto_aead_input:VIRTIO_CRYPTO_OP_OK: success;VIRTIO_CRYPTO_OP_ERR: creation failed or device error;VIRTIO_CRYPTO_OP_NOTSUPP: not supported.
When the \field{op_code} isVIRTIO_CRYPTO_AEAD_DECRYPT, the device
MUST verify and return the verification result to the driver, and if the verification result is incorrect,VIRTIO_CRYPTO_OP_BADMSG(bad message) MUST be returned to the driver.
\ No newline at end of file
--
1.9.3---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]