x [右移(len, 5) + 1] = 位或(x [右移(len, 5) + 1], 左移(128, 24 - len % 32)) x [左移(右移(len + 64, 9), 4) + 16] = len xlength = 取数组成员数(x) a = 1732584193 b = -271733879 c = -1732584194 d = 271733878 e = -1009589776 变量循环首(0, xlength, 16, i) 如果真(i ≥ xlength) 跳出循环() olda = a oldb = b oldc = c oldd = d olde = e 变量循环首(0, 80, 1, j) 如果真(j ≥ 80) 跳出循环() 如果(j < 16) w [j + 1] = x [i + j + 1] ' 调试输出 (w [j + 1], j + 1) w [j + 1] = bit_rol(位异或(w [j - 3 + 1], w [j - 8 + 1], w [j - 14 + 1], w [j - 16 + 1]), 1) ' 调试输出 (w [j + 1], j + 1) ' w [j + 1] = 0 t = safe_add(safe_add(bit_rol(a, 5), sha1_ft(j, b, c, d)), safe_add(safe_add(e, w [j + 1]), sha1_kt(j))) e = d d = c c = bit_rol(b, 30) b = a a = t 变量循环尾() a = safe_add(a, olda) b = safe_add(b, oldb) c = safe_add(c, oldc) d = safe_add(d, oldd) e = safe_add(e, olde) 变量循环尾() 重定义数组(return, 假, 5) return [1] = a return [2] = b return [3] = c return [4] = d return [5] = e