This commit is contained in:
biosvos
2026-08-07 17:38:18 +09:00
commit 873193a243
9613 changed files with 2755992 additions and 0 deletions
@@ -0,0 +1,129 @@
cbc.lo: cbc.c ../../lib/libdefs.h ../../config.h /usr/include/sys/types.h \
/usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-64.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/time.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h ../../lib/win32_comp.h \
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
/usr/include/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/bits/stdio.h /usr/include/ctype.h /usr/include/xlocale.h \
/usr/include/string.h /usr/include/bits/string.h \
/usr/include/bits/string2.h /usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/include/byteswap.h /usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h ../../lib/mcrypt_modules.h
../../lib/libdefs.h:
../../config.h:
/usr/include/sys/types.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/bits/wordsize.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
../../lib/win32_comp.h:
/usr/include/stdlib.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/alloca.h:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/include/ctype.h:
/usr/include/xlocale.h:
/usr/include/string.h:
/usr/include/bits/string.h:
/usr/include/bits/string2.h:
/usr/include/strings.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/include/byteswap.h:
/usr/include/dirent.h:
/usr/include/bits/dirent.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
../../lib/mcrypt_modules.h:
@@ -0,0 +1,129 @@
cfb.lo: cfb.c ../../lib/libdefs.h ../../config.h /usr/include/sys/types.h \
/usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-64.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/time.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h ../../lib/win32_comp.h \
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
/usr/include/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/bits/stdio.h /usr/include/ctype.h /usr/include/xlocale.h \
/usr/include/string.h /usr/include/bits/string.h \
/usr/include/bits/string2.h /usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/include/byteswap.h /usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h ../../lib/mcrypt_modules.h
../../lib/libdefs.h:
../../config.h:
/usr/include/sys/types.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/bits/wordsize.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
../../lib/win32_comp.h:
/usr/include/stdlib.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/alloca.h:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/include/ctype.h:
/usr/include/xlocale.h:
/usr/include/string.h:
/usr/include/bits/string.h:
/usr/include/bits/string2.h:
/usr/include/strings.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/include/byteswap.h:
/usr/include/dirent.h:
/usr/include/bits/dirent.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
../../lib/mcrypt_modules.h:
@@ -0,0 +1,129 @@
ctr.lo: ctr.c ../../lib/libdefs.h ../../config.h /usr/include/sys/types.h \
/usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-64.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/time.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h ../../lib/win32_comp.h \
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
/usr/include/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/bits/stdio.h /usr/include/ctype.h /usr/include/xlocale.h \
/usr/include/string.h /usr/include/bits/string.h \
/usr/include/bits/string2.h /usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/include/byteswap.h /usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h ../../lib/mcrypt_modules.h
../../lib/libdefs.h:
../../config.h:
/usr/include/sys/types.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/bits/wordsize.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
../../lib/win32_comp.h:
/usr/include/stdlib.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/alloca.h:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/include/ctype.h:
/usr/include/xlocale.h:
/usr/include/string.h:
/usr/include/bits/string.h:
/usr/include/bits/string2.h:
/usr/include/strings.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/include/byteswap.h:
/usr/include/dirent.h:
/usr/include/bits/dirent.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
../../lib/mcrypt_modules.h:
@@ -0,0 +1,129 @@
ecb.lo: ecb.c ../../lib/libdefs.h ../../config.h /usr/include/sys/types.h \
/usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-64.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/time.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h ../../lib/win32_comp.h \
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
/usr/include/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/bits/stdio.h /usr/include/ctype.h /usr/include/xlocale.h \
/usr/include/string.h /usr/include/bits/string.h \
/usr/include/bits/string2.h /usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/include/byteswap.h /usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h ../../lib/mcrypt_modules.h
../../lib/libdefs.h:
../../config.h:
/usr/include/sys/types.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/bits/wordsize.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
../../lib/win32_comp.h:
/usr/include/stdlib.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/alloca.h:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/include/ctype.h:
/usr/include/xlocale.h:
/usr/include/string.h:
/usr/include/bits/string.h:
/usr/include/bits/string2.h:
/usr/include/strings.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/include/byteswap.h:
/usr/include/dirent.h:
/usr/include/bits/dirent.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
../../lib/mcrypt_modules.h:
@@ -0,0 +1,130 @@
ncfb.lo: ncfb.c ../../lib/libdefs.h ../../config.h \
/usr/include/sys/types.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \
/usr/include/bits/types.h /usr/include/bits/typesizes.h \
/usr/include/time.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h ../../lib/win32_comp.h \
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
/usr/include/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/bits/stdio.h /usr/include/ctype.h /usr/include/xlocale.h \
/usr/include/string.h /usr/include/bits/string.h \
/usr/include/bits/string2.h /usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/include/byteswap.h /usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h ../../lib/mcrypt_modules.h
../../lib/libdefs.h:
../../config.h:
/usr/include/sys/types.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/bits/wordsize.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
../../lib/win32_comp.h:
/usr/include/stdlib.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/alloca.h:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/include/ctype.h:
/usr/include/xlocale.h:
/usr/include/string.h:
/usr/include/bits/string.h:
/usr/include/bits/string2.h:
/usr/include/strings.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/include/byteswap.h:
/usr/include/dirent.h:
/usr/include/bits/dirent.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
../../lib/mcrypt_modules.h:
@@ -0,0 +1,130 @@
nofb.lo: nofb.c ../../lib/libdefs.h ../../config.h \
/usr/include/sys/types.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \
/usr/include/bits/types.h /usr/include/bits/typesizes.h \
/usr/include/time.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h ../../lib/win32_comp.h \
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
/usr/include/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/bits/stdio.h /usr/include/ctype.h /usr/include/xlocale.h \
/usr/include/string.h /usr/include/bits/string.h \
/usr/include/bits/string2.h /usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/include/byteswap.h /usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h ../../lib/mcrypt_modules.h
../../lib/libdefs.h:
../../config.h:
/usr/include/sys/types.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/bits/wordsize.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
../../lib/win32_comp.h:
/usr/include/stdlib.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/alloca.h:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/include/ctype.h:
/usr/include/xlocale.h:
/usr/include/string.h:
/usr/include/bits/string.h:
/usr/include/bits/string2.h:
/usr/include/strings.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/include/byteswap.h:
/usr/include/dirent.h:
/usr/include/bits/dirent.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
../../lib/mcrypt_modules.h:
@@ -0,0 +1,129 @@
ofb.lo: ofb.c ../../lib/libdefs.h ../../config.h /usr/include/sys/types.h \
/usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-64.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h /usr/include/time.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h ../../lib/win32_comp.h \
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
/usr/include/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/bits/stdio.h /usr/include/ctype.h /usr/include/xlocale.h \
/usr/include/string.h /usr/include/bits/string.h \
/usr/include/bits/string2.h /usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/include/byteswap.h /usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h ../../lib/mcrypt_modules.h
../../lib/libdefs.h:
../../config.h:
/usr/include/sys/types.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/bits/wordsize.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
../../lib/win32_comp.h:
/usr/include/stdlib.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/alloca.h:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/include/ctype.h:
/usr/include/xlocale.h:
/usr/include/string.h:
/usr/include/bits/string.h:
/usr/include/bits/string2.h:
/usr/include/strings.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/include/byteswap.h:
/usr/include/dirent.h:
/usr/include/bits/dirent.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
../../lib/mcrypt_modules.h:
@@ -0,0 +1,130 @@
stream.lo: stream.c ../../lib/libdefs.h ../../config.h \
/usr/include/sys/types.h /usr/include/features.h \
/usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \
/usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \
/usr/include/bits/types.h /usr/include/bits/typesizes.h \
/usr/include/time.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h ../../lib/win32_comp.h \
/usr/include/stdlib.h /usr/include/bits/waitflags.h \
/usr/include/bits/waitstatus.h /usr/include/alloca.h \
/usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \
/usr/include/wchar.h \
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/bits/stdio.h /usr/include/ctype.h /usr/include/xlocale.h \
/usr/include/string.h /usr/include/bits/string.h \
/usr/include/bits/string2.h /usr/include/strings.h /usr/include/unistd.h \
/usr/include/bits/posix_opt.h /usr/include/bits/environments.h \
/usr/include/bits/confname.h /usr/include/getopt.h \
/usr/include/byteswap.h /usr/include/dirent.h /usr/include/bits/dirent.h \
/usr/include/bits/posix1_lim.h /usr/include/bits/local_lim.h \
/usr/include/linux/limits.h ../../lib/mcrypt_modules.h
../../lib/libdefs.h:
../../config.h:
/usr/include/sys/types.h:
/usr/include/features.h:
/usr/include/sys/cdefs.h:
/usr/include/bits/wordsize.h:
/usr/include/gnu/stubs.h:
/usr/include/gnu/stubs-64.h:
/usr/include/bits/types.h:
/usr/include/bits/typesizes.h:
/usr/include/time.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stddef.h:
/usr/include/endian.h:
/usr/include/bits/endian.h:
/usr/include/bits/byteswap.h:
/usr/include/sys/select.h:
/usr/include/bits/select.h:
/usr/include/bits/sigset.h:
/usr/include/bits/time.h:
/usr/include/sys/sysmacros.h:
/usr/include/bits/pthreadtypes.h:
../../lib/win32_comp.h:
/usr/include/stdlib.h:
/usr/include/bits/waitflags.h:
/usr/include/bits/waitstatus.h:
/usr/include/alloca.h:
/usr/include/stdio.h:
/usr/include/libio.h:
/usr/include/_G_config.h:
/usr/include/wchar.h:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/stdarg.h:
/usr/include/bits/stdio_lim.h:
/usr/include/bits/sys_errlist.h:
/usr/include/bits/stdio.h:
/usr/include/ctype.h:
/usr/include/xlocale.h:
/usr/include/string.h:
/usr/include/bits/string.h:
/usr/include/bits/string2.h:
/usr/include/strings.h:
/usr/include/unistd.h:
/usr/include/bits/posix_opt.h:
/usr/include/bits/environments.h:
/usr/include/bits/confname.h:
/usr/include/getopt.h:
/usr/include/byteswap.h:
/usr/include/dirent.h:
/usr/include/bits/dirent.h:
/usr/include/bits/posix1_lim.h:
/usr/include/bits/local_lim.h:
/usr/include/linux/limits.h:
../../lib/mcrypt_modules.h:
@@ -0,0 +1,527 @@
# Makefile.in generated by automake 1.7.2 from Makefile.am.
# modules/modes/Makefile. Generated from Makefile.in by configure.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
srcdir = .
top_srcdir = ../..
pkgdatadir = $(datadir)/libmcrypt
pkglibdir = $(libdir)/libmcrypt
pkgincludedir = $(includedir)/libmcrypt
top_builddir = ../..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = /usr/bin/install -c
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = x86_64-unknown-linux-gnu
host_triplet = x86_64-unknown-linux-gnu
target_triplet = x86_64-unknown-linux-gnu
ACLOCAL = ${SHELL} /root/work/sdkfreebsd64.bak/libs/libmcrypt-2.5.7/missing --run aclocal-1.7
AMDEP_FALSE = #
AMDEP_TRUE =
AMTAR = ${SHELL} /root/work/sdkfreebsd64.bak/libs/libmcrypt-2.5.7/missing --run tar
AUTOCONF = ${SHELL} /root/work/sdkfreebsd64.bak/libs/libmcrypt-2.5.7/missing --run autoconf
AUTOHEADER = ${SHELL} /root/work/sdkfreebsd64.bak/libs/libmcrypt-2.5.7/missing --run autoheader
AUTOMAKE = ${SHELL} /root/work/sdkfreebsd64.bak/libs/libmcrypt-2.5.7/missing --run automake-1.7
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CPP = gcc -E
CPPFLAGS =
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = grep -E
EXEEXT =
EXTRA_ALGOS = cbc cfb ctr ecb ncfb nofb ofb stream threeway cast-128 gost rijndael-128 safer-sk64 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 safer-sk128 tripledes
EXTRA_OBJECTS = ../modules/modes/cbc.lo ../modules/modes/cfb.lo ../modules/modes/ctr.lo ../modules/modes/ecb.lo ../modules/modes/ncfb.lo ../modules/modes/nofb.lo ../modules/modes/ofb.lo ../modules/modes/stream.lo ../modules/algorithms/cast-128.lo ../modules/algorithms/gost.lo ../modules/algorithms/rijndael-128.lo ../modules/algorithms/twofish.lo ../modules/algorithms/arcfour.lo ../modules/algorithms/cast-256.lo ../modules/algorithms/loki97.lo ../modules/algorithms/rijndael-192.lo ../modules/algorithms/saferplus.lo ../modules/algorithms/wake.lo ../modules/algorithms/blowfish-compat.lo ../modules/algorithms/des.lo ../modules/algorithms/rijndael-256.lo ../modules/algorithms/serpent.lo ../modules/algorithms/xtea.lo ../modules/algorithms/blowfish.lo ../modules/algorithms/enigma.lo ../modules/algorithms/rc2.lo ../modules/algorithms/tripledes.lo
INCLTDL =
INSTALL_ALGORITHM_MODULES =
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_MODE_MODULES =
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
LDFLAGS =
LIBLTDL =
LIBLTDL_DIR =
LIBMCRYPT_CFLAGS = -I${prefix}/include
LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER = 7
LIBMCRYPT_LIBS = -L${exec_prefix}/lib -lmcrypt
LIBMCRYPT_MAJOR_VERSION = 2
LIBMCRYPT_MICRO_VERSION = 7
LIBMCRYPT_MINOR_VERSION = 5
LIBMCRYPT_MOST_RECENT_INTERFACE = 8
LIBMCRYPT_OLDEST_INTERFACE = 4
LIBMCRYPT_VERSION = 2.5.7
LIBOBJS =
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBTOOL_DEPS = ./ltmain.sh
LN_S = ln -s
LTLIBOBJS =
LT_AGE = 4
LT_CURRENT = 8
LT_REVISION = 7
MAKEINFO = ${SHELL} /root/work/sdkfreebsd64.bak/libs/libmcrypt-2.5.7/missing --run makeinfo
NOINSTALL_ALGORITHM_MODULES = threeway.la cast-128.la gost.la rijndael-128.la safer-sk64.la twofish.la arcfour.la cast-256.la loki97.la rijndael-192.la saferplus.la wake.la blowfish-compat.la des.la rijndael-256.la serpent.la xtea.la blowfish.la enigma.la rc2.la safer-sk128.la tripledes.la
NOINSTALL_MODE_MODULES = cbc.la cfb.la ctr.la ecb.la ncfb.la nofb.la ofb.la stream.la
OBJEXT = o
PACKAGE = libmcrypt
PACKAGE_BUGREPORT =
PACKAGE_NAME =
PACKAGE_STRING =
PACKAGE_TARNAME =
PACKAGE_VERSION =
PATH_SEPARATOR = :
RANLIB = ranlib
SET_MAKE =
SHELL = /bin/sh
STRIP = strip
VERSION = 2.5.7
ac_ct_CC = gcc
ac_ct_RANLIB = ranlib
ac_ct_STRIP = strip
am__fastdepCC_FALSE = #
am__fastdepCC_TRUE =
am__include = include
am__quote =
bindir = ${exec_prefix}/bin
build = x86_64-unknown-linux-gnu
build_alias =
build_cpu = x86_64
build_os = linux-gnu
build_vendor = unknown
datadir = ${prefix}/share
exec_prefix = ${prefix}
host = x86_64-unknown-linux-gnu
host_alias =
host_cpu = x86_64
host_os = linux-gnu
host_vendor = unknown
includedir = ${prefix}/include
infodir = ${prefix}/info
install_sh = /root/work/sdkfreebsd64.bak/libs/libmcrypt-2.5.7/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localstatedir = ${prefix}/var
mandir = ${prefix}/man
oldincludedir = /usr/include
prefix = /usr/local
program_transform_name = s,x,x,
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
subdirs =
sysconfdir = ${prefix}/etc
target = x86_64-unknown-linux-gnu
target_alias =
target_cpu = x86_64
target_os = linux-gnu
target_vendor = unknown
INCLUDES = -I. -I../.. $(INCLTDL) -I../../lib
EXTRA_DIST = ofb.h cfb.h nofb.h cbc.h ecb.h stream.h ncfb.h ctr.h
pkglib_LTLIBRARIES =
EXTRA_LTLIBRARIES = ofb.la cfb.la nofb.la cbc.la ecb.la stream.la ncfb.la \
ctr.la
noinst_LTLIBRARIES = cbc.la cfb.la ctr.la ecb.la ncfb.la nofb.la ofb.la stream.la
ofb_la_SOURCES = ofb.c
ofb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ctr_la_SOURCES = ctr.c
ctr_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
cfb_la_SOURCES = cfb.c
cfb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ncfb_la_SOURCES = ncfb.c
ncfb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
nofb_la_SOURCES = nofb.c
nofb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ecb_la_SOURCES = ecb.c
ecb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
cbc_la_SOURCES = cbc.c
cbc_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
stream_la_SOURCES = stream.c
stream_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
subdir = modules/modes
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES)
cbc_la_LIBADD =
am_cbc_la_OBJECTS = cbc.lo
cbc_la_OBJECTS = $(am_cbc_la_OBJECTS)
cfb_la_LIBADD =
am_cfb_la_OBJECTS = cfb.lo
cfb_la_OBJECTS = $(am_cfb_la_OBJECTS)
ctr_la_LIBADD =
am_ctr_la_OBJECTS = ctr.lo
ctr_la_OBJECTS = $(am_ctr_la_OBJECTS)
ecb_la_LIBADD =
am_ecb_la_OBJECTS = ecb.lo
ecb_la_OBJECTS = $(am_ecb_la_OBJECTS)
ncfb_la_LIBADD =
am_ncfb_la_OBJECTS = ncfb.lo
ncfb_la_OBJECTS = $(am_ncfb_la_OBJECTS)
nofb_la_LIBADD =
am_nofb_la_OBJECTS = nofb.lo
nofb_la_OBJECTS = $(am_nofb_la_OBJECTS)
ofb_la_LIBADD =
am_ofb_la_OBJECTS = ofb.lo
ofb_la_OBJECTS = $(am_ofb_la_OBJECTS)
stream_la_LIBADD =
am_stream_la_OBJECTS = stream.lo
stream_la_OBJECTS = $(am_stream_la_OBJECTS)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
DEP_FILES = ./$(DEPDIR)/cbc.Plo ./$(DEPDIR)/cfb.Plo \
./$(DEPDIR)/ctr.Plo ./$(DEPDIR)/ecb.Plo \
./$(DEPDIR)/ncfb.Plo ./$(DEPDIR)/nofb.Plo \
./$(DEPDIR)/ofb.Plo ./$(DEPDIR)/stream.Plo
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
DIST_SOURCES = $(cbc_la_SOURCES) $(cfb_la_SOURCES) $(ctr_la_SOURCES) \
$(ecb_la_SOURCES) $(ncfb_la_SOURCES) $(nofb_la_SOURCES) \
$(ofb_la_SOURCES) $(stream_la_SOURCES)
DIST_COMMON = Makefile.am Makefile.in
SOURCES = $(cbc_la_SOURCES) $(cfb_la_SOURCES) $(ctr_la_SOURCES) $(ecb_la_SOURCES) $(ncfb_la_SOURCES) $(nofb_la_SOURCES) $(ofb_la_SOURCES) $(stream_la_SOURCES)
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && \
$(AUTOMAKE) --foreign modules/modes/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
clean-noinstLTLIBRARIES:
-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" = "$$p" && dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
pkglibLTLIBRARIES_INSTALL = $(INSTALL)
install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$f"; \
$(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$f; \
else :; fi; \
done
uninstall-pkglibLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
p="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(pkglibdir)/$$p"; \
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(pkglibdir)/$$p; \
done
clean-pkglibLTLIBRARIES:
-test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" = "$$p" && dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
cbc.la: $(cbc_la_OBJECTS) $(cbc_la_DEPENDENCIES)
$(LINK) $(cbc_la_LDFLAGS) $(cbc_la_OBJECTS) $(cbc_la_LIBADD) $(LIBS)
cfb.la: $(cfb_la_OBJECTS) $(cfb_la_DEPENDENCIES)
$(LINK) $(cfb_la_LDFLAGS) $(cfb_la_OBJECTS) $(cfb_la_LIBADD) $(LIBS)
ctr.la: $(ctr_la_OBJECTS) $(ctr_la_DEPENDENCIES)
$(LINK) $(ctr_la_LDFLAGS) $(ctr_la_OBJECTS) $(ctr_la_LIBADD) $(LIBS)
ecb.la: $(ecb_la_OBJECTS) $(ecb_la_DEPENDENCIES)
$(LINK) $(ecb_la_LDFLAGS) $(ecb_la_OBJECTS) $(ecb_la_LIBADD) $(LIBS)
ncfb.la: $(ncfb_la_OBJECTS) $(ncfb_la_DEPENDENCIES)
$(LINK) $(ncfb_la_LDFLAGS) $(ncfb_la_OBJECTS) $(ncfb_la_LIBADD) $(LIBS)
nofb.la: $(nofb_la_OBJECTS) $(nofb_la_DEPENDENCIES)
$(LINK) $(nofb_la_LDFLAGS) $(nofb_la_OBJECTS) $(nofb_la_LIBADD) $(LIBS)
ofb.la: $(ofb_la_OBJECTS) $(ofb_la_DEPENDENCIES)
$(LINK) $(ofb_la_LDFLAGS) $(ofb_la_OBJECTS) $(ofb_la_LIBADD) $(LIBS)
stream.la: $(stream_la_OBJECTS) $(stream_la_DEPENDENCIES)
$(LINK) $(stream_la_LDFLAGS) $(stream_la_OBJECTS) $(stream_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT) core *.core
distclean-compile:
-rm -f *.tab.c
include ./$(DEPDIR)/cbc.Plo
include ./$(DEPDIR)/cfb.Plo
include ./$(DEPDIR)/ctr.Plo
include ./$(DEPDIR)/ecb.Plo
include ./$(DEPDIR)/ncfb.Plo
include ./$(DEPDIR)/nofb.Plo
include ./$(DEPDIR)/ofb.Plo
include ./$(DEPDIR)/stream.Plo
distclean-depend:
-rm -rf ./$(DEPDIR)
.c.o:
if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
fi
# source='$<' object='$@' libtool=no \
# depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
# $(CCDEPMODE) $(depcomp) \
# $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
.c.obj:
if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
fi
# source='$<' object='$@' libtool=no \
# depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' \
# $(CCDEPMODE) $(depcomp) \
# $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
.c.lo:
if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
fi
# source='$<' object='$@' libtool=yes \
# depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' \
# $(CCDEPMODE) $(depcomp) \
# $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
ETAGS = etags
ETAGSFLAGS =
CTAGS = ctags
CTAGSFLAGS =
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES)
installdirs:
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
clean-pkglibLTLIBRARIES mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-compile distclean-depend \
distclean-generic distclean-libtool distclean-tags
dvi: dvi-am
dvi-am:
info: info-am
info-am:
install-data-am:
install-exec-am: install-pkglibLTLIBRARIES
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-info-am uninstall-pkglibLTLIBRARIES
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libtool clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES \
ctags distclean distclean-compile distclean-depend \
distclean-generic distclean-libtool distclean-tags distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-exec install-exec-am install-info \
install-info-am install-man install-pkglibLTLIBRARIES \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \
pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am \
uninstall-pkglibLTLIBRARIES
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
@@ -0,0 +1,27 @@
## Process this file with automake to produce Makefile.in
DEFS = @DEFS@
INCLUDES = -I. -I../.. $(INCLTDL) -I../../lib
EXTRA_DIST = ofb.h cfb.h nofb.h cbc.h ecb.h stream.h ncfb.h ctr.h
pkglib_LTLIBRARIES = @INSTALL_MODE_MODULES@
EXTRA_LTLIBRARIES = ofb.la cfb.la nofb.la cbc.la ecb.la stream.la ncfb.la \
ctr.la
noinst_LTLIBRARIES = @NOINSTALL_MODE_MODULES@
ofb_la_SOURCES = ofb.c
ofb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ctr_la_SOURCES = ctr.c
ctr_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
cfb_la_SOURCES = cfb.c
cfb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ncfb_la_SOURCES = ncfb.c
ncfb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
nofb_la_SOURCES = nofb.c
nofb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ecb_la_SOURCES = ecb.c
ecb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
cbc_la_SOURCES = cbc.c
cbc_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
stream_la_SOURCES = stream.c
stream_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
@@ -0,0 +1,527 @@
# Makefile.in generated by automake 1.7.2 from Makefile.am.
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
EXTRA_ALGOS = @EXTRA_ALGOS@
EXTRA_OBJECTS = @EXTRA_OBJECTS@
INCLTDL = @INCLTDL@
INSTALL_ALGORITHM_MODULES = @INSTALL_ALGORITHM_MODULES@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_MODE_MODULES = @INSTALL_MODE_MODULES@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBLTDL = @LIBLTDL@
LIBLTDL_DIR = @LIBLTDL_DIR@
LIBMCRYPT_CFLAGS = @LIBMCRYPT_CFLAGS@
LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER = @LIBMCRYPT_CURRENT_INTERFACE_IMPLEMENTATION_NUMBER@
LIBMCRYPT_LIBS = @LIBMCRYPT_LIBS@
LIBMCRYPT_MAJOR_VERSION = @LIBMCRYPT_MAJOR_VERSION@
LIBMCRYPT_MICRO_VERSION = @LIBMCRYPT_MICRO_VERSION@
LIBMCRYPT_MINOR_VERSION = @LIBMCRYPT_MINOR_VERSION@
LIBMCRYPT_MOST_RECENT_INTERFACE = @LIBMCRYPT_MOST_RECENT_INTERFACE@
LIBMCRYPT_OLDEST_INTERFACE = @LIBMCRYPT_OLDEST_INTERFACE@
LIBMCRYPT_VERSION = @LIBMCRYPT_VERSION@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_AGE = @LT_AGE@
LT_CURRENT = @LT_CURRENT@
LT_REVISION = @LT_REVISION@
MAKEINFO = @MAKEINFO@
NOINSTALL_ALGORITHM_MODULES = @NOINSTALL_ALGORITHM_MODULES@
NOINSTALL_MODE_MODULES = @NOINSTALL_MODE_MODULES@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
ac_ct_CC = @ac_ct_CC@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__include = @am__include@
am__quote = @am__quote@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localstatedir = @localstatedir@
mandir = @mandir@
oldincludedir = @oldincludedir@
prefix = @prefix@
program_transform_name = @program_transform_name@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
subdirs = @subdirs@
sysconfdir = @sysconfdir@
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
INCLUDES = -I. -I../.. $(INCLTDL) -I../../lib
EXTRA_DIST = ofb.h cfb.h nofb.h cbc.h ecb.h stream.h ncfb.h ctr.h
pkglib_LTLIBRARIES = @INSTALL_MODE_MODULES@
EXTRA_LTLIBRARIES = ofb.la cfb.la nofb.la cbc.la ecb.la stream.la ncfb.la \
ctr.la
noinst_LTLIBRARIES = @NOINSTALL_MODE_MODULES@
ofb_la_SOURCES = ofb.c
ofb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ctr_la_SOURCES = ctr.c
ctr_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
cfb_la_SOURCES = cfb.c
cfb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ncfb_la_SOURCES = ncfb.c
ncfb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
nofb_la_SOURCES = nofb.c
nofb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
ecb_la_SOURCES = ecb.c
ecb_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
cbc_la_SOURCES = cbc.c
cbc_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
stream_la_SOURCES = stream.c
stream_la_LDFLAGS = -module -avoid-version -rpath $(pkglibdir)
subdir = modules/modes
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES)
cbc_la_LIBADD =
am_cbc_la_OBJECTS = cbc.lo
cbc_la_OBJECTS = $(am_cbc_la_OBJECTS)
cfb_la_LIBADD =
am_cfb_la_OBJECTS = cfb.lo
cfb_la_OBJECTS = $(am_cfb_la_OBJECTS)
ctr_la_LIBADD =
am_ctr_la_OBJECTS = ctr.lo
ctr_la_OBJECTS = $(am_ctr_la_OBJECTS)
ecb_la_LIBADD =
am_ecb_la_OBJECTS = ecb.lo
ecb_la_OBJECTS = $(am_ecb_la_OBJECTS)
ncfb_la_LIBADD =
am_ncfb_la_OBJECTS = ncfb.lo
ncfb_la_OBJECTS = $(am_ncfb_la_OBJECTS)
nofb_la_LIBADD =
am_nofb_la_OBJECTS = nofb.lo
nofb_la_OBJECTS = $(am_nofb_la_OBJECTS)
ofb_la_LIBADD =
am_ofb_la_OBJECTS = ofb.lo
ofb_la_OBJECTS = $(am_ofb_la_OBJECTS)
stream_la_LIBADD =
am_stream_la_OBJECTS = stream.lo
stream_la_OBJECTS = $(am_stream_la_OBJECTS)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/cbc.Plo ./$(DEPDIR)/cfb.Plo \
@AMDEP_TRUE@ ./$(DEPDIR)/ctr.Plo ./$(DEPDIR)/ecb.Plo \
@AMDEP_TRUE@ ./$(DEPDIR)/ncfb.Plo ./$(DEPDIR)/nofb.Plo \
@AMDEP_TRUE@ ./$(DEPDIR)/ofb.Plo ./$(DEPDIR)/stream.Plo
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
DIST_SOURCES = $(cbc_la_SOURCES) $(cfb_la_SOURCES) $(ctr_la_SOURCES) \
$(ecb_la_SOURCES) $(ncfb_la_SOURCES) $(nofb_la_SOURCES) \
$(ofb_la_SOURCES) $(stream_la_SOURCES)
DIST_COMMON = Makefile.am Makefile.in
SOURCES = $(cbc_la_SOURCES) $(cfb_la_SOURCES) $(ctr_la_SOURCES) $(ecb_la_SOURCES) $(ncfb_la_SOURCES) $(nofb_la_SOURCES) $(ofb_la_SOURCES) $(stream_la_SOURCES)
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && \
$(AUTOMAKE) --foreign modules/modes/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
clean-noinstLTLIBRARIES:
-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
@list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" = "$$p" && dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
pkglibLTLIBRARIES_INSTALL = $(INSTALL)
install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$f"; \
$(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$f; \
else :; fi; \
done
uninstall-pkglibLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
p="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(pkglibdir)/$$p"; \
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(pkglibdir)/$$p; \
done
clean-pkglibLTLIBRARIES:
-test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
@list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" = "$$p" && dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
cbc.la: $(cbc_la_OBJECTS) $(cbc_la_DEPENDENCIES)
$(LINK) $(cbc_la_LDFLAGS) $(cbc_la_OBJECTS) $(cbc_la_LIBADD) $(LIBS)
cfb.la: $(cfb_la_OBJECTS) $(cfb_la_DEPENDENCIES)
$(LINK) $(cfb_la_LDFLAGS) $(cfb_la_OBJECTS) $(cfb_la_LIBADD) $(LIBS)
ctr.la: $(ctr_la_OBJECTS) $(ctr_la_DEPENDENCIES)
$(LINK) $(ctr_la_LDFLAGS) $(ctr_la_OBJECTS) $(ctr_la_LIBADD) $(LIBS)
ecb.la: $(ecb_la_OBJECTS) $(ecb_la_DEPENDENCIES)
$(LINK) $(ecb_la_LDFLAGS) $(ecb_la_OBJECTS) $(ecb_la_LIBADD) $(LIBS)
ncfb.la: $(ncfb_la_OBJECTS) $(ncfb_la_DEPENDENCIES)
$(LINK) $(ncfb_la_LDFLAGS) $(ncfb_la_OBJECTS) $(ncfb_la_LIBADD) $(LIBS)
nofb.la: $(nofb_la_OBJECTS) $(nofb_la_DEPENDENCIES)
$(LINK) $(nofb_la_LDFLAGS) $(nofb_la_OBJECTS) $(nofb_la_LIBADD) $(LIBS)
ofb.la: $(ofb_la_OBJECTS) $(ofb_la_DEPENDENCIES)
$(LINK) $(ofb_la_LDFLAGS) $(ofb_la_OBJECTS) $(ofb_la_LIBADD) $(LIBS)
stream.la: $(stream_la_OBJECTS) $(stream_la_DEPENDENCIES)
$(LINK) $(stream_la_LDFLAGS) $(stream_la_OBJECTS) $(stream_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT) core *.core
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cbc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cfb.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ctr.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecb.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ncfb.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nofb.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ofb.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stream.Plo@am__quote@
distclean-depend:
-rm -rf ./$(DEPDIR)
.c.o:
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
.c.obj:
@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
.c.lo:
@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
ETAGS = etags
ETAGSFLAGS =
CTAGS = ctags
CTAGSFLAGS =
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES)
installdirs:
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
clean-pkglibLTLIBRARIES mostlyclean-am
distclean: distclean-am
distclean-am: clean-am distclean-compile distclean-depend \
distclean-generic distclean-libtool distclean-tags
dvi: dvi-am
dvi-am:
info: info-am
info-am:
install-data-am:
install-exec-am: install-pkglibLTLIBRARIES
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-info-am uninstall-pkglibLTLIBRARIES
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libtool clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES \
ctags distclean distclean-compile distclean-depend \
distclean-generic distclean-libtool distclean-tags distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-exec install-exec-am install-info \
install-info-am install-man install-pkglibLTLIBRARIES \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \
pdf-am ps ps-am tags uninstall uninstall-am uninstall-info-am \
uninstall-pkglibLTLIBRARIES
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
@@ -0,0 +1,176 @@
/*
* Copyright (C) 1998,1999,2000,2001 Nikos Mavroyanopoulos
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <libdefs.h>
#include <mcrypt_modules.h>
#define _init_mcrypt cbc_LTX__init_mcrypt
#define _mcrypt_set_state cbc_LTX__mcrypt_set_state
#define _mcrypt_get_state cbc_LTX__mcrypt_get_state
#define _end_mcrypt cbc_LTX__end_mcrypt
#define _mcrypt cbc_LTX__mcrypt
#define _mdecrypt cbc_LTX__mdecrypt
#define _has_iv cbc_LTX__has_iv
#define _is_block_mode cbc_LTX__is_block_mode
#define _is_block_algorithm_mode cbc_LTX__is_block_algorithm_mode
#define _mcrypt_get_modes_name cbc_LTX__mcrypt_get_modes_name
#define _mcrypt_mode_get_size cbc_LTX__mcrypt_mode_get_size
#define _mcrypt_mode_version cbc_LTX__mcrypt_mode_version
typedef struct cbc_buf {
word32 *previous_ciphertext;
word32 *previous_cipher;
int blocksize;
} CBC_BUFFER;
/* CBC MODE */
int _init_mcrypt( CBC_BUFFER* buf,void *key, int lenofkey, void *IV, int size)
{
/* For cbc */
buf->previous_ciphertext =
buf->previous_cipher = NULL;
buf->blocksize = size;
buf->previous_ciphertext = malloc( size);
buf->previous_cipher = malloc( size);
if (buf->previous_ciphertext==NULL ||
buf->previous_cipher==NULL) goto freeall;
if (IV!=NULL) {
memcpy(buf->previous_ciphertext, IV, size);
} else {
memset(buf->previous_ciphertext, 0, size);
}
return 0;
freeall:
free(buf->previous_ciphertext);
free(buf->previous_cipher);
return -1;
}
int _mcrypt_set_state( CBC_BUFFER* buf, void *IV, int size)
{
/* For cbc */
memcpy(buf->previous_ciphertext, IV, size);
memcpy(buf->previous_cipher, IV, size);
return 0;
}
int _mcrypt_get_state( CBC_BUFFER* buf, void *IV, int *size)
{
if (*size < buf->blocksize) {
*size = buf->blocksize;
return -1;
}
*size = buf->blocksize;
memcpy( IV, buf->previous_ciphertext, buf->blocksize);
return 0;
}
void _end_mcrypt( CBC_BUFFER* buf) {
free(buf->previous_ciphertext);
free(buf->previous_cipher);
}
int _mcrypt( CBC_BUFFER* buf, void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{
word32 *fplain = plaintext;
word32 *plain;
int i, j;
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
for (j = 0; j < len / blocksize; j++) {
plain = &fplain[j * blocksize / sizeof(word32)];
for (i = 0; i < blocksize / sizeof(word32); i++) {
plain[i] ^= buf->previous_ciphertext[i];
}
_mcrypt_block_encrypt(akey, plain);
/* Copy the ciphertext to prev_ciphertext */
memcpy(buf->previous_ciphertext, plain, blocksize);
}
if (j==0 && len!=0) return -1;
return 0;
}
int _mdecrypt( CBC_BUFFER* buf, void *ciphertext, int len, int blocksize,void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{
word32 *cipher;
word32 *fcipher = ciphertext;
int i, j;
void (*_mcrypt_block_decrypt) (void *, void *);
_mcrypt_block_decrypt = func2;
for (j = 0; j < len / blocksize; j++) {
cipher = &fcipher[j * blocksize / sizeof(word32)];
memcpy(buf->previous_cipher, cipher, blocksize);
_mcrypt_block_decrypt(akey, cipher);
for (i = 0; i < blocksize / sizeof(word32); i++) {
cipher[i] ^= buf->previous_ciphertext[i];
}
/* Copy the ciphertext to prev_cipher */
memcpy(buf->previous_ciphertext, buf->previous_cipher, blocksize);
}
if (j==0 && len!=0) return -1;
return 0;
}
int _has_iv() { return 1; }
int _is_block_mode() { return 1; }
int _is_block_algorithm_mode() { return 1; }
const char *_mcrypt_get_modes_name() { return "CBC";}
int _mcrypt_mode_get_size () {return sizeof(CBC_BUFFER);}
word32 _mcrypt_mode_version() {
return 20010801;
}
#ifdef WIN32
# ifdef USE_LTDL
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
# endif
#endif
@@ -0,0 +1,12 @@
#ifndef USE_MODULES
int _cbc_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
int _mcrypt_cbc(int td, void* buf,void *plaintext, int len);
int _mdecrypt_cbc(int td, void* buf, void *plaintext, int len);
int _cbc_is_block_mode();
int _cbc_has_iv();
int _cbc_is_block_algorithm_mode();
char *_mcrypt_cbc_get_modes_name();
int _mcrypt_cbc_mode_get_size ();
int _mcrypt_cbc_get_iv_size(int td);
word32 _mcrypt_cbc_mode_version();
#endif
@@ -0,0 +1,171 @@
/*
* Copyright (C) 1998,1999,2000,2001,2002 Nikos Mavroyanopoulos
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <libdefs.h>
#include <mcrypt_modules.h>
#define _init_mcrypt cfb_LTX__init_mcrypt
#define _mcrypt_set_state cfb_LTX__mcrypt_set_state
#define _mcrypt_get_state cfb_LTX__mcrypt_get_state
#define _end_mcrypt cfb_LTX__end_mcrypt
#define _mcrypt cfb_LTX__mcrypt
#define _mdecrypt cfb_LTX__mdecrypt
#define _has_iv cfb_LTX__has_iv
#define _is_block_mode cfb_LTX__is_block_mode
#define _is_block_algorithm_mode cfb_LTX__is_block_algorithm_mode
#define _mcrypt_get_modes_name cfb_LTX__mcrypt_get_modes_name
#define _mcrypt_mode_get_size cfb_LTX__mcrypt_mode_get_size
#define _mcrypt_mode_version cfb_LTX__mcrypt_mode_version
typedef struct cfb_buf {
byte* s_register;
byte* enc_s_register;
int blocksize;
} CFB_BUFFER;
/* CFB MODE */
int _init_mcrypt( CFB_BUFFER* buf, void *key, int lenofkey, void *IV, int size)
{
buf->s_register = buf->enc_s_register = NULL;
buf->blocksize = size;
/* For cfb */
buf->s_register=malloc( size);
if (buf->s_register==NULL) goto freeall;
buf->enc_s_register=malloc( size);
if (buf->enc_s_register==NULL) goto freeall;
if (IV!=NULL) {
memcpy(buf->s_register, IV, size);
} else {
memset(buf->s_register, 0, size);
}
/* End cfb */
return 0;
freeall:
free(buf->s_register);
free(buf->enc_s_register);
return -1;
}
int _mcrypt_set_state( CFB_BUFFER* buf, void *IV, int size)
{
memcpy(buf->enc_s_register, IV, size);
memcpy(buf->s_register, IV, size);
return 0;
}
int _mcrypt_get_state( CFB_BUFFER* buf, byte *IV, int *size)
{
if (*size < buf->blocksize) {
*size = buf->blocksize;
return -1;
}
*size = buf->blocksize;
memcpy( IV, buf->s_register, buf->blocksize);
return 0;
}
void _end_mcrypt( CFB_BUFFER* buf) {
free(buf->s_register);
free(buf->enc_s_register);
}
int _mcrypt( CFB_BUFFER* buf, void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext is 1 byte (8bit cfb) */
char *plain = plaintext;
int i, j;
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
for (j = 0; j < len; j++) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
plain[j] ^= buf->enc_s_register[0];
/* Shift the register */
for (i = 0; i < (blocksize - 1); i++)
buf->s_register[i] = buf->s_register[i + 1];
buf->s_register[blocksize - 1] = plain[j];
}
return 0;
}
int _mdecrypt( CFB_BUFFER* buf, void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext is 1 byte (8bit ofb) */
char *plain = plaintext;
int i, j;
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
for (j = 0; j < len; j++) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
/* Shift the register */
for (i = 0; i < (blocksize - 1); i++)
buf->s_register[i] = buf->s_register[i + 1];
buf->s_register[blocksize - 1] = plain[j];
plain[j] ^= buf->enc_s_register[0];
}
return 0;
}
int _has_iv() { return 1; }
int _is_block_mode() { return 0; }
int _is_block_algorithm_mode() { return 1; }
const char *_mcrypt_get_modes_name() { return "CFB"; }
int _mcrypt_mode_get_size () {return sizeof(CFB_BUFFER);}
word32 _mcrypt_mode_version() {
return 20020310;
}
#ifdef WIN32
# ifdef USE_LTDL
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
# endif
#endif
@@ -0,0 +1,12 @@
#ifndef USE_MODULES
int _cfb_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
int _mcrypt_cfb(int td, void* buf,void *plaintext, int len);
int _mdecrypt_cfb(int td, void* buf, void *plaintext, int len);
int _cfb_is_block_mode();
int _cfb_has_iv();
int _cfb_is_block_algorithm_mode();
char *_mcrypt_cfb_get_modes_name();
int _mcrypt_cfb_mode_get_size ();
int _mcrypt_cfb_get_iv_size(int td);
word32 _mcrypt_cfb_mode_version();
#endif
@@ -0,0 +1,250 @@
/*
* Copyright (C) 2002 Nikos Mavroyanopoulos
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <libdefs.h>
#include <mcrypt_modules.h>
#define _init_mcrypt ctr_LTX__init_mcrypt
#define _mcrypt_set_state ctr_LTX__mcrypt_set_state
#define _mcrypt_get_state ctr_LTX__mcrypt_get_state
#define _end_mcrypt ctr_LTX__end_mcrypt
#define _mcrypt ctr_LTX__mcrypt
#define _mdecrypt ctr_LTX__mdecrypt
#define _has_iv ctr_LTX__has_iv
#define _is_block_mode ctr_LTX__is_block_mode
#define _is_block_algorithm_mode ctr_LTX__is_block_algorithm_mode
#define _mcrypt_get_modes_name ctr_LTX__mcrypt_get_modes_name
#define _mcrypt_mode_get_size ctr_LTX__mcrypt_mode_get_size
#define _mcrypt_mode_version ctr_LTX__mcrypt_mode_version
typedef struct ctr_buf {
byte* enc_counter;
byte* c_counter;
int c_counter_pos;
int blocksize;
} CTR_BUFFER;
/* CTR MODE */
/* This function will add one to the given number (as a byte string).
* has been reached.
*/
static void increase_counter( byte *x, int x_size) {
register int i, y=0;
for (i=x_size-1;i>=0;i--) {
y = 0;
if ( x[i] == 0xff) {
x[i] = 0;
y = 1;
} else x[i]++;
if (y==0) break;
}
return;
}
/* size holds the size of the IV (counter in this mode).
* This is the block size.
*/
int _init_mcrypt( CTR_BUFFER* buf, void *key, int lenofkey, void *IV, int size)
{
buf->c_counter = buf->enc_counter = NULL;
/* For ctr */
buf->c_counter_pos = 0;
buf->blocksize = size;
buf->c_counter=calloc( 1, size);
if (buf->c_counter==NULL) goto freeall;
buf->enc_counter=calloc( 1, size);
if (buf->enc_counter==NULL) goto freeall;
if (IV!=NULL) {
memcpy(buf->enc_counter, IV, size);
memcpy(buf->c_counter, IV, size);
}
/* End ctr */
return 0;
freeall:
free(buf->c_counter);
free(buf->enc_counter);
return -1;
}
int _mcrypt_set_state( CTR_BUFFER* buf, byte *IV, int size)
{
buf->c_counter_pos = IV[0];
memcpy(buf->c_counter, &IV[1], size-1);
memcpy(buf->enc_counter, &IV[1], size-1);
return 0;
}
int _mcrypt_get_state( CTR_BUFFER* buf, byte *IV, int *size)
{
if (*size < buf->blocksize + 1) {
*size = buf->blocksize + 1;
return -1;
}
*size = buf->blocksize + 1;
IV[0] = buf->c_counter_pos;
memcpy( &IV[1], buf->c_counter, buf->blocksize);
return 0;
}
void _end_mcrypt( CTR_BUFFER* buf) {
free(buf->c_counter);
free(buf->enc_counter);
}
inline static
void xor_stuff( CTR_BUFFER *buf, void* akey, void (*func)(void*,void*), byte* plain, int blocksize, int xor_size)
{
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
if (xor_size == blocksize) {
if (buf->c_counter_pos == 0) {
memcpy( buf->enc_counter, buf->c_counter, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_counter);
memxor( plain, buf->enc_counter, blocksize);
increase_counter( buf->c_counter, blocksize);
} else {
int size = blocksize - buf->c_counter_pos;
memxor( plain, &buf->enc_counter[buf->c_counter_pos],
size);
increase_counter( buf->c_counter, blocksize);
memcpy( buf->enc_counter, buf->c_counter, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_counter);
memxor( &plain[size], buf->enc_counter,
buf->c_counter_pos);
/* buf->c_counter_pos remains the same */
}
} else { /* xor_size != blocksize */
if (buf->c_counter_pos == 0) {
memcpy( buf->enc_counter, buf->c_counter, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_counter);
memxor( plain, buf->enc_counter, xor_size);
buf->c_counter_pos = xor_size;
} else {
int size = blocksize - buf->c_counter_pos;
int min_size = size < xor_size ? size: xor_size;
memxor( plain, &buf->enc_counter[buf->c_counter_pos],
min_size);
buf->c_counter_pos += min_size;
if (min_size >= xor_size)
return;
increase_counter( buf->c_counter, blocksize);
memcpy( buf->enc_counter, buf->c_counter, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_counter);
memxor( &plain[min_size], buf->enc_counter,
xor_size - min_size);
buf->c_counter_pos = xor_size - min_size;
}
}
return;
}
int _mcrypt( CTR_BUFFER* buf,void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext can be any size */
byte *plain;
word32 *fplain = plaintext;
int i, j=0;
int modlen;
plain = plaintext;
for (j = 0; j < len / blocksize; j++) {
xor_stuff( buf, akey, func, plain, blocksize, blocksize);
plain += blocksize;
/* Put the new register */
}
modlen = len % blocksize;
if (modlen > 0) {
/* This is only usefull if encrypting the
* final block. Otherwise you'll not be
* able to decrypt it.
*/
xor_stuff( buf, akey, func, plain, blocksize, modlen);
}
return 0;
}
int _mdecrypt( CTR_BUFFER* buf,void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext can be any size */
return _mcrypt( buf, plaintext, len, blocksize, akey, func, func2);
}
int _has_iv() { return 1; }
int _is_block_mode() { return 0; }
int _is_block_algorithm_mode() { return 1; }
const char *_mcrypt_get_modes_name() { return "CTR";}
int _mcrypt_mode_get_size () {return sizeof(CTR_BUFFER);}
word32 _mcrypt_mode_version() {
return 20020307;
}
#ifdef WIN32
# ifdef USE_LTDL
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
# endif
#endif
@@ -0,0 +1,12 @@
#ifndef USE_MODULES
int _ctr_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
int _mcrypt_ctr(int td, void* buf,void *plaintext, int len);
int _mdecrypt_ctr(int td, void* buf, void *plaintext, int len);
int _ctr_is_block_mode();
int _ctr_has_iv();
int _ctr_is_block_algorithm_mode();
char *_mcrypt_ctr_get_modes_name();
int _mcrypt_ctr_mode_get_size ();
int _mcrypt_ctr_get_iv_size(int td);
word32 _mcrypt_ctr_mode_version();
#endif
@@ -0,0 +1,98 @@
/*
* Copyright (C) 1998,1999,2000,2001 Nikos Mavroyanopoulos
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <libdefs.h>
#include <mcrypt_modules.h>
/* EBC MODE */
#define _mcrypt_set_state ecb_LTX__mcrypt_set_state
#define _mcrypt_get_state ecb_LTX__mcrypt_get_state
#define _init_mcrypt ecb_LTX__init_mcrypt
#define _end_mcrypt ecb_LTX__end_mcrypt
#define _mcrypt ecb_LTX__mcrypt
#define _mdecrypt ecb_LTX__mdecrypt
#define _has_iv ecb_LTX__has_iv
#define _is_block_mode ecb_LTX__is_block_mode
#define _is_block_algorithm_mode ecb_LTX__is_block_algorithm_mode
#define _mcrypt_get_modes_name ecb_LTX__mcrypt_get_modes_name
#define _mcrypt_mode_get_size ecb_LTX__mcrypt_mode_get_size
#define _mcrypt_mode_version ecb_LTX__mcrypt_mode_version
int _init_mcrypt( void* ign, void *key, int lenofkey, void *IV, int size)
{
return 0;
}
int _mcrypt_set_state( void* buf, void *IV, int size) { return -1; }
int _mcrypt_get_state( void* buf, void *IV, int *size) { return -1; }
int _end_mcrypt (void* buf) {return 0;}
int _mcrypt( void* ign, void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{
int j;
char *plain = plaintext;
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
for (j = 0; j < len / blocksize; j++) {
_mcrypt_block_encrypt(akey, &plain[j * blocksize]);
}
if (j==0 && len!=0) return -1; /* no blocks were encrypted */
return 0;
}
int _mdecrypt( void* ign, void *ciphertext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{
int j;
char *cipher = ciphertext;
void (*_mcrypt_block_decrypt) (void *, void *);
_mcrypt_block_decrypt = func2;
for (j = 0; j < len / blocksize; j++) {
_mcrypt_block_decrypt(akey, &cipher[j * blocksize]);
}
if (j==0 && len!=0) return -1; /* no blocks were encrypted */
return 0;
}
int _has_iv() { return 0; }
int _is_block_mode() { return 1; }
int _is_block_algorithm_mode() { return 1; }
const char *_mcrypt_get_modes_name() { return "ECB";}
int _mcrypt_mode_get_size () {return 0;}
word32 _mcrypt_mode_version() {
return 20010801;
}
#ifdef WIN32
# ifdef USE_LTDL
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
# endif
#endif
@@ -0,0 +1,12 @@
#ifndef USE_MODULES
int _ecb_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
int _mcrypt_ecb(int td, void* buf,void *plaintext, int len);
int _mdecrypt_ecb(int td, void* buf, void *plaintext, int len);
int _ecb_is_block_mode();
int _ecb_has_iv();
int _ecb_is_block_algorithm_mode();
char *_mcrypt_ecb_get_modes_name();
int _mcrypt_ecb_mode_get_size ();
int _mcrypt_ecb_get_iv_size(int td);
word32 _mcrypt_ecb_mode_version();
#endif
@@ -0,0 +1,331 @@
/*
* Copyright (C) 1998,1999,2000,2001 Nikos Mavroyanopoulos
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <libdefs.h>
#include <mcrypt_modules.h>
#define _init_mcrypt ncfb_LTX__init_mcrypt
#define _mcrypt_set_state ncfb_LTX__mcrypt_set_state
#define _mcrypt_get_state ncfb_LTX__mcrypt_get_state
#define _end_mcrypt ncfb_LTX__end_mcrypt
#define _mcrypt ncfb_LTX__mcrypt
#define _mdecrypt ncfb_LTX__mdecrypt
#define _has_iv ncfb_LTX__has_iv
#define _is_block_mode ncfb_LTX__is_block_mode
#define _is_block_algorithm_mode ncfb_LTX__is_block_algorithm_mode
#define _mcrypt_get_modes_name ncfb_LTX__mcrypt_get_modes_name
#define _mcrypt_mode_get_size ncfb_LTX__mcrypt_mode_get_size
#define _mcrypt_mode_version ncfb_LTX__mcrypt_mode_version
typedef struct ncfb_buf {
byte* enc_s_register;
byte* s_register;
int s_register_pos;
int blocksize;
} nCFB_BUFFER;
/* nCFB MODE */
int _init_mcrypt( nCFB_BUFFER* buf, void *key, int lenofkey, void *IV, int size)
{
buf->enc_s_register = buf->s_register = NULL;
buf->s_register_pos = 0;
buf->blocksize = size;
/* For cfb */
buf->enc_s_register=malloc( size);
if (buf->enc_s_register==NULL) goto freeall;
buf->s_register=malloc( size);
if (buf->s_register==NULL) goto freeall;
if (IV!=NULL) {
memcpy(buf->enc_s_register, IV, size);
memcpy(buf->s_register, IV, size);
} else {
memset(buf->enc_s_register, 0, size);
memset(buf->s_register, 0, size);
}
/* End ncfb */
return 0;
freeall:
free(buf->enc_s_register);
free(buf->s_register);
return -1;
}
int _mcrypt_set_state( nCFB_BUFFER* buf, byte *IV, int size)
{
buf->s_register_pos = IV[0];
memcpy(buf->enc_s_register, &IV[1], size-1);
memcpy(buf->s_register, &IV[1], size-1);
return 0;
}
int _mcrypt_get_state( nCFB_BUFFER* buf, byte *IV, int *size)
{
if (*size < buf->blocksize + 1) {
*size = buf->blocksize + 1;
return -1;
}
*size = buf->blocksize + 1;
IV[0] = buf->s_register_pos;
memcpy( &IV[1], buf->s_register, buf->blocksize);
return 0;
}
void _end_mcrypt( nCFB_BUFFER* buf) {
free(buf->enc_s_register);
free(buf->s_register);
}
inline static
void xor_stuff_en( nCFB_BUFFER *buf, void* akey, void (*func)(void*,void*), byte* plain, int blocksize, int xor_size)
{
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
if (xor_size == blocksize) {
if (buf->s_register_pos == 0) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memxor( plain, buf->enc_s_register, blocksize);
memcpy(buf->s_register, plain, blocksize);
} else {
int size = blocksize - buf->s_register_pos;
memxor( plain, &buf->enc_s_register[buf->s_register_pos],
size);
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memxor( &plain[size], buf->enc_s_register,
buf->s_register_pos);
memcpy( &buf->s_register[size],
plain, buf->s_register_pos);
/* buf->s_register_pos remains the same */
}
} else { /* xor_size != blocksize */
if (buf->s_register_pos == 0) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memxor( plain, buf->enc_s_register, xor_size);
memcpy(buf->s_register, plain, xor_size);
buf->s_register_pos = xor_size;
} else {
int size = blocksize - buf->s_register_pos;
int min_size = size < xor_size ? size: xor_size;
memxor( plain, &buf->enc_s_register[buf->s_register_pos],
min_size);
memcpy( &buf->s_register[buf->s_register_pos], plain, min_size);
buf->s_register_pos += min_size;
if (min_size >= xor_size)
return;
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memxor( &plain[min_size], buf->s_register,
xor_size - min_size);
buf->s_register_pos = xor_size - min_size;
memcpy(buf->s_register, plain, xor_size - min_size);
}
}
return;
}
inline static
void xor_stuff_de( nCFB_BUFFER *buf, void* akey, void (*func)(void*,void*), byte* cipher, int blocksize, int xor_size)
{
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
if (xor_size == blocksize) {
if (buf->s_register_pos == 0) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memcpy(buf->s_register, cipher, blocksize);
memxor( cipher, buf->enc_s_register, blocksize);
} else {
int size = blocksize - buf->s_register_pos;
memxor( cipher, &buf->enc_s_register[buf->s_register_pos],
size);
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memcpy( &buf->s_register[size],
cipher, buf->s_register_pos);
memxor( &cipher[size], buf->enc_s_register,
buf->s_register_pos);
/* buf->s_register_pos remains the same */
}
} else { /* xor_size != blocksize */
if (buf->s_register_pos == 0) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memcpy(buf->s_register, cipher, xor_size);
memxor( cipher, buf->enc_s_register, xor_size);
buf->s_register_pos = xor_size;
} else {
int size = blocksize - buf->s_register_pos;
int min_size = size < xor_size ? size: xor_size;
memxor( cipher, &buf->enc_s_register[buf->s_register_pos],
min_size);
memcpy( &buf->s_register[buf->s_register_pos], cipher, min_size);
buf->s_register_pos += min_size;
if (min_size >= xor_size)
return;
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memcpy(buf->s_register, cipher, xor_size - min_size);
memxor( &cipher[min_size], buf->s_register,
xor_size - min_size);
buf->s_register_pos = xor_size - min_size;
}
}
return;
}
int _mcrypt( nCFB_BUFFER* buf,void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext is n*blocksize bytes (nbit cfb) */
byte* plain;
int i, j=0;
void (*_mcrypt_block_encrypt) (void *, void *);
int modlen;
_mcrypt_block_encrypt = func;
plain = plaintext;
for (j = 0; j < len / blocksize; j++) {
xor_stuff_en( buf, akey, func, plain, blocksize, blocksize);
plain += blocksize;
}
modlen = len % blocksize;
if (modlen > 0) {
xor_stuff_en( buf, akey, func, plain, blocksize, modlen);
}
return 0;
}
int _mdecrypt( nCFB_BUFFER* buf,void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext is n*blocksize bytes (nbit cfb) */
byte* plain;
int i, j=0;
void (*_mcrypt_block_encrypt) (void *, void *);
int modlen;
_mcrypt_block_encrypt = func;
plain = plaintext;
for (j = 0; j < len / blocksize; j++) {
xor_stuff_de( buf, akey, func, plain, blocksize, blocksize);
plain += blocksize;
}
modlen = len % blocksize;
if (modlen > 0) {
xor_stuff_de( buf, akey, func, plain, blocksize, modlen);
}
return 0;
}
int _has_iv() { return 1; }
int _is_block_mode() { return 0; }
int _is_block_algorithm_mode() { return 1; }
const char *_mcrypt_get_modes_name() { return "nCFB";}
int _mcrypt_mode_get_size () {return sizeof(nCFB_BUFFER);}
word32 _mcrypt_mode_version() {
return 20020307;
}
#ifdef WIN32
# ifdef USE_LTDL
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
# endif
#endif
@@ -0,0 +1,12 @@
#ifndef USE_MODULES
int _ncfb_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
int _mcrypt_ncfb(int td, void* buf,void *plaintext, int len);
int _mdecrypt_ncfb(int td, void* buf, void *plaintext, int len);
int _ncfb_is_block_mode();
int _ncfb_has_iv();
int _ncfb_is_block_algorithm_mode();
char *_mcrypt_ncfb_get_modes_name();
int _mcrypt_ncfb_mode_get_size ();
int _mcrypt_ncfb_get_iv_size(int td);
word32 _mcrypt_ncfb_mode_version();
#endif
@@ -0,0 +1,229 @@
/*
* Copyright (C) 1998,1999,2000,2001 Nikos Mavroyanopoulos
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <libdefs.h>
#include <mcrypt_modules.h>
#define _init_mcrypt nofb_LTX__init_mcrypt
#define _mcrypt_set_state nofb_LTX__mcrypt_set_state
#define _mcrypt_get_state nofb_LTX__mcrypt_get_state
#define _end_mcrypt nofb_LTX__end_mcrypt
#define _mcrypt nofb_LTX__mcrypt
#define _mdecrypt nofb_LTX__mdecrypt
#define _has_iv nofb_LTX__has_iv
#define _is_block_mode nofb_LTX__is_block_mode
#define _is_block_algorithm_mode nofb_LTX__is_block_algorithm_mode
#define _mcrypt_get_modes_name nofb_LTX__mcrypt_get_modes_name
#define _mcrypt_mode_get_size nofb_LTX__mcrypt_mode_get_size
#define _mcrypt_mode_version nofb_LTX__mcrypt_mode_version
typedef struct ncfb_buf {
byte* enc_s_register;
byte* s_register;
int s_register_pos;
int blocksize;
} nOFB_BUFFER;
/* nOFB MODE */
int _init_mcrypt( nOFB_BUFFER* buf, void *key, int lenofkey, void *IV, int size)
{
buf->enc_s_register = buf->s_register = NULL;
buf->s_register_pos = 0;
buf->blocksize = size;
/* For ofb */
buf->enc_s_register=malloc( size);
if (buf->enc_s_register==NULL) goto freeall;
buf->s_register=malloc( size);
if (buf->s_register==NULL) goto freeall;
if (IV!=NULL) {
memcpy(buf->enc_s_register, IV, size);
memcpy(buf->s_register, IV, size);
} else {
memset(buf->enc_s_register, 0, size);
memset(buf->s_register, 0, size);
}
/* End nofb */
return 0;
freeall:
free(buf->enc_s_register);
free(buf->s_register);
return -1;
}
int _mcrypt_set_state( nOFB_BUFFER* buf, byte *IV, int size)
{
buf->s_register_pos = IV[0];
memcpy(buf->enc_s_register, &IV[1], size-1);
memcpy(buf->s_register, &IV[1], size-1);
return 0;
}
int _mcrypt_get_state( nOFB_BUFFER* buf, byte *IV, int *size)
{
if (*size < buf->blocksize + 1) {
*size = buf->blocksize + 1;
return -1;
}
*size = buf->blocksize + 1;
IV[0] = buf->s_register_pos;
memcpy( &IV[1], buf->s_register, buf->blocksize);
return 0;
}
void _end_mcrypt( nOFB_BUFFER* buf) {
free(buf->s_register);
free(buf->enc_s_register);
}
inline static
void xor_stuff( nOFB_BUFFER *buf, void* akey, void (*func)(void*,void*), byte* plain, int blocksize, int xor_size)
{
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
if (xor_size == blocksize) {
if (buf->s_register_pos == 0) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memcpy(buf->s_register, buf->enc_s_register, blocksize);
memxor( plain, buf->enc_s_register, blocksize);
} else {
int size = blocksize - buf->s_register_pos;
memxor( plain, &buf->enc_s_register[buf->s_register_pos],
size);
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memcpy( buf->s_register,
buf->enc_s_register, blocksize);
memxor( &plain[size], buf->enc_s_register,
buf->s_register_pos);
/* buf->s_register_pos remains the same */
}
} else { /* xor_size != blocksize */
if (buf->s_register_pos == 0) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memcpy(buf->s_register, buf->enc_s_register, blocksize);
memxor( plain, buf->enc_s_register, xor_size);
buf->s_register_pos = xor_size;
} else {
int size = blocksize - buf->s_register_pos;
int min_size = size < xor_size ? size: xor_size;
memxor( plain, &buf->enc_s_register[buf->s_register_pos],
min_size);
buf->s_register_pos += min_size;
if (min_size >= xor_size)
return;
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
memcpy(buf->s_register, buf->enc_s_register, blocksize);
memxor( &plain[min_size], buf->s_register,
xor_size - min_size);
buf->s_register_pos = xor_size - min_size;
}
}
return;
}
int _mcrypt( nOFB_BUFFER* buf,void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext is n*blocksize bytes (nbit cfb) */
byte* plain;
int i, j=0;
void (*_mcrypt_block_encrypt) (void *, void *);
int modlen;
_mcrypt_block_encrypt = func;
plain = plaintext;
for (j = 0; j < len / blocksize; j++) {
xor_stuff( buf, akey, func, plain, blocksize, blocksize);
plain += blocksize;
}
modlen = len % blocksize;
if (modlen > 0) {
xor_stuff( buf, akey, func, plain, blocksize, modlen);
}
return 0;
}
int _mdecrypt( nOFB_BUFFER* buf,void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext is n*blocksize bytes (nbit cfb) */
return _mcrypt( buf, plaintext, len, blocksize, akey, func, func2);
}
int _has_iv() { return 1; }
int _is_block_mode() { return 0; }
int _is_block_algorithm_mode() { return 1; }
char *_mcrypt_get_modes_name() { return "nOFB";}
int _mcrypt_mode_get_size () {return sizeof(nOFB_BUFFER);}
word32 _mcrypt_mode_version() {
return 20020307;
}
#ifdef WIN32
# ifdef USE_LTDL
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
# endif
#endif
@@ -0,0 +1,12 @@
#ifndef USE_MODULES
int _nofb_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
int _mcrypt_nofb(int td, void* buf,void *plaintext, int len);
int _mdecrypt_nofb(int td, void* buf, void *plaintext, int len);
int _nofb_is_block_mode();
int _nofb_has_iv();
int _nofb_is_block_algorithm_mode();
char *_mcrypt_nofb_get_modes_name();
int _mcrypt_nofb_mode_get_size ();
int _mcrypt_nofb_get_iv_size(int td);
word32 _mcrypt_nofb_mode_version();
#endif
@@ -0,0 +1,174 @@
/*
* Copyright (C) 1998,1999,2000,2001,2002 Nikos Mavroyanopoulos
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <libdefs.h>
#include <mcrypt_modules.h>
#define _init_mcrypt ofb_LTX__init_mcrypt
#define _mcrypt_set_state ofb_LTX__mcrypt_set_state
#define _mcrypt_get_state ofb_LTX__mcrypt_get_state
#define _end_mcrypt ofb_LTX__end_mcrypt
#define _mcrypt ofb_LTX__mcrypt
#define _mdecrypt ofb_LTX__mdecrypt
#define _has_iv ofb_LTX__has_iv
#define _is_block_mode ofb_LTX__is_block_mode
#define _is_block_algorithm_mode ofb_LTX__is_block_algorithm_mode
#define _mcrypt_get_modes_name ofb_LTX__mcrypt_get_modes_name
#define _mcrypt_mode_get_size ofb_LTX__mcrypt_mode_get_size
#define _mcrypt_mode_version ofb_LTX__mcrypt_mode_version
typedef struct ofb_buf {
byte* s_register;
byte* enc_s_register;
int blocksize;
} OFB_BUFFER;
/* OFB MODE */
int _init_mcrypt( OFB_BUFFER* buf, void *key, int lenofkey, void *IV, int size)
{
buf->s_register = buf->enc_s_register = NULL;
buf->blocksize = size;
/* For ofb */
buf->s_register=malloc( size);
if (buf->s_register==NULL) goto freeall;
buf->enc_s_register=malloc( size);
if (buf->enc_s_register==NULL) goto freeall;
if (IV!=NULL) {
memcpy(buf->s_register, IV, size);
} else {
memset(buf->s_register, 0, size);
}
/* End ofb */
return 0;
freeall:
free(buf->s_register);
free(buf->enc_s_register);
return -1;
}
int _mcrypt_get_state( OFB_BUFFER* buf, byte *IV, int *size)
{
if (*size < buf->blocksize) {
*size = buf->blocksize;
return -1;
}
*size = buf->blocksize;
memcpy( IV, buf->s_register, buf->blocksize);
return 0;
}
int _mcrypt_set_state( OFB_BUFFER* buf, void *IV, int size)
{
memcpy(buf->enc_s_register, IV, size);
memcpy(buf->s_register, IV, size);
return 0;
}
void _end_mcrypt( OFB_BUFFER* buf) {
free(buf->s_register);
free(buf->enc_s_register);
}
int _mcrypt( OFB_BUFFER* buf,void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*) )
{ /* plaintext is 1 byte (8bit ofb) */
char *plain = plaintext;
int i, j;
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
for (j = 0; j < len; j++) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
plain[j] ^= buf->enc_s_register[0];
/* Shift the register */
for (i = 0; i < (blocksize - 1); i++)
buf->s_register[i] = buf->s_register[i + 1];
buf->s_register[blocksize - 1] = buf->enc_s_register[0];
}
return 0;
}
int _mdecrypt( OFB_BUFFER* buf, void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*), void (*func2)(void*,void*))
{ /* plaintext is 1 byte (8bit ofb) */
char *plain = plaintext;
int i, j;
void (*_mcrypt_block_encrypt) (void *, void *);
_mcrypt_block_encrypt = func;
for (j = 0; j < len; j++) {
memcpy(buf->enc_s_register, buf->s_register, blocksize);
_mcrypt_block_encrypt(akey, buf->enc_s_register);
/* Shift the register */
for (i = 0; i < (blocksize - 1); i++)
buf->s_register[i] = buf->s_register[i + 1];
buf->s_register[blocksize - 1] = buf->enc_s_register[0];
plain[j] ^= buf->enc_s_register[0];
}
return 0;
}
int _is_block_mode() { return 0; }
int _has_iv() { return 1; }
int _is_block_algorithm_mode() { return 1; }
char *_mcrypt_get_modes_name() { return "OFB"; }
int _mcrypt_mode_get_size () {return sizeof(OFB_BUFFER);}
word32 _mcrypt_mode_version() {
return 20010310;
}
#ifdef WIN32
# ifdef USE_LTDL
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
# endif
#endif
@@ -0,0 +1,12 @@
#ifndef USE_MODULES
int _ofb_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
int _mcrypt_ofb(int td, void* buf,void *plaintext, int len);
int _mdecrypt_ofb(int td, void* buf, void *plaintext, int len);
int _ofb_is_block_mode();
int _ofb_has_iv();
int _ofb_is_block_algorithm_mode();
char *_mcrypt_ofb_get_modes_name();
int _mcrypt_ofb_mode_get_size ();
int _mcrypt_ofb_get_iv_size(int td);
word32 _mcrypt_ofb_mode_version();
#endif
@@ -0,0 +1,84 @@
/*
* Copyright (C) 1998,1999,2000,2001 Nikos Mavroyanopoulos
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
* by the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include <libdefs.h>
#include <mcrypt_modules.h>
#define _init_mcrypt stream_LTX__init_mcrypt
#define _mcrypt_set_state stream_LTX__mcrypt_set_state
#define _mcrypt_get_state stream_LTX__mcrypt_get_state
#define _end_mcrypt stream_LTX__end_mcrypt
#define _mcrypt stream_LTX__mcrypt
#define _mdecrypt stream_LTX__mdecrypt
#define _has_iv stream_LTX__has_iv
#define _is_block_mode stream_LTX__is_block_mode
#define _is_block_algorithm_mode stream_LTX__is_block_algorithm_mode
#define _mcrypt_get_modes_name stream_LTX__mcrypt_get_modes_name
#define _mcrypt_mode_get_size stream_LTX__mcrypt_mode_get_size
#define _mcrypt_mode_version stream_LTX__mcrypt_mode_version
/* STREAM MODE */
int _init_mcrypt( void* ign, void *key, int lenofkey, void *IV, int size) { return 0; }
int _mcrypt_set_state( void* buf, void *IV, int size) { return -1; }
int _mcrypt_get_state( void* buf, void *IV, int *size) { return -1; }
int _end_mcrypt(void* ign) {return 0;}
int _mcrypt( void* ign, void *plaintext, int len, int blocksize, void* akey, void (*func)(void*,void*, int), void (*func2)(void*,void*, int))
{
void (*_mcrypt_stream_encrypt) (void *, void *, int);
_mcrypt_stream_encrypt = func;
_mcrypt_stream_encrypt(akey, plaintext, len);
return 0;
}
int _mdecrypt( void* ign, void *ciphertext, int len, int blocksize, void* akey, void (*func)(void*,void*, int), void (*func2)(void*,void*, int))
{
void (*_mcrypt_stream_decrypt) (void *, void *, int);
_mcrypt_stream_decrypt = func2;
_mcrypt_stream_decrypt(akey, ciphertext, len);
return 0;
}
int _has_iv() { return 1; }
int _is_block_mode() { return 0; }
int _is_block_algorithm_mode() { return 0; }
const char *_mcrypt_get_modes_name() { return "STREAM";}
int _mcrypt_mode_get_size () {return 0;}
word32 _mcrypt_mode_version() {
return 20010801;
}
#ifdef WIN32
# ifdef USE_LTDL
WIN32DLL_DEFINE int main (void)
{
/* empty main function to avoid linker error (see cygwin FAQ) */
}
# endif
#endif
@@ -0,0 +1,12 @@
#ifndef USE_MODULES
int _stream_init_mcrypt( int td, void* buf, void *key, int lenofkey, void *IV);
int _mcrypt_stream(int td, void* buf,void *plaintext, int len);
int _mdecrypt_stream(int td, void* buf, void *plaintext, int len);
int _stream_is_block_mode();
int _stream_has_iv();
int _stream_is_block_algorithm_mode();
char *_mcrypt_stream_get_modes_name();
int _mcrypt_stream_mode_get_size ();
int _mcrypt_stream_get_iv_size(int td);
word32 _mcrypt_stream_mode_version();
#endif