Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2013 00:57:16 +0100
From:      Joe Holden <lists@rewt.org.uk>
To:        Warner Losh <imp@bsdimp.com>
Cc:        "freebsd-mips@FreeBSD.org" <mips@freebsd.org>
Subject:   Re: AES-GCM/Hardware crypto for Octeon
Message-ID:  <51CA2E5C.3010709@rewt.org.uk>
In-Reply-To: <E1E17D9F-D125-4126-8776-67229728195A@bsdimp.com>
References:  <51C9BFE6.20701@rewt.org.uk> <E1E17D9F-D125-4126-8776-67229728195A@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh wrote:
> On Jun 25, 2013, at 10:05 AM, Joe Holden wrote:
> 
>> Hi,
>>
>> Is the hardware crypto used by OpenCrypto/OpenSSL on the Octeon Plus range?  Other than specifying cryptodev engine, is there a way to make sure that it's being used?
>>
>> Also, according to the Cavium product brief, the coprocessor supports AES-GCM, I can't work out if it's actually supported in OpenSSL as the patches seem to be geared towards Intel's hardware assisted variant - is this supportable on the current tree, or will it require extra patches/work (perhaps upstream?)
> 
> The Cavium crypto support is done as part of the open crypto framework. OpenSSL uses the open crypto framework to offload crypto calculations. The cavium coprocessor is used inside the open crypto framework in the kernel. It isn't used like intel's AES instructions in userland.
> 
> Looking at the code, it appears we'd support using the Cavium Coprocessor in user space. However, a quick peek at the OpenSSL code in the tree today suggests that the MIPS optimized versions of the various crypto functions don't use the cavium coprocessor.
> 
> I believe Cavium has patches to OpenSSL available on their cnusers.org web site that could be used to update the code in the FreeBSD tree, but I haven't looked closely lately at that stuff since the opencrypto support is plenty fast for my needs.
> 
> Warner
> 
I'll have to look at that, I registered a while ago but haven't perused 
their code yet.

Thanks,
Joe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51CA2E5C.3010709>