[dpdk-dev] [EXT] [PATCH v2] crypto/openssl: support SG for inplace buffers

Akhil Goyal akhil.goyal at nxp.com
Wed Nov 20 07:11:48 CET 2019


> >  static inline int
> >  process_openssl_decryption_update(struct rte_mbuf *mbuf_src, int offset,
> > -		uint8_t **dst, int srclen, EVP_CIPHER_CTX *ctx)
> > +		uint8_t **dst, int srclen, EVP_CIPHER_CTX *ctx, uint8_t inplace)
> >  {
> >  	struct rte_mbuf *m;
> >  	int dstlen;
> >  	int l, n = srclen;
> > -	uint8_t *src;
> > +	uint8_t *src, temp[128];
> 
> [Anoob] In case of encrypt_update, the buffer is
> 'temp[EVP_CIPHER_CTX_block_size(ctx)]'. Is the above intentional?
> 
Sending a v3 


More information about the dev mailing list