/* Maximum length of cipher key */
u32 max_cipher_key_len; /* Maximum length of authenticated key */
u32 max_auth_key_len; /* Maximum size of per request */
u64 max_size;
/* Does the affinity hint is set for virtqueues? */ bool affinity_hint_set;
};
struct virtio_crypto_sym_session_info { /* Backend session id, which come from the host side */
__u64 session_id;
};
/* * Note: there are padding fields in request, clear them to zero before * sending to host to avoid to divulge any information. * Ex, virtio_crypto_ctrl_request::ctrl::u::destroy_session::padding[48]
*/ struct virtio_crypto_ctrl_request { struct virtio_crypto_op_ctrl_req ctrl; struct virtio_crypto_session_input input; struct virtio_crypto_inhdr ctrl_status; struct completion compl;
};
struct virtio_crypto_request; typedefvoid (*virtio_crypto_data_callback)
(struct virtio_crypto_request *vc_req, int len);
staticinlineint virtio_crypto_get_current_node(void)
{ int cpu, node;
cpu = get_cpu();
node = topology_physical_package_id(cpu);
put_cpu();
return node;
}
int virtio_crypto_skcipher_algs_register(struct virtio_crypto *vcrypto); void virtio_crypto_skcipher_algs_unregister(struct virtio_crypto *vcrypto); int virtio_crypto_akcipher_algs_register(struct virtio_crypto *vcrypto); void virtio_crypto_akcipher_algs_unregister(struct virtio_crypto *vcrypto); int virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[], unsignedint out_sgs, unsignedint in_sgs, struct virtio_crypto_ctrl_request *vc_ctrl_req);
#endif/* _VIRTIO_CRYPTO_COMMON_H */
Messung V0.5
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.