Hi All,
I am using libkcapi to execute HMAC tests. One of key size is 229248 bytes. setsockopt(tfmfd, SOL_ALG, ALG_SET_KEY API fails to set the key.
I am not getting an option to set the buffer size to higher value.
Can you please provide me inputs on how to set the higher buffer size to socket?
Regards,
Jayalakshmi
Am Montag, 24. August 2020, 16:41:13 CEST schrieb Bhat, Jayalakshmi Manjunath:
Hi Jayalakshmi,
> Hi All,
>
> I am using libkcapi to execute HMAC tests. One of key size is 229248 bytes.
> setsockopt(tfmfd, SOL_ALG, ALG_SET_KEY API fails to set the key. I am not
> getting an option to set the buffer size to higher value.
>
> Can you please provide me inputs on how to set the higher buffer size to
> socket?
Update your network write buffer size?
/proc/sys/net/core/wmem_default
>
> Regards,
> Jayalakshmi
Ciao
Stephan
Hi Stephen,
It worked, thank you so much
Regards,
Jaya
-----Original Message-----
From: Stephan Mueller <[email protected]>
Sent: Monday, August 24, 2020 9:00 PM
To: [email protected]; Bhat, Jayalakshmi Manjunath <[email protected]>
Subject: Re: HMAC test fails for big key using libkcapi
Am Montag, 24. August 2020, 16:41:13 CEST schrieb Bhat, Jayalakshmi Manjunath:
Hi Jayalakshmi,
> Hi All,
>
> I am using libkcapi to execute HMAC tests. One of key size is 229248 bytes.
> setsockopt(tfmfd, SOL_ALG, ALG_SET_KEY API fails to set the key. I am
> not getting an option to set the buffer size to higher value.
>
> Can you please provide me inputs on how to set the higher buffer size
> to socket?
Update your network write buffer size?
/proc/sys/net/core/wmem_default
>
> Regards,
> Jayalakshmi
Ciao
Stephan