ecryptfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* hardware acceleration
@ 2014-09-23 14:13 Kenneth Waegeman
  2014-09-23 15:45 ` Tyler Hicks
  0 siblings, 1 reply; 2+ messages in thread
From: Kenneth Waegeman @ 2014-09-23 14:13 UTC (permalink / raw)
  To: ecryptfs

Hi,

I've read that ecryptfs supports hardware acceleration, but I don't  
find how to enable this or check if it is working.
How can I find out which cyphers are supported, and how can I see if  
it actually uses the hardware acceleration?

Thanks again!!

Kenneth

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: hardware acceleration
  2014-09-23 14:13 hardware acceleration Kenneth Waegeman
@ 2014-09-23 15:45 ` Tyler Hicks
  0 siblings, 0 replies; 2+ messages in thread
From: Tyler Hicks @ 2014-09-23 15:45 UTC (permalink / raw)
  To: Kenneth Waegeman; +Cc: ecryptfs

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-23 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-23 14:13 hardware acceleration Kenneth Waegeman
2014-09-23 15:45 ` Tyler Hicks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).