Compiling with Hardware aes-ni support

Hi,

I try to Compile Openwrt with Hardware support for AES-Ni for x86 64

The HArdware I Use is Intel® Atom™ processor C2558 which should support aes-ni

but I cant get it to run I got no /dev/cryptodev or devcrypto and when I try to turn it on in Config it says devcrypto.so is missing in lib.

So Maybe somone can help here.

Greetings

You don't need the outdated /dev/crypto device for aes-ni.

What's the output of openssl engine and lsmod?
You need openssl-tools installed for the openssl cli tool.

Pretty sure both mbed TLS and WolfSSL will do it out of the box as long as you set the proper cpuflags

HI,

I want to use it for Openvpn.

(rdrand) Intel RDRAND engine
(dynamic) Dynamic engine loading support

act_ipt                12288  0 
act_mirred             12288  0 
act_police             12288  0 
act_skbedit            12288  0 
button_hotplug         12288  0 
cls_basic              12288  0 
cls_flow               16384  0 
cls_fw                 12288  0 
cls_route              12288  0 
cls_tcindex            12288  0 
cls_u32                16384  0 
crc_ccitt              12288  1 ppp_async
e1000                  90112  0 
e1000e                147456  0 
em_cmp                  8192  0 
em_meta                12288  0 
em_nbyte                8192  0 
em_text                 8192  0 
em_u32                  8192  0 
fat                    49152  2 msdos,vfat
hfs                    45056  0 
hfsplus                86016  0 
i2c_algo_bit           12288  1 igb
i2c_dev                12288  0 
igb                   131072  0 
ip_tables              16384  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
ip6_tables             16384  2 ip6table_mangle,ip6table_filter
ip6t_REJECT            12288  0 
ip6table_filter        12288  0 
ip6table_mangle        12288  0 
ipt_MASQUERADE         12288  0 
ipt_REJECT             12288  0 
iptable_filter         12288  1 
iptable_mangle         12288  0 
iptable_nat            12288  0 
iptable_raw            12288  0 
libcrc32c              12288  1 xfs
mii                    12288  1 r8169
msdos                  16384  0 
nf_conntrack           65536 20 nf_conntrack_netlink,nf_conntrack_ipv6,ipt_MASQUERADE,xt_state,xt_nat,xt_helper,xt_conntrack,xt_connmark,xt_connlimit,xt_connbytes,xt_REDIRECT,xt_CT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat_ftp,nf_nat,nf_flow_table,nf_conntrack_rtcache,nf_conntrack_ftp
nf_conntrack_ftp       12288  1 nf_nat_ftp
nf_conntrack_ipv4      12288  4 
nf_conntrack_ipv6      12288  0 
nf_conntrack_netlink   28672  0 
nf_conntrack_rtcache   12288  0 
nf_defrag_ipv4         12288  1 nf_conntrack_ipv4
nf_defrag_ipv6         28672  1 nf_conntrack_ipv6
nf_flow_table          20480  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw       12288  1 
nf_log_common          12288  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4            12288  0 
nf_log_ipv6            12288  0 
nf_nat                 20480  5 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4,nf_nat_ftp
nf_nat_ftp             12288  0 
nf_nat_ipv4            12288  1 iptable_nat
nf_nat_masquerade_ipv4   12288  1 ipt_MASQUERADE
nf_nat_redirect        12288  1 xt_REDIRECT
nf_reject_ipv4         12288  1 ipt_REJECT
nf_reject_ipv6         12288  1 ip6t_REJECT
nfnetlink              12288  2 nf_conntrack_netlink
nls_cp437              16384  0 
nls_iso8859_1          12288  0 
nls_utf8               12288  0 
ntfs                   86016  0 
ppp_async              16384  0 
ppp_generic            28672  3 pppoe,ppp_async,pppox
pppoe                  16384  0 
pppox                  12288  1 pppoe
pps_core               12288  1 ptp
ptp                    16384  2 e1000e,igb
r8169                  65536  0 
reiserfs              184320  0 
sch_codel              12288  0 
sch_dsmark             12288  0 
sch_fq                 16384  0 
sch_gred               16384  0 
sch_hfsc               20480  0 
sch_htb                20480  0 
sch_ingress            12288  0 
sch_multiq             12288  0 
sch_pie                12288  0 
sch_prio               12288  0 
sch_red                12288  0 
sch_sfq                16384  0 
sch_tbf                12288  0 
sch_teql               12288  0 
slhc                   12288  1 ppp_generic
tun                    28672  2 
ums_alauda             16384  0 
ums_cypress            12288  0 
ums_datafab            12288  0 
ums_freecom            12288  0 
ums_isd200             12288  0 
ums_jumpshot           12288  0 
ums_karma              12288  0 
ums_sddr09             16384  0 
ums_sddr55             12288  0 
ums_usbat              16384  0 
vfat                   16384  0 
x_tables               20480 31 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_recent,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_helper,xt_conntrack,xt_connmark,xt_connlimit,xt_connbytes,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_FLOWOFFLOAD,xt_CT,iptable_raw,iptable_mangle,iptable_filter,ip_tables,act_ipt,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
xfs                   487424  0 
xt_CT                  12288  0 
xt_FLOWOFFLOAD         12288  0 
xt_LOG                 12288  0 
xt_REDIRECT            12288  0 
xt_TCPMSS              12288  0 
xt_comment              8192  0 
xt_connbytes           12288  0 
xt_connlimit           12288  0 
xt_connmark            12288  0 
xt_conntrack           12288  3 
xt_helper              12288  0 
xt_limit               12288  0 
xt_mac                  8192  0 
xt_mark                 8192  0 
xt_multiport            8192  2 
xt_nat                 12288  0 
xt_recent              16384  0 
xt_state               12288  0 
xt_tcpudp               8192  4 
xt_time                12288  0