Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
NetWork
Opentracker
提交
44e004ac
O
Opentracker
项目概览
NetWork
/
Opentracker
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opentracker
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
44e004ac
编写于
5月 28, 2012
作者:
E
erdgeist
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adding rijndael code for udp connection id calculation
上级
8e683aff
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
511 addition
and
2 deletion
+511
-2
Makefile
Makefile
+3
-2
ot_rijndael.c
ot_rijndael.c
+488
-0
ot_rijndael.h
ot_rijndael.h
+20
-0
未找到文件。
Makefile
浏览文件 @
44e004ac
...
...
@@ -35,6 +35,7 @@ BINDIR?=$(PREFIX)/bin
#FEATURES+=-DWANT_MODEST_FULLSCRAPES
#FEATURES+=-DWANT_SPOT_WOODPECKER
#FEATURES+=-DWANT_SYSLOGS
FEATURES
+=
-DWANT_DEV_RANDOM
FEATURES
+=
-DWANT_FULLSCRAPE
#FEATURES+=-D_DEBUG_HTTPERROR
...
...
@@ -46,8 +47,8 @@ CFLAGS+=-I$(LIBOWFAT_HEADERS) -Wall -pipe -Wextra #-ansi -pedantic
LDFLAGS
+=
-L
$(LIBOWFAT_LIBRARY)
-lowfat
-pthread
-lpthread
-lz
BINARY
=
opentracker
HEADERS
=
trackerlogic.h scan_urlencoded_query.h ot_mutex.h ot_stats.h ot_vector.h ot_clean.h ot_udp.h ot_iovec.h ot_fullscrape.h ot_accesslist.h ot_http.h ot_livesync.h
SOURCES
=
opentracker.c trackerlogic.c scan_urlencoded_query.c ot_mutex.c ot_stats.c ot_vector.c ot_clean.c ot_udp.c ot_iovec.c ot_fullscrape.c ot_accesslist.c ot_http.c ot_livesync.c
HEADERS
=
trackerlogic.h scan_urlencoded_query.h ot_mutex.h ot_stats.h ot_vector.h ot_clean.h ot_udp.h ot_iovec.h ot_fullscrape.h ot_accesslist.h ot_http.h ot_livesync.h
ot_rijndael.h
SOURCES
=
opentracker.c trackerlogic.c scan_urlencoded_query.c ot_mutex.c ot_stats.c ot_vector.c ot_clean.c ot_udp.c ot_iovec.c ot_fullscrape.c ot_accesslist.c ot_http.c ot_livesync.c
ot_rijndael.c
SOURCES_proxy
=
proxy.c ot_vector.c ot_mutex.c
OBJECTS
=
$(SOURCES:%.c=%.o)
...
...
ot_rijndael.c
0 → 100644
浏览文件 @
44e004ac
此差异已折叠。
点击以展开。
ot_rijndael.h
0 → 100644
浏览文件 @
44e004ac
/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
It is considered beerware. Prost. Skol. Cheers or whatever.
The rijndael implementation was taken from
http://www.cs.ucdavis.edu/~rogaway/ocb/ocb-ref/rijndael-alg-fst.c
and modified to work with 128 bits (this is 10 rounds) only.
$id$ */
#ifndef __OT_RIJNDAEL_H__
#define __OT_RIJNDAEL_H__
#include <stdint.h>
int
rijndaelKeySetupEnc128
(
uint32_t
rk
[
44
],
const
uint8_t
cipherKey
[]
);
void
rijndaelEncrypt128
(
const
uint32_t
rk
[
44
],
const
uint8_t
pt
[
16
],
uint8_t
ct
[
16
]);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录