Commit Graph

1852 Commits

Author SHA1 Message Date
makejian 7702f866e4 rpmsg/crypto: support rsa algorithm
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:34:07 +08:00
makejian 18b1b7e1e4 crypto/asn1: supprot asn1 parse function
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:34:07 +08:00
makejian 9b4b35a789 crypto/bn: add length to optimize calculate process
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:34:06 +08:00
makejian 3a6adee999 cryptodev: kprocess need hash/padding/operation type in paramters
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:32:32 +08:00
makejian db56dffddc virtio-crypto: support asn1 format
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:32:32 +08:00
makejian 874127b56e crypto: support Cipher/Mac use keyid
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:31:30 +08:00
makejian 84bfd4b78e crypto: support crc8 with 0x1d and 0x2f polynomial
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:31:30 +08:00
makejian 9b93689969 crypto: export crc16 algo include 0x1021 and 0x8005 polynomial
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:31:29 +08:00
makejian bd5aa7590d crypto/ecc: supports exporting generated keys in uncompressed form
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:27:49 +08:00
makejian 481ea33e20 crypto: export algorithm about ecc
Transplanting the ECC algorithm from https://github.com/jestan/easy-ecc
which is BSD lisence
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:27:49 +08:00
makejian 6b072aebd8 crypto/virtio: remove 'virtio_crypto_get_iv_len'
vela crypto driver support input length of iv, so no need to get ivlen from interface
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:27:33 +08:00
makejian 76ed3ad307 crypto/cryptodev: asynchronous process callback memory manages its own life cycle
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:27:32 +08:00
makejian e146fc1f4b crypto/key: support software key management based MTD
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:27:28 +08:00
makejian 6bfba571ac crypto: add aes stream mode
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:25:32 +08:00
makejian 1847e91643 crypto/cryptodev: optimize without dynamic memory in crypto process
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:24:07 +08:00
makejian e2d762d945 virtio/crypto: support vela crypto driver algo converting from virtio crypto algo
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:24:06 +08:00
makejian 7c18f14f80 crypto/crypto.c: Determine the order of obtained crypto drivers
After adding the cross-core crypto driver, there are now three encryption modes:
1. hardware driver in local core
2. crypto driver in remote
3. software encryption in local core
Therefore, it is necessary to prioritize the above three crypto driver. The local hardware driver is preferred, followed by the remote driver because generally speaking, the remote driver is a hardware driver, and finally the local software because the software algorithm is only used as a test for the local core.
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:24:06 +08:00
makejian 5cd6614cc4 nuttx/crypto: export ivlen to support different ciphre algs
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:24:04 +08:00
makejian f05136c335 crypto/siphash: avoid redefine name issue
tricore-gcc produce function section with "_end" suffix in every function, so siphash conflex with siphash_end
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:23:29 +08:00
makejian 285b4176ed virtio/crypto: support virtio crypto driver
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:22:33 +08:00
makejian 28c1d5944e crypto/cryptodev: support to keep private data in crypto driver
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:22:33 +08:00
makejian 6ed9e8f06e crypto/cryptodev: add encrypt op and olen for support virtio mode
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:21:52 +08:00
makejian d8dd10749d nuttx/crypto: export rsa with pkcs1.5 and pss mode
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:21:44 +08:00
makejian 591eb5bebc nuttx/crypto: support generate keypair in rsa and ecdsa process
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:15:02 +08:00
makejian 32a9c9180e crypto/key: export interfaces about key management
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:15:02 +08:00
makejian 81c7c52d52 nuttx/crypto: export aes-cbc with 192/256 keysize
Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:14:56 +08:00
openvela-robot 77f0bea7f5 Merge branch 'master' into vela
apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc

Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-21 01:12:27 +08:00
openvela-robot 87c6ff19cf mm: Fix some typos
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:12:20 +08:00
openvela-robot b2f5ba0753 syslog: convert \n to \r\n in syslog framework layer
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
2026-04-21 01:12:15 +08:00
openvela-robot 24c239f8f5 arm/cmake: fix cmake compile error
1. The -c parameter should not be added during the link phase, otherwise the link will fail.
2. If it is the clang compiler, its toolchain library should use --print-file-name to find it, otherwise an error will occur

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2026-04-21 01:12:09 +08:00
openvela-robot 44ed68d400 fs/rpmsgfs: return real err value when open failed
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2026-04-21 01:12:00 +08:00
openvela-robot 85912ed402 syslog/channel: rename syslog_channel() to syslog_channel_register()
Change syslog API naming more reasonable:

1. rename syslog_channel() to syslog_channel_register()
2. rename syslog_channel_remove() to syslog_channel_unregister()

Signed-off-by: chao an <anchao@lixiang.com>
2026-04-21 01:11:54 +08:00
openvela-robot 0fdd165dfa Fix disable msi when msi capability not exist issue
Signed-off-by: yezhonghui <yezhonghui@xiaomi.com>
2026-04-21 01:11:48 +08:00
openvela-robot 61f4f9411d openamp: sync with community
Comminity has upgrade the openamp to the last commit (near 2024.05 Release),
sync back to vela.

