From: Konstantin Lepikhov <lakostis@unsafe.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] AES-NI
Date: Tue, 13 Jan 2015 11:43:23 +0100
Message-ID: <20150113104323.GA14621@lks.home> (raw)
In-Reply-To: <54AECDE7.1050400@altlinux.ru>
Hi Anton!
On 01/08/15, at 09:35:19 PM you wrote:
> А openssl у нас умеет AES-NI или нет?
>
> Что-то по результатам openssl speed -elapsed -evp aes-128-ecb не похоже
> что бы у нас оно работало, даже после
> modprobe aesni_intel
>
>
Каким образом ядерная часть относится к работе userspace? AESNI либо есть,
либо нет, библиотека сама это определяет.
(вывод с fedora 21)
$ grep -m1 -o aes /proc/cpuinfo
aes
$ openssl speed aes-128-cbc
...
OpenSSL 1.0.1j-fips 15 Oct 2014
built on: Thu Oct 16 12:30:25 UTC 2014
options:bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) aes(partial)
idea(int) blowfish(idx)
...
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192
bytes
aes-128 cbc 118336.07k 125923.07k 117123.93k 120369.49k
137565.53k
$ openssl speed -evp aes-128-cbc
...
OpenSSL 1.0.1j-fips 15 Oct 2014
built on: Thu Oct 16 12:30:25 UTC 2014
options:bn(64,64) md2(int) rc4(16x,int) des(idx,cisc,16,int) aes(partial)
idea(int) blowfish(idx)
...
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192
bytes
aes-128-cbc 597352.44k 663475.33k 673784.15k 681143.98k
673792.00k
Последние команды как раз показывают, что AESNI используется.
В вашем случае имеет место копипаст из интернетов с неправильным cipher
mode (ecb вместо cbc)
--
WBR et al.
prev parent reply other threads:[~2015-01-13 10:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 18:35 Anton Gorlov
2015-01-13 10:43 ` Konstantin Lepikhov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150113104323.GA14621@lks.home \
--to=lakostis@unsafe.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git