search for: atfm

Displaying 20 results from an estimated 37 matches for "atfm".

Did you mean: afm
2019 Oct 14
0
[PATCH 03/25] crypto: virtio - switch to skcipher API
...-476,93 +477,93 @@ __virtio_crypto_ablkcipher_do_req(struct virtio_crypto_sym_request *vc_sym_req, return err; } -static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +static int virtio_crypto_skcipher_encrypt(struct skcipher_request *req) { - struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); - struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct crypto_skcipher *atfm = crypto_skcipher_reqtfm(req); + struct virtio_crypto_skcipher_ctx *ctx = crypto_skcipher_ctx(atfm); struct virtio_crypto_sym_request *vc_sym_req = - ablkci...
2019 Oct 24
0
[PATCH v2 03/27] crypto: virtio - switch to skcipher API
...-476,93 +477,93 @@ __virtio_crypto_ablkcipher_do_req(struct virtio_crypto_sym_request *vc_sym_req, return err; } -static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +static int virtio_crypto_skcipher_encrypt(struct skcipher_request *req) { - struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); - struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct crypto_skcipher *atfm = crypto_skcipher_reqtfm(req); + struct virtio_crypto_skcipher_ctx *ctx = crypto_skcipher_ctx(atfm); struct virtio_crypto_sym_request *vc_sym_req = - ablkci...
2016 Dec 27
1
[PATCH] virtio-crypto: support crypto engine framework
...->encrypt) { req_data->header.session_id = cpu_to_le64(ctx->enc_sess_info.session_id); req_data->header.opcode = @@ -424,19 +423,15 @@ static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); struct virtio_crypto *vcrypto = ctx->vcrypto; - int ret; /* Use the first data virtqueue as default */ struct data_queue *data_vq = &vcrypto->data_vq[0]; vc_req->ablkcipher_ctx = ctx; vc_req->ablkcip...
2016 Dec 27
1
[PATCH] virtio-crypto: support crypto engine framework
...->encrypt) { req_data->header.session_id = cpu_to_le64(ctx->enc_sess_info.session_id); req_data->header.opcode = @@ -424,19 +423,15 @@ static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); struct virtio_crypto *vcrypto = ctx->vcrypto; - int ret; /* Use the first data virtqueue as default */ struct data_queue *data_vq = &vcrypto->data_vq[0]; vc_req->ablkcipher_ctx = ctx; vc_req->ablkcip...
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...gs); > + if (unlikely(err < 0)) > + goto free; > + > + return 0; > + > +free: > + kfree(req_data); > + kfree(sgs); > + return err; > +} > + > +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) > +{ > + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); > + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); > + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); > + struct virtio_crypto *vcrypto = ctx->vcrypto; > + int ret; > + /* Use the first data virtqueue a...
2016 Nov 27
2
[PATCH v2 2/2] crypto: add virtio-crypto driver
...gs); > + if (unlikely(err < 0)) > + goto free; > + > + return 0; > + > +free: > + kfree(req_data); > + kfree(sgs); > + return err; > +} > + > +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) > +{ > + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); > + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); > + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); > + struct virtio_crypto *vcrypto = ctx->vcrypto; > + int ret; > + /* Use the first data virtqueue a...
2016 Nov 28
0
[virtio-dev] Re: [PATCH v2 2/2] crypto: add virtio-crypto driver
...; > + > > + return 0; > > + > > +free: > > + kfree(req_data); > > + kfree(sgs); > > + return err; > > +} > > + > > +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) > > +{ > > + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); > > + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); > > + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); > > + struct virtio_crypto *vcrypto = ctx->vcrypto; > > + int ret; > > + /* Use t...
2016 Nov 22
0
[PATCH v2 2/2] crypto: add virtio-crypto driver
..._req, GFP_ATOMIC); + spin_unlock_irqrestore(&vcrypto->lock, flags); + if (unlikely(err < 0)) + goto free; + + return 0; + +free: + kfree(req_data); + kfree(sgs); + return err; +} + +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +{ + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); + struct virtio_crypto *vcrypto = ctx->vcrypto; + int ret; + /* Use the first data virtqueue as default */ + struct dat...
2016 Nov 28
0
[PATCH v3] crypto: add virtio-crypto driver
..._req, GFP_ATOMIC); + spin_unlock_irqrestore(&vcrypto->lock, flags); + if (unlikely(err < 0)) + goto free; + + return 0; + +free: + kfree(req_data); + kfree(sgs); + return err; +} + +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +{ + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); + struct virtio_crypto *vcrypto = ctx->vcrypto; + int ret; + /* Use the first data virtqueue as default */ + struct dat...
2016 Nov 29
0
[PATCH v4 1/1] crypto: add virtio-crypto driver
..._req, GFP_ATOMIC); + spin_unlock_irqrestore(&vcrypto->lock, flags); + if (unlikely(err < 0)) + goto free; + + return 0; + +free: + kfree(req_data); + kfree(sgs); + return err; +} + +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +{ + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); + struct virtio_crypto *vcrypto = ctx->vcrypto; + int ret; + /* Use the first data virtqueue as default */ + struct dat...
2016 Nov 28
5
[PATCH v3] crypto: add virtio-crypto driver
...gs); > + if (unlikely(err < 0)) > + goto free; > + > + return 0; > + > +free: > + kfree(req_data); > + kfree(sgs); > + return err; > +} > + > +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) > +{ > + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); > + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); > + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); > + struct virtio_crypto *vcrypto = ctx->vcrypto; > + int ret; > + /* Use the first data virtqueue a...
2016 Nov 28
5
[PATCH v3] crypto: add virtio-crypto driver
...gs); > + if (unlikely(err < 0)) > + goto free; > + > + return 0; > + > +free: > + kfree(req_data); > + kfree(sgs); > + return err; > +} > + > +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) > +{ > + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); > + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); > + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); > + struct virtio_crypto *vcrypto = ctx->vcrypto; > + int ret; > + /* Use the first data virtqueue a...
2016 Dec 01
0
[PATCH v5 1/1] crypto: add virtio-crypto driver
...lock_irqrestore(&vcrypto->lock, flags); + if (unlikely(err < 0)) + goto free_iv; + + return 0; + +free_iv: + kzfree(iv); +free: + kzfree(req_data); + kfree(sgs); + return err; +} + +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +{ + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); + struct virtio_crypto *vcrypto = ctx->vcrypto; + int ret; + /* Use the first data virtqueue as default */ + struct dat...
2016 Dec 08
0
[PATCH v6 2/2] crypto: add virtio-crypto driver
...lock_irqrestore(&vcrypto->lock, flags); + if (unlikely(err < 0)) + goto free_iv; + + return 0; + +free_iv: + kzfree(iv); +free: + kzfree(req_data); + kfree(sgs); + return err; +} + +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +{ + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); + struct virtio_crypto *vcrypto = ctx->vcrypto; + int ret; + /* Use the first data virtqueue as default */ + struct dat...
2016 Dec 14
0
[PATCH v7 1/1] crypto: add virtio-crypto driver
...lock_irqrestore(&vcrypto->lock, flags); + if (unlikely(err < 0)) + goto free_iv; + + return 0; + +free_iv: + kzfree(iv); +free: + kzfree(req_data); + kfree(sgs); + return err; +} + +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +{ + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); + struct virtio_crypto *vcrypto = ctx->vcrypto; + int ret; + /* Use the first data virtqueue as default */ + struct dat...
2016 Dec 15
0
[PATCH v8 1/1] crypto: add virtio-crypto driver
...lock_irqrestore(&data_vq->lock, flags); + if (unlikely(err < 0)) + goto free_iv; + + return 0; + +free_iv: + kzfree(iv); +free: + kzfree(req_data); + kfree(sgs); + return err; +} + +static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req) +{ + struct crypto_ablkcipher *atfm = crypto_ablkcipher_reqtfm(req); + struct virtio_crypto_ablkcipher_ctx *ctx = crypto_ablkcipher_ctx(atfm); + struct virtio_crypto_request *vc_req = ablkcipher_request_ctx(req); + struct virtio_crypto *vcrypto = ctx->vcrypto; + int ret; + /* Use the first data virtqueue as default */ + struct dat...
2016 Nov 28
4
[PATCH v3] virtio-crypto: add Linux driver
v3: - set cpu affinity when data queues are not equal to the number of online cpus. [Michael] - add TODO comments for cpu hotplug (changing the relationship of binding virtqueue and cpu) - use __u32/64 in the config space since the virtio->get() doesn't support byte-swap yet. [Michael] - drop the whole patch 1 of v2 because the above reason. - add VERSION_1 check at the beginning of
2016 Nov 28
4
[PATCH v3] virtio-crypto: add Linux driver
v3: - set cpu affinity when data queues are not equal to the number of online cpus. [Michael] - add TODO comments for cpu hotplug (changing the relationship of binding virtqueue and cpu) - use __u32/64 in the config space since the virtio->get() doesn't support byte-swap yet. [Michael] - drop the whole patch 1 of v2 because the above reason. - add VERSION_1 check at the beginning of
2016 Dec 08
4
[PATCH v6 0/2] virtio-crypto: add Linux driver
v6: - add patch 1/2 to make sparc architecture happy. [Sam] - close created sessions previousely when rekeying. - convert the priority of virtio crypto algs from 4001 to 501 which is enough. v5: - add comments for algs_lock and table_lock. [Stefan] - use kzfree instead of kfree for key material security. [Stefan] - drop unnecessary spin_lock for struct virtio_crypto_ablkcipher_ctx. -
2016 Dec 08
4
[PATCH v6 0/2] virtio-crypto: add Linux driver
v6: - add patch 1/2 to make sparc architecture happy. [Sam] - close created sessions previousely when rekeying. - convert the priority of virtio crypto algs from 4001 to 501 which is enough. v5: - add comments for algs_lock and table_lock. [Stefan] - use kzfree instead of kfree for key material security. [Stefan] - drop unnecessary spin_lock for struct virtio_crypto_ablkcipher_ctx. -