Only modify the makefile and upgrade the patch, should be no impact in any
features.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:11:43 +08:00
openvela-robot 4ea93dbabf add a flag of lin internal sleep/wakeup state
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2026-04-21 01:11:35 +08:00
openvela-robot 5081b31bd0 cmake(sync):sync CMakeLists.txt conflict of libc with github
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2026-04-21 01:11:30 +08:00
openvela-robot 39fce4b20d arch/x86_64: Resolving NUC Boot Failure Issue
The segment of the Xen PVH boot protocol was not specified during linking and was placed before .loader.text, causing the boot to fail

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2026-04-21 01:11:24 +08:00
openvela-robot d2e613094f arm64/makefile: No longer using hwasan pile insertion
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2026-04-21 01:11:19 +08:00
openvela-robot a3dd40b0d9 mm: call sched_note within mm lock
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
2026-04-21 01:11:12 +08:00
openvela-robot 8b787c52e2 sched: sync minor differences in community code
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2026-04-21 01:11:07 +08:00
openvela-robot bf0c4ea69a libc/modlib: Make modlib selectable from defconfig
since bootloader may call modlib functions directly
to load elf firmware without binfmt, dlfcn or module.

BTW, this patch also remove the duplicated selecttion

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-04-21 01:11:02 +08:00
openvela-robot d194b91929 Revert "math32.h: remove typeof depends"
This reverts commit 4e9f8176a08aa25c7173bc4c748e721b0841ddac.

Reason for revert:
This patch are using to fix the following build warning when build with greenhills compiler:
    CC:  syslog/vsyslog.c "pthread/pthread_create.c", line 443: warning #1931-D: operand of sizeof is
              not a type, variable, or dereferenced pointer expression
              ptcb->cmn.timeslice = MSEC2TICK(CONFIG_RR_INTERVAL);
                                    ^

    CC:  dirent/lib_closedir.c "sched/sched_profil.c", line 81: warning #1931-D: operand of sizeof is not a
              type, variable, or dereferenced pointer expression
        wd_start(&prof->timer, PROFTICK, profil_timer_handler, arg);
                               ^

    "sched/sched_profil.c", line 142: warning #1931-D: operand of sizeof is not a
              type, variable, or dereferenced pointer expression
        wd_start(&prof->timer, PROFTICK, profil_timer_handler, (wdparm_t)prof);
                               ^

    CC:  common/arm_modifyreg8.c "sched/sched_setscheduler.c", line 165: warning #1931-D: operand of sizeof is
              not a type, variable, or dereferenced pointer expression
                tcb->timeslice  = MSEC2TICK(CONFIG_RR_INTERVAL);
                                  ^

    CC:  misc/lib_utsname.c "sched/sched_unlock.c", line 275: warning #1931-D: operand of sizeof is not a
              type, variable, or dereferenced pointer expression
                rtcb->timeslice = MSEC2TICK(CONFIG_RR_INTERVAL);
                                  ^

    "sched/sched_roundrobin.c", line 119: warning #1931-D: operand of sizeof is
              not a type, variable, or dereferenced pointer expression
                tcb->timeslice = MSEC2TICK(CONFIG_RR_INTERVAL);
                                 ^

we need to keep the modification
2026-04-21 01:10:57 +08:00
openvela-robot ac82d776ab usb: Fix issue with the calculation descriptor length error
Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
2026-04-21 01:10:47 +08:00
openvela-robot 0662b2ac02 rpmsgdev/blk: sync with communitfy, minor nxstyle fix
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:10:42 +08:00
openvela-robot 97534cf708 add lin status changes the format of the reported frame and add the macros that lin needs
Signed-off-by: wangxiaoxin <wangxiaoxin@xiaomi.com>
2026-04-21 01:10:37 +08:00
openvela-robot 492cec3ec5 nuttx/sim: Fix MacOs build error with argument unused during compilation: '-no-pie'
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:10:31 +08:00
openvela-robot 1f0a222301 sim/m64:Fix ld error with .rodata can not be used when making a PIE object.
/usr/bin/ld: nuttx.rel: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:10:25 +08:00
openvela-robot 80196e894b nuttx: Change the judgment of GCCVER version to greater equal.
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2026-04-21 01:10:19 +08:00
openvela-robot 6c85ce6822 vsprintf:fix bug when print int64 0x8000000000000000
stdio/lib_libvsprintf.c:1018:17: runtime error: negation of -9223372036854775808 cannot be
represented in type 'long long int'; cast to an unsigned type to negate this value to itself
    #0 0x3326a86 in vsprintf_internal stdio/lib_libvsprintf.c:1018
    #1 0x332926b in lib_vsprintf stdio/lib_libvsprintf.c:1363
    #2 0x3777978 in vfprintf stdio/lib_vfprintf.c:52
    #3 0x671b3a0 in printf stdio/lib_printf.c:44
    #4 0x37abc0c in hello_main /data/project/code/vela-pt/apps/examples/hello/hello_main.c:38
    #5 0x33201d3 in nxtask_startup sched/task_startup.c:70
    #6 0x3208ecb in nxtask_start task/task_start.c:134
    #7 0x3357a49 in pre_start sim/sim_initialstate.c:52

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2026-04-21 01:10:13 +08:00
openvela-robot 78d736af82 arm/toolchain.defs: sync the whole-archive config with community
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2026-04-21 01:10:07 +08:00