aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/rtm_map.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-07-22libbb: SHA-NI - document that unpckhpd also works, no code changesDenys Vlasenko2-0/+4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-22libbb: SHA-NI code shrinkDenys Vlasenko2-34/+66
function old new delta sha256_process_block64_shaNI 673 657 -16 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-21libbb: change define names in SHA-NI code to match kernel source more closelyDenys Vlasenko2-166/+166
No code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-20libbb/yescrypt: de-unroll salsa20()Denys Vlasenko2-23/+76
function old new delta salsa20 760 296 -464 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-19libbb: crypt_make_pw_salt(): fix yescrypt's random salt last charDenys Vlasenko2-4/+12
function old new delta crypt_make_pw_salt 128 146 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-19cryptpw: fix detection of crypt algo from salt (was broken if default isn't DES)Denys Vlasenko2-11/+34
The symptom is: "cryptpw ... implicit" testsuite tests were failing if CONFIG_FEATURE_DEFAULT_PASSWD_ALGO is not "des". function old new delta cryptpw_main 223 283 +60 pw_encrypt 974 975 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 61/0) Total: 61 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-19libbb/yescrypt: code shrinkDenys Vlasenko1-28/+25
function old new delta blockmix_xor_save 1169 708 -461 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-19bootchartd: check the result of opendir("/proc")Denys Vlasenko1-1/+1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-18tftp: use bb_error_msg instead of info_msg for a debug messageDenys Vlasenko1-1/+1
This is the only use of bb_info_msg in tftp. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-18ntpd: replace two bb_info_msg's with bb_error_msgDenys Vlasenko1-2/+2
All other messages are printed via bb_error_msg in this applet. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-18sulogin: set ^C to SIG_DFL before execing the shellDenys Vlasenko1-3/+6
function old new delta sulogin_main 331 340 +9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-18password applets: update help textDenys Vlasenko2-4/+4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-17libbb.h: increase MAX_PW_SALT_LENDenys Vlasenko2-8/+7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-17libbb/yescrypt: actually, largest allowed salt is 86 chars, support thatDenys Vlasenko3-15/+23
function old new delta yescrypt_r 767 756 -11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-15libbb/yescrypt: code shrinkDenys Vlasenko1-15/+8
function old new delta blockmix_xor 1177 702 -475 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-11libbb/yescrypt: code shrinkDenys Vlasenko2-10/+7
function old new delta salsa20 684 650 -34 blockmix_salsa8 198 144 -54 blockmix 762 565 -197 blockmix_xor 1322 1028 -294 blockmix_xor_save 1499 1103 -396 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-975) Total: -975 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-09libbb/yescrypt: code shrinkDenys Vlasenko2-15/+28
function old new delta static.yescrypt_kdf32_body 847 823 -24 yescrypt_r 805 767 -38 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-62) Total: -62 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-09libbb/bitops.c: add inlining commentDenys Vlasenko1-0/+20
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-09libbb: introduce and use block-XOR functionsDenys Vlasenko7-38/+137
On x86_64, they can be done in 16-byte blocks 64-bit: function old new delta xorbuf_3 - 84 +84 xorbuf64_3_aligned64 - 58 +58 smix1 687 712 +25 xwrite_encrypted 520 534 +14 xorbuf16_aligned_long - 13 +13 tls_xread_record 733 742 +9 xorbuf 21 13 -8 xorbuf_aligned_AES_BLOCK_SIZE 15 - -15 blockmix 814 762 -52 blockmix_salsa8 317 198 -119 blockmix_xor_save 1620 1499 -121 blockmix_xor 1543 1322 -221 ------------------------------------------------------------------------------ (add/remove: 4/1 grow/shrink: 3/5 up/down: 203/-536) Total: -333 bytes 32-bit: function old new delta xorbuf_3 - 76 +76 xorbuf64_3_aligned64 - 36 +36 xorbuf16_aligned_long - 23 +23 xwrite_encrypted 499 507 +8 tls_xread_record 646 650 +4 xorbuf 22 11 -11 xorbuf_aligned_AES_BLOCK_SIZE 23 - -23 blockmix 1083 938 -145 blockmix_salsa8 415 210 -205 blockmix_salsa8_xor 601 163 -438 blockmix_xor 2103 1533 -570 blockmix_xor_save 2614 1859 -755 ------------------------------------------------------------------------------ (add/remove: 4/1 grow/shrink: 2/6 up/down: 147/-2147) Total: -2000 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-08hush: fix SEGV on "echo << >" and suchDenys Vlasenko5-0/+11
function old new delta .rodata 105787 105823 +36 fetch_heredocs 461 477 +16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 52/0) Total: 52 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-08libbb: code shrink in sha_crypt()Denys Vlasenko1-2/+1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-08libbb/yescrypt: disable NROM codeDenys Vlasenko2-27/+50
function old new delta smix1 - 595 +595 smix2 - 414 +414 static.yescrypt_kdf32_body 899 847 -52 static.smix2 420 - -420 static.smix1 604 - -604 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 0/1 up/down: 1009/-1076) Total: -67 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-08libbb/yescrypt: disable code which accepts unusual yescrypt parametersDenys Vlasenko2-53/+92
Almost any reasonable yescrypt hashes in /etc/shadow should only ever use "jXY" parameters which set N and r. Fancy multi-byte-encoded wide integers are not needed for that. function old new delta static.yescrypt_kdf32_body - 899 +899 static.PBKDF2_SHA256 213 219 +6 decode64_uint32 141 - -141 yescrypt_r 990 805 -185 yescrypt_kdf32_body 1423 - -1423 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 1/1 up/down: 905/-1749) Total: -844 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-08libbb/yescrypt: explain and shrink decode64_uint32()Denys Vlasenko2-10/+79
function old new delta decode64_uint32 177 141 -36 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-08libbb/yescrypt: code shrinkDenys Vlasenko2-19/+49
Setting EINVAL in errno is not necessary, just error return works. function old new delta yescrypt_kdf32_body 1434 1423 -11 yescrypt_r 1029 990 -39 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-50) Total: -50 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: madvise(MADV_HUGEPAGE) our usually very large allocationDenys Vlasenko1-2/+13
Nearly ~2 faster run when buffer is gigabytes in size function old new delta yescrypt_kdf32_body 1386 1406 +20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: disable unrolling in two placesDenys Vlasenko1-96/+159
Also, make many define macros safer function old new delta blockmix 2300 814 -1486 blockmix_xor 4606 1543 -3063 blockmix_xor_save 4737 1620 -3117 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-7666) Total: -7666 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: 64-bit build fixesDenys Vlasenko1-8/+4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07add libbb/yescrypt/PARAMETERSDenys Vlasenko3-6/+202
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: no need to find salt-terminating "$" twiceDenys Vlasenko1-16/+10
function old new delta yescrypt_r 1048 1029 -19 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: code shrinkDenys Vlasenko1-3/+3
function old new delta yescrypt_r 1063 1048 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07cryptpw: -m sha512crypt must also be acceptedDenys Vlasenko2-1/+5
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: fix salts ending in dots (corresponding to binary zeros)Denys Vlasenko2-1/+21
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: accept longer salts (up to 84 chars)Denys Vlasenko4-4/+86
function old new delta cryptpw_main 214 223 +9 chpasswd_main 347 356 +9 passwd_main 931 934 +3 yescrypt_r 1084 1056 -28 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 21/-28) Total: -7 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: remove forgotten SHA256 HMAC header fileDenys Vlasenko2-32/+0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: make it possible to set constant parameters, and set YESCRYPT_RWDenys Vlasenko4-96/+142
function old new delta yescrypt_kdf32_body 1052 1420 +368 yescrypt_r 1133 1084 -49 static.smix 762 - -762 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/1 up/down: 368/-811) Total: -443 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb/yescrypt: remove redundant SHA256 HMAC implementationDenys Vlasenko5-98/+48
function old new delta hmac_blocks - 88 +88 static.PBKDF2_SHA256 176 213 +37 yescrypt_kdf32_body 1046 1052 +6 static.smix 759 762 +3 hmac_block 88 64 -24 HMAC_SHA256_Final 53 - -53 HMAC_SHA256_Buf 58 - -58 HMAC_SHA256_Init 159 - -159 ------------------------------------------------------------------------------ (add/remove: 1/3 grow/shrink: 3/1 up/down: 134/-294) Total: -160 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb: factor out HMAC code from TLSDenys Vlasenko3-139/+161
function old new delta hmac_block - 88 +88 hmac_peek_hash - 61 +61 hmac_end - 50 +50 hmac_begin 140 177 +37 hmac_hash_v - 30 +30 .rodata 105799 105787 -12 hmac_sha_precomputed 54 - -54 hmac_sha_precomputed_v 69 - -69 hmac 83 - -83 ------------------------------------------------------------------------------ (add/remove: 5/3 grow/shrink: 1/1 up/down: 266/-218) Total: 48 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-07-07libbb: add two more forgotten source filesDenys Vlasenko2-0/+43
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>