Re: hardware acceleration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2014-09-23 16:13:29, Kenneth Waegeman wrote:
> Hi,
> 
> I've read that ecryptfs supports hardware acceleration, but I don't find how
> to enable this or check if it is working.

This is all handled by the kernel crypto API. Users (you) and kernel
crypto API consumers (eCryptfs) are not expected to do anything to
enable hardware acceleration. The crypto API makes the decision of
whether your hardware supports acceleration and if it should be used.

I don't know of an easy way to check if it is enabled. What I would
suggest doing would be:

1) Set up your eCryptfs mount
   - This will result in eCryptfs autoloading the crypto drivers
2) Look at /proc/crypto
   - Look at all entries with the name "cbc(aes)"
   - Now compare the "priority" fields for each of those entries
   - If the highest priority entry's driver field is "cbc-aes-aesni",
     eCryptfs should be using the AES-NI driver

> How can I find out which cyphers are supported, and how can I see if it
> actually uses the hardware acceleration?

Loaded crypto modules are described in /proc/crypto. You'll need to load
any kernel crypto modules that are not loaded before they're described
in /proc/crypto.

Tyler

> 
> Thanks again!!
> 
> Kenneth
> 
> --
> To unsubscribe from this list: send the line "unsubscribe ecryptfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Crypto]     [Device Mapper Crypto]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux