找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4626|回复: 5

MT7628 AES-CBC 硬件加密驱动

[复制链接]
发表于 2018-7-2 20:29 | 显示全部楼层 |阅读模式
转自 https://forum.lede-project.org/t ... r-beta-status/12659

可以加速 IPSec 和 OpenV*P/N,某酸用的是 AES-CFB/GCM 因此无法加速

使用方法:
编辑 target/linux/ramips/dts/mt7628an.dtsi ,在倒数第二行添加以下内容
  1. crypto: crypto@10004000 {
  2.                 compatible = "ralink,mt7628an-aes", "mediatek,mtk-aes";
  3.                 reg = <0x10004000 0x1000>;

  4.                 interrupt-parent = <&intc>;
  5.                 interrupts = <13>;

  6.                 resets = <&rstctrl 29>;
  7.                 reset-names = "cryp";
  8.                 clocks = <&clkctrl 29>;
  9.                 clock-names = "cryp";
  10.         };
复制代码


把源码 git clone 到 package 目录下
make menuconfig
选择 Kernel modules -> Cryptographic API modules -> kmod-crypto-hw-mt7628-aes 和 kmod-cryptodev
选择 Libraries -> SSL -> libopenssl -> Crypto acceleration support
需要 OpenV*P/N 的可以选上 Network -> V*P/N -> openv*p/n-easy-rsa 和 openv*p/n-openssl,LuCI -> Applications -> luci-app-openv*p/n

然后编译固件


我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-7-2 20:40 来自手机 | 显示全部楼层
咦,收藏价值,以后搭建时要留意着,谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-2 21:07 来自手机 | 显示全部楼层
好好好,收藏了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-11 15:04 | 显示全部楼层
好,,收藏!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-10-21 15:52 | 显示全部楼层
楼主你好,我在移植过程中出现图中这样的问题,请问一下你当时有没有遇到,怎么解决呢,可以帮一下忙么,先谢谢了
下面是错误的信息

[  889.888196] mtk-aes 10004000.crypto: HW verson: 04
[  889.897813] mtk-aes 10004000.crypto: IRQ 21 assigned to handler
[  889.909588] mtk-aes 10004000.crypto: TX Ring : 05839000
[  889.919967] mtk-aes 10004000.crypto: RX Ring : 054A7000
[  889.930341] mtk-aes 10004000.crypto: Rec Ring : 054A3000
[  889.940891] mtk-aes 10004000.crypto: Register: cbc(aes)
[  890.081009] alg: skcipher: Failed to load transform for cbc-aes-mt7628: -2
[  890.094752] mtk-aes 10004000.crypto: Register: ecb(aes)
[  890.233954] alg: skcipher: Failed to load transform for ecb-aes-mt7628: -2
[  890.247706] mtk-aes 10004000.crypto: Initialized.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-7-10 08:03 | 显示全部楼层
mt7621 的话应该怎么操作
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 02:46

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表