profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/LuoZijun/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

ExodusVPN/exodus 439

network proxy and tunnel (VPN)

LuoZijun/es 8

A ECMAScript Parser and Interpreter written in Rust

ExodusVPN/resolver 7

DNS Resolver

ExodusVPN/winapi 0

https://github.com/hankbao/winapi-rs/tree/iphlpapi-support

LuoZijun/amp 0

A complete text editor for your terminal.

LuoZijun/arrest 0

A reStructuredText parser for Node

issue closedshadowsocks/crypto2

Unsoundness in xor_si512_inplace implementation

As stated in std::slice::from_raw_parts_mut, behavior is undefined if its input pointer is not properly aligned. xor_si512_inplace allows creating a u32 slice from a pointer to u8 without fulfilling the alignment requirement, which is possible to cause undefined behavior. With a debug build of libstd, the call to from_raw_parts_mut panics.

This affects encryption and decryption of Chacha20 cipher.

closed time in 14 days

bdbai

issue commentshadowsocks/crypto2

Unsoundness in xor_si512_inplace implementation

多谢。

bdbai

comment created time in 14 days

push eventshadowsocks/crypto2

luozijun

commit sha e91eebd94a5b4920a35fb3b07ba74f6c355364d9

fix issue #27

view details

push time in 14 days

startedikanago/mini_ml

started time in a month

push eventshadowsocks/crypto2

寧靜

commit sha 4d6937b36d3dbbaebbc3a3bbd16de1a00a06c862

Merge pull request #21 from shadowsocks/patch-1 Bump version to 0.1.2

view details

zonyitoo

commit sha ccc20e680628c037265a9b5aba35dee823f8e4f7

enable optimization dynamically if target-feature is unknown

view details

zonyitoo

commit sha 6e950fa4f47b4ba1dda0d4ad0a75911159c7b343

aarch64 crypto feature have been deprecated

view details

zonyitoo

commit sha 4fa0d00b146d4dd1477cc5ffef5566e0c5e1ca43

force codegen with target_feature

view details

寧靜

commit sha 6db26fd7cfc809a5e9b341476398831522fb7aeb

Merge pull request #25 from zonyitoo/master Enable optimization dynamically if target-feature is unknown

view details

push time in a month

PR merged shadowsocks/crypto2

Enable optimization dynamically if target-feature is unknown

When compile without required features, such as aes on x86, crypto on Aarch64, this PR will try to enable the optimization in the runtime.

If it is compiled with required features, then there will be exactly the same as the current implementation.

+1136 -857

0 comment

19 changed files

zonyitoo

pr closed time in a month

startedparitytech/libsecp256k1

started time in a month

starteddhruvvyas90/qemu-rpi-kernel

started time in a month

delete branch shadowsocks/shadowsocks-rust

delete branch : remove-vpn-opt-hack

delete time in 2 months

delete branch shadowsocks/shadowsocks-rust

delete branch : revert-tx-rx-order

delete time in 2 months

delete branch shadowsocks/shadowsocks-rust

delete branch : revert-219-clap-macro

delete time in 2 months

delete branch shadowsocks/shadowsocks-rust

delete branch : snap-disable-s390x

delete time in 2 months

delete branch shadowsocks/shadowsocks-rust

delete branch : patch-sip002-wiki-url

delete time in 2 months

delete branch shadowsocks/shadowsocks-rust

delete branch : patch-do-not-panic

delete time in 2 months

delete branch shadowsocks/shadowsocks-rust

delete branch : workaround-crypto2-md5-fault

delete time in 2 months

create barnchshadowsocks/shadowsocks-rust

branch : LuoZijun-patch-1

created branch time in 2 months

create barnchshadowsocks/shadowsocks-rust

branch : LuoZijun-patch-1

created branch time in 2 months

push eventLuoZijun/test_blake2b

luozijun

commit sha e7296f44e189fa465179cc7bae335df1aad3555c

Update .

view details

push time in 2 months

issue commentoconnor663/blake2_simd

blake2-rfc is slightly faster than the portable implementation

@oconnor663 i got same performance (vs blake2-rfc)

# code copy from https://github.com/shadowsocks/crypto2/tree/dev/src/hash/blake2b
git clone https://github.com/LuoZijun/test_blake2b/
cargo bench
oconnor663

comment created time in 2 months

issue commentoconnor663/blake2_simd

blake2-rfc is slightly faster than the portable implementation

I thought it might be because blake2-rfc was getting autovectorized, but looking at the output of cargo asm that doesn't seem to be the case. So I'm still not sure where the difference comes from.

@oconnor663 The trick is that the Counter and Flags of blake2-rfc impl in Blake2b mode use u64 instead of u128.

Codeline: https://github.com/cesarb/blake2-rfc/blob/master/src/blake2.rs#L87

So if you use u64 counter instead of u128 , u can get same performance.

Example generic implementation:

# NOTE: the code is copy from https://github.com/shadowsocks/crypto2/tree/dev/src/hash/blake2b
git clone https://github.com/LuoZijun/test_blake2b
cargo bench
oconnor663

comment created time in 2 months

create barnchLuoZijun/test_blake2b

branch : main

created branch time in 2 months

created repositoryLuoZijun/test_blake2b

created time in 2 months

startedharlanc/xiu

started time in 2 months

startedvideo-audio/va-ts

started time in 2 months

push eventshadowsocks/crypto2

luozijun

commit sha 14af3019ed9c7b23fb4b45e3f562eafb6d9206cd

Update BLAKE3

view details

push time in 2 months

push eventshadowsocks/crypto2

luozijun

commit sha 2e03e87f294e4d24615fab9b6f8d696aaa63ebdb

Update BLAKE3

view details

push time in 2 months

PR closed meh/rust-tun

fix macos utun name

Current, when we create a tun device with name utun10 on macos, the ifconfig will display utun9 .

so this patch will fix this problem.

+1 -1

4 comments

1 changed file

LuoZijun

pr closed time in 3 months

issue commentshadowsocks/shadowsocks-rust

Support tun to remove the dependency on tun2socks.

@FH0 pseudocode https://gist.github.com/LuoZijun/aff4d2653438bebd0549fa6da110623f

FH0

comment created time in 3 months