// Code generated for freebsd/amd64 by 'generator --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -ignore-link-errors -o libmd.go --package-name libmd src/.libs/libmd.a', DO NOT EDIT. //go:build freebsd && amd64 package libmd import ( "reflect" "unsafe" "modernc.org/libc" ) var _ reflect.Type var _ unsafe.Pointer const m_BIG_ENDIAN = "_BIG_ENDIAN" const m_BYTE_ORDER = "_BYTE_ORDER" const m_FD_SETSIZE = 1024 const m_HAVE_CONFIG_H = 1 const m_HAVE_DLFCN_H = 1 const m_HAVE_INTTYPES_H = 1 const m_HAVE_STDINT_H = 1 const m_HAVE_STDIO_H = 1 const m_HAVE_STDLIB_H = 1 const m_HAVE_STRINGS_H = 1 const m_HAVE_STRING_H = 1 const m_HAVE_SYS_STAT_H = 1 const m_HAVE_SYS_TYPES_H = 1 const m_HAVE_UNISTD_H = 1 const m_HAVE_WCHAR_H = 1 const m_INT16_MAX = 0x7fff const m_INT32_MAX = 0x7fffffff const m_INT64_MAX = 0x7fffffffffffffff const m_INT8_MAX = 0x7f const m_INTMAX_MAX = "INT64_MAX" const m_INTMAX_MIN = "INT64_MIN" const m_INTPTR_MAX = "INT64_MAX" const m_INTPTR_MIN = "INT64_MIN" const m_INT_FAST16_MAX = "INT32_MAX" const m_INT_FAST16_MIN = "INT32_MIN" const m_INT_FAST32_MAX = "INT32_MAX" const m_INT_FAST32_MIN = "INT32_MIN" const m_INT_FAST64_MAX = "INT64_MAX" const m_INT_FAST64_MIN = "INT64_MIN" const m_INT_FAST8_MAX = "INT32_MAX" const m_INT_FAST8_MIN = "INT32_MIN" const m_INT_LEAST16_MAX = "INT16_MAX" const m_INT_LEAST16_MIN = "INT16_MIN" const m_INT_LEAST32_MAX = "INT32_MAX" const m_INT_LEAST32_MIN = "INT32_MIN" const m_INT_LEAST64_MAX = "INT64_MAX" const m_INT_LEAST64_MIN = "INT64_MIN" const m_INT_LEAST8_MAX = "INT8_MAX" const m_INT_LEAST8_MIN = "INT8_MIN" const m_LITTLE_ENDIAN = "_LITTLE_ENDIAN" const m_LT_OBJDIR = ".libs/" const m_MD2_DIGEST_LENGTH = 16 const m_MD2_DIGEST_STRING_LENGTH = 33 const m_NDEBUG = 1 const m_NFDBITS = "_NFDBITS" const m_PACKAGE = "libmd" const m_PACKAGE_BUGREPORT = "libbsd@lists.freedesktop.org" const m_PACKAGE_NAME = "libmd" const m_PACKAGE_STRING = "libmd 1.0.4" const m_PACKAGE_TARNAME = "libmd" const m_PACKAGE_URL = "" const m_PACKAGE_VERSION = "1.0.4" const m_PDP_ENDIAN = "_PDP_ENDIAN" const m_PTRDIFF_MAX = "INT64_MAX" const m_PTRDIFF_MIN = "INT64_MIN" const m_SIG_ATOMIC_MAX = "INT64_MAX" const m_SIG_ATOMIC_MIN = "INT64_MIN" const m_SIZE_MAX = "UINT64_MAX" const m_STDC_HEADERS = 1 const m_UINT16_MAX = 0xffff const m_UINT32_MAX = 0xffffffff const m_UINT64_MAX = 0xffffffffffffffff const m_UINT8_MAX = 0xff const m_UINTMAX_MAX = "UINT64_MAX" const m_UINTPTR_MAX = "UINT64_MAX" const m_UINT_FAST16_MAX = "UINT32_MAX" const m_UINT_FAST32_MAX = "UINT32_MAX" const m_UINT_FAST64_MAX = "UINT64_MAX" const m_UINT_FAST8_MAX = "UINT32_MAX" const m_UINT_LEAST16_MAX = "UINT16_MAX" const m_UINT_LEAST32_MAX = "UINT32_MAX" const m_UINT_LEAST64_MAX = "UINT64_MAX" const m_UINT_LEAST8_MAX = "UINT8_MAX" const m_VERSION = "1.0.4" const m_WCHAR_MAX = "__WCHAR_MAX" const m_WCHAR_MIN = "__WCHAR_MIN" const m_WINT_MAX = "INT32_MAX" const m_WINT_MIN = "INT32_MIN" const m__ALL_SOURCE = 1 const m__BYTE_ORDER = "__BYTE_ORDER__" const m__DARWIN_C_SOURCE = 1 const m__GNU_SOURCE = 1 const m__HPUX_ALT_XOPEN_SOCKET_API = 1 const m__LP64 = 1 const m__NETBSD_SOURCE = 1 const m__OPENBSD_SOURCE = 1 const m__PDP_ENDIAN = "__ORDER_PDP_ENDIAN__" const m__POSIX_PTHREAD_SEMANTICS = 1 const m__QUAD_HIGHWORD = 1 const m__QUAD_LOWWORD = 0 const m__SIG_MAXSIG = 128 const m__SIG_WORDS = 4 const m__TANDEM_SOURCE = 1 const m___ATOMIC_ACQUIRE = 2 const m___ATOMIC_ACQ_REL = 4 const m___ATOMIC_CONSUME = 1 const m___ATOMIC_RELAXED = 0 const m___ATOMIC_RELEASE = 3 const m___ATOMIC_SEQ_CST = 5 const m___BIGGEST_ALIGNMENT__ = 16 const m___BITINT_MAXWIDTH__ = 8388608 const m___BOOL_WIDTH__ = 8 const m___BSD_VISIBLE = 1 const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__" const m___CCGO__ = 1 const m___CC_SUPPORTS_DYNAMIC_ARRAY_INIT = 1 const m___CC_SUPPORTS_INLINE = 1 const m___CC_SUPPORTS_VARADIC_XXX = 1 const m___CC_SUPPORTS_WARNING = 1 const m___CC_SUPPORTS___FUNC__ = 1 const m___CC_SUPPORTS___INLINE = 1 const m___CC_SUPPORTS___INLINE__ = 1 const m___CHAR_BIT = 8 const m___CHAR_BIT__ = 8 const m___CLANG_ATOMIC_BOOL_LOCK_FREE = 2 const m___CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2 const m___CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2 const m___CLANG_ATOMIC_CHAR_LOCK_FREE = 2 const m___CLANG_ATOMIC_INT_LOCK_FREE = 2 const m___CLANG_ATOMIC_LLONG_LOCK_FREE = 2 const m___CLANG_ATOMIC_LONG_LOCK_FREE = 2 const m___CLANG_ATOMIC_POINTER_LOCK_FREE = 2 const m___CLANG_ATOMIC_SHORT_LOCK_FREE = 2 const m___CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2 const m___CONSTANT_CFSTRINGS__ = 1 const m___DBL_DECIMAL_DIG__ = 17 const m___DBL_DENORM_MIN__ = 4.9406564584124654e-324 const m___DBL_DIG__ = 15 const m___DBL_EPSILON__ = 2.2204460492503131e-16 const m___DBL_HAS_DENORM__ = 1 const m___DBL_HAS_INFINITY__ = 1 const m___DBL_HAS_QUIET_NAN__ = 1 const m___DBL_MANT_DIG__ = 53 const m___DBL_MAX_10_EXP__ = 308 const m___DBL_MAX_EXP__ = 1024 const m___DBL_MAX__ = 1.7976931348623157e+308 const m___DBL_MIN__ = 2.2250738585072014e-308 const m___DECIMAL_DIG__ = "__LDBL_DECIMAL_DIG__" const m___ELF__ = 1 const m___EXT1_VISIBLE = 1 const m___EXTENSIONS__ = 1 const m___FINITE_MATH_ONLY__ = 0 const m___FLOAT128__ = 1 const m___FLT16_DECIMAL_DIG__ = 5 const m___FLT16_DENORM_MIN__ = 5.9604644775390625e-8 const m___FLT16_DIG__ = 3 const m___FLT16_EPSILON__ = 9.765625e-4 const m___FLT16_HAS_DENORM__ = 1 const m___FLT16_HAS_INFINITY__ = 1 const m___FLT16_HAS_QUIET_NAN__ = 1 const m___FLT16_MANT_DIG__ = 11 const m___FLT16_MAX_10_EXP__ = 4 const m___FLT16_MAX_EXP__ = 16 const m___FLT16_MAX__ = 6.5504e+4 const m___FLT16_MIN__ = 6.103515625e-5 const m___FLT_DECIMAL_DIG__ = 9 const m___FLT_DENORM_MIN__ = 1.40129846e-45 const m___FLT_DIG__ = 6 const m___FLT_EPSILON__ = 1.19209290e-7 const m___FLT_HAS_DENORM__ = 1 const m___FLT_HAS_INFINITY__ = 1 const m___FLT_HAS_QUIET_NAN__ = 1 const m___FLT_MANT_DIG__ = 24 const m___FLT_MAX_10_EXP__ = 38 const m___FLT_MAX_EXP__ = 128 const m___FLT_MAX__ = 3.40282347e+38 const m___FLT_MIN__ = 1.17549435e-38 const m___FLT_RADIX__ = 2 const m___FPCLASS_NEGINF = 0x0004 const m___FPCLASS_NEGNORMAL = 0x0008 const m___FPCLASS_NEGSUBNORMAL = 0x0010 const m___FPCLASS_NEGZERO = 0x0020 const m___FPCLASS_POSINF = 0x0200 const m___FPCLASS_POSNORMAL = 0x0100 const m___FPCLASS_POSSUBNORMAL = 0x0080 const m___FPCLASS_POSZERO = 0x0040 const m___FPCLASS_QNAN = 0x0002 const m___FPCLASS_SNAN = 0x0001 const m___FUNCTION__ = "__func__" const m___FXSR__ = 1 const m___FreeBSD__ = 14 const m___FreeBSD_cc_version = 1400006 const m___GCC_ASM_FLAG_OUTPUTS__ = 1 const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2 const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2 const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2 const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2 const m___GCC_ATOMIC_INT_LOCK_FREE = 2 const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2 const m___GCC_ATOMIC_LONG_LOCK_FREE = 2 const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2 const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2 const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1 const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2 const m___GCC_HAVE_DWARF2_CFI_ASM = 1 const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1 const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1 const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1 const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1 const m___GNUCLIKE_ASM = 3 const m___GNUCLIKE_BUILTIN_CONSTANT_P = 1 const m___GNUCLIKE_BUILTIN_MEMCPY = 1 const m___GNUCLIKE_BUILTIN_NEXT_ARG = 1 const m___GNUCLIKE_BUILTIN_STDARG = 1 const m___GNUCLIKE_BUILTIN_VAALIST = 1 const m___GNUCLIKE_BUILTIN_VARARGS = 1 const m___GNUCLIKE_CTOR_SECTION_HANDLING = 1 const m___GNUCLIKE___SECTION = 1 const m___GNUCLIKE___TYPEOF = 1 const m___GNUC_MINOR__ = 2 const m___GNUC_PATCHLEVEL__ = 1 const m___GNUC_STDC_INLINE__ = 1 const m___GNUC_VA_LIST_COMPATIBILITY = 1 const m___GNUC__ = 4 const m___GXX_ABI_VERSION = 1002 const m___INT16_FMTd__ = "hd" const m___INT16_FMTi__ = "hi" const m___INT16_MAX__ = 32767 const m___INT16_TYPE__ = "short" const m___INT32_FMTd__ = "d" const m___INT32_FMTi__ = "i" const m___INT32_MAX__ = 2147483647 const m___INT32_TYPE__ = "int" const m___INT64_C_SUFFIX__ = "L" const m___INT64_FMTd__ = "ld" const m___INT64_FMTi__ = "li" const m___INT64_MAX__ = 9223372036854775807 const m___INT8_FMTd__ = "hhd" const m___INT8_FMTi__ = "hhi" const m___INT8_MAX__ = 127 const m___INTMAX_C_SUFFIX__ = "L" const m___INTMAX_FMTd__ = "ld" const m___INTMAX_FMTi__ = "li" const m___INTMAX_MAX__ = 9223372036854775807 const m___INTMAX_WIDTH__ = 64 const m___INTPTR_FMTd__ = "ld" const m___INTPTR_FMTi__ = "li" const m___INTPTR_MAX__ = 9223372036854775807 const m___INTPTR_WIDTH__ = 64 const m___INT_FAST16_FMTd__ = "hd" const m___INT_FAST16_FMTi__ = "hi" const m___INT_FAST16_MAX__ = 32767 const m___INT_FAST16_TYPE__ = "short" const m___INT_FAST16_WIDTH__ = 16 const m___INT_FAST32_FMTd__ = "d" const m___INT_FAST32_FMTi__ = "i" const m___INT_FAST32_MAX__ = 2147483647 const m___INT_FAST32_TYPE__ = "int" const m___INT_FAST32_WIDTH__ = 32 const m___INT_FAST64_FMTd__ = "ld" const m___INT_FAST64_FMTi__ = "li" const m___INT_FAST64_MAX__ = 9223372036854775807 const m___INT_FAST64_WIDTH__ = 64 const m___INT_FAST8_FMTd__ = "hhd" const m___INT_FAST8_FMTi__ = "hhi" const m___INT_FAST8_MAX__ = 127 const m___INT_FAST8_WIDTH__ = 8 const m___INT_LEAST16_FMTd__ = "hd" const m___INT_LEAST16_FMTi__ = "hi" const m___INT_LEAST16_MAX__ = 32767 const m___INT_LEAST16_TYPE__ = "short" const m___INT_LEAST16_WIDTH__ = 16 const m___INT_LEAST32_FMTd__ = "d" const m___INT_LEAST32_FMTi__ = "i" const m___INT_LEAST32_MAX__ = 2147483647 const m___INT_LEAST32_TYPE__ = "int" const m___INT_LEAST32_WIDTH__ = 32 const m___INT_LEAST64_FMTd__ = "ld" const m___INT_LEAST64_FMTi__ = "li" const m___INT_LEAST64_MAX__ = 9223372036854775807 const m___INT_LEAST64_WIDTH__ = 64 const m___INT_LEAST8_FMTd__ = "hhd" const m___INT_LEAST8_FMTi__ = "hhi" const m___INT_LEAST8_MAX__ = 127 const m___INT_LEAST8_WIDTH__ = 8 const m___INT_MAX = 0x7fffffff const m___INT_MAX__ = 2147483647 const m___INT_WIDTH__ = 32 const m___ISO_C_VISIBLE = 2011 const m___KPRINTF_ATTRIBUTE__ = 1 const m___LDBL_DECIMAL_DIG__ = 17 const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324 const m___LDBL_DIG__ = 15 const m___LDBL_EPSILON__ = 2.2204460492503131e-16 const m___LDBL_HAS_DENORM__ = 1 const m___LDBL_HAS_INFINITY__ = 1 const m___LDBL_HAS_QUIET_NAN__ = 1 const m___LDBL_MANT_DIG__ = 53 const m___LDBL_MAX_10_EXP__ = 308 const m___LDBL_MAX_EXP__ = 1024 const m___LDBL_MAX__ = 1.7976931348623157e+308 const m___LDBL_MIN__ = 2.2250738585072014e-308 const m___LITTLE_ENDIAN__ = 1 const m___LLONG_MAX = 0x7fffffffffffffff const m___LLONG_WIDTH__ = 64 const m___LONG_BIT = 64 const m___LONG_LONG_MAX__ = 9223372036854775807 const m___LONG_MAX = 0x7fffffffffffffff const m___LONG_MAX__ = 9223372036854775807 const m___LONG_WIDTH__ = 64 const m___LP64__ = 1 const m___MEMORY_SCOPE_DEVICE = 1 const m___MEMORY_SCOPE_SINGLE = 4 const m___MEMORY_SCOPE_SYSTEM = 0 const m___MEMORY_SCOPE_WRKGRP = 2 const m___MEMORY_SCOPE_WVFRNT = 3 const m___MMX__ = 1 const m___NO_INLINE__ = 1 const m___NO_MATH_ERRNO__ = 1 const m___NO_MATH_INLINES = 1 const m___OBJC_BOOL_IS_BOOL = 0 const m___OFF_MAX = "__LONG_MAX" const m___OFF_MIN = "__LONG_MIN" const m___OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES = 3 const m___OPENCL_MEMORY_SCOPE_DEVICE = 2 const m___OPENCL_MEMORY_SCOPE_SUB_GROUP = 4 const m___OPENCL_MEMORY_SCOPE_WORK_GROUP = 1 const m___OPENCL_MEMORY_SCOPE_WORK_ITEM = 0 const m___ORDER_BIG_ENDIAN__ = 4321 const m___ORDER_LITTLE_ENDIAN__ = 1234 const m___ORDER_PDP_ENDIAN__ = 3412 const m___POINTER_WIDTH__ = 64 const m___POSIX_VISIBLE = 200809 const m___PRAGMA_REDEFINE_EXTNAME = 1 const m___PRETTY_FUNCTION__ = "__func__" const m___PTRDIFF_FMTd__ = "ld" const m___PTRDIFF_FMTi__ = "li" const m___PTRDIFF_MAX__ = 9223372036854775807 const m___PTRDIFF_WIDTH__ = 64 const m___QUAD_MAX = "__LONG_MAX" const m___QUAD_MIN = "__LONG_MIN" const m___SCHAR_MAX = 0x7f const m___SCHAR_MAX__ = 127 const m___SEG_FS = 1 const m___SEG_GS = 1 const m___SHRT_MAX = 0x7fff const m___SHRT_MAX__ = 32767 const m___SHRT_WIDTH__ = 16 const m___SIG_ATOMIC_MAX__ = 2147483647 const m___SIG_ATOMIC_WIDTH__ = 32 const m___SIZEOF_DOUBLE__ = 8 const m___SIZEOF_FLOAT128__ = 16 const m___SIZEOF_FLOAT__ = 4 const m___SIZEOF_INT128__ = 16 const m___SIZEOF_INT__ = 4 const m___SIZEOF_LONG_DOUBLE__ = 8 const m___SIZEOF_LONG_LONG__ = 8 const m___SIZEOF_LONG__ = 8 const m___SIZEOF_POINTER__ = 8 const m___SIZEOF_PTRDIFF_T__ = 8 const m___SIZEOF_SHORT__ = 2 const m___SIZEOF_SIZE_T__ = 8 const m___SIZEOF_WCHAR_T__ = 4 const m___SIZEOF_WINT_T__ = 4 const m___SIZE_FMTX__ = "lX" const m___SIZE_FMTo__ = "lo" const m___SIZE_FMTu__ = "lu" const m___SIZE_FMTx__ = "lx" const m___SIZE_MAX__ = 18446744073709551615 const m___SIZE_T_MAX = "__ULONG_MAX" const m___SIZE_WIDTH__ = 64 const m___SSE2_MATH__ = 1 const m___SSE2__ = 1 const m___SSE_MATH__ = 1 const m___SSE__ = 1 const m___SSIZE_MAX = "__LONG_MAX" const m___STDC_HOSTED__ = 1 const m___STDC_MB_MIGHT_NEQ_WC__ = 1 const m___STDC_UTF_16__ = 1 const m___STDC_UTF_32__ = 1 const m___STDC_VERSION__ = 201710 const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1 const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1 const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1 const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1 const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1 const m___STDC_WANT_LIB_EXT2__ = 1 const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1 const m___STDC__ = 1 const m___UCHAR_MAX = 0xff const m___UINT16_FMTX__ = "hX" const m___UINT16_FMTo__ = "ho" const m___UINT16_FMTu__ = "hu" const m___UINT16_FMTx__ = "hx" const m___UINT16_MAX__ = 65535 const m___UINT32_C_SUFFIX__ = "U" const m___UINT32_FMTX__ = "X" const m___UINT32_FMTo__ = "o" const m___UINT32_FMTu__ = "u" const m___UINT32_FMTx__ = "x" const m___UINT32_MAX__ = 4294967295 const m___UINT64_C_SUFFIX__ = "UL" const m___UINT64_FMTX__ = "lX" const m___UINT64_FMTo__ = "lo" const m___UINT64_FMTu__ = "lu" const m___UINT64_FMTx__ = "lx" const m___UINT64_MAX__ = 18446744073709551615 const m___UINT8_FMTX__ = "hhX" const m___UINT8_FMTo__ = "hho" const m___UINT8_FMTu__ = "hhu" const m___UINT8_FMTx__ = "hhx" const m___UINT8_MAX__ = 255 const m___UINTMAX_C_SUFFIX__ = "UL" const m___UINTMAX_FMTX__ = "lX" const m___UINTMAX_FMTo__ = "lo" const m___UINTMAX_FMTu__ = "lu" const m___UINTMAX_FMTx__ = "lx" const m___UINTMAX_MAX__ = 18446744073709551615 const m___UINTMAX_WIDTH__ = 64 const m___UINTPTR_FMTX__ = "lX" const m___UINTPTR_FMTo__ = "lo" const m___UINTPTR_FMTu__ = "lu" const m___UINTPTR_FMTx__ = "lx" const m___UINTPTR_MAX__ = 18446744073709551615 const m___UINTPTR_WIDTH__ = 64 const m___UINT_FAST16_FMTX__ = "hX" const m___UINT_FAST16_FMTo__ = "ho" const m___UINT_FAST16_FMTu__ = "hu" const m___UINT_FAST16_FMTx__ = "hx" const m___UINT_FAST16_MAX__ = 65535 const m___UINT_FAST32_FMTX__ = "X" const m___UINT_FAST32_FMTo__ = "o" const m___UINT_FAST32_FMTu__ = "u" const m___UINT_FAST32_FMTx__ = "x" const m___UINT_FAST32_MAX__ = 4294967295 const m___UINT_FAST64_FMTX__ = "lX" const m___UINT_FAST64_FMTo__ = "lo" const m___UINT_FAST64_FMTu__ = "lu" const m___UINT_FAST64_FMTx__ = "lx" const m___UINT_FAST64_MAX__ = 18446744073709551615 const m___UINT_FAST8_FMTX__ = "hhX" const m___UINT_FAST8_FMTo__ = "hho" const m___UINT_FAST8_FMTu__ = "hhu" const m___UINT_FAST8_FMTx__ = "hhx" const m___UINT_FAST8_MAX__ = 255 const m___UINT_LEAST16_FMTX__ = "hX" const m___UINT_LEAST16_FMTo__ = "ho" const m___UINT_LEAST16_FMTu__ = "hu" const m___UINT_LEAST16_FMTx__ = "hx" const m___UINT_LEAST16_MAX__ = 65535 const m___UINT_LEAST32_FMTX__ = "X" const m___UINT_LEAST32_FMTo__ = "o" const m___UINT_LEAST32_FMTu__ = "u" const m___UINT_LEAST32_FMTx__ = "x" const m___UINT_LEAST32_MAX__ = 4294967295 const m___UINT_LEAST64_FMTX__ = "lX" const m___UINT_LEAST64_FMTo__ = "lo" const m___UINT_LEAST64_FMTu__ = "lu" const m___UINT_LEAST64_FMTx__ = "lx" const m___UINT_LEAST64_MAX__ = 18446744073709551615 const m___UINT_LEAST8_FMTX__ = "hhX" const m___UINT_LEAST8_FMTo__ = "hho" const m___UINT_LEAST8_FMTu__ = "hhu" const m___UINT_LEAST8_FMTx__ = "hhx" const m___UINT_LEAST8_MAX__ = 255 const m___UINT_MAX = 0xffffffff const m___ULLONG_MAX = "0xffffffffffffffffU" const m___ULONG_MAX = 0xffffffffffffffff const m___UQUAD_MAX = "__ULONG_MAX" const m___USHRT_MAX = 0xffff const m___VERSION__ = "FreeBSD Clang 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)" const m___WCHAR_MAX = "__INT_MAX" const m___WCHAR_MAX__ = 2147483647 const m___WCHAR_MIN = "__INT_MIN" const m___WCHAR_TYPE__ = "int" const m___WCHAR_WIDTH__ = 32 const m___WINT_MAX__ = 2147483647 const m___WINT_TYPE__ = "int" const m___WINT_WIDTH__ = 32 const m___WORDSIZE = 64 const m___WORD_BIT = 32 const m___XSI_VISIBLE = 700 const m___amd64 = 1 const m___amd64__ = 1 const m___clang__ = 1 const m___clang_literal_encoding__ = "UTF-8" const m___clang_major__ = 18 const m___clang_minor__ = 1 const m___clang_patchlevel__ = 6 const m___clang_version__ = "18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)" const m___clang_wide_literal_encoding__ = "UTF-32" const m___code_model_small__ = 1 const m___const = "const" const m___has_extension = "__has_feature" const m___k8 = 1 const m___k8__ = 1 const m___llvm__ = 1 const m___restrict = "restrict" const m___restrict_arr = "restrict" const m___signed = "signed" const m___tune_k8__ = 1 const m___unix = 1 const m___unix__ = 1 const m___volatile = "volatile" const m___writeonly = "__unused" const m___x86_64 = 1 const m___x86_64__ = 1 const m_fds_bits = "__fds_bits" const m_static_assert = "_Static_assert" const m_unix = 1 type t__builtin_va_list = uintptr type t__predefined_size_t = uint64 type t__predefined_wchar_t = int32 type t__predefined_ptrdiff_t = int64 type t__int8_t = int8 type t__uint8_t = uint8 type t__int16_t = int16 type t__uint16_t = uint16 type t__int32_t = int32 type t__uint32_t = uint32 type t__int64_t = int64 type t__uint64_t = uint64 type t__int_least8_t = int8 type t__int_least16_t = int16 type t__int_least32_t = int32 type t__int_least64_t = int64 type t__intmax_t = int64 type t__uint_least8_t = uint8 type t__uint_least16_t = uint16 type t__uint_least32_t = uint32 type t__uint_least64_t = uint64 type t__uintmax_t = uint64 type t__intptr_t = int64 type t__intfptr_t = int64 type t__uintptr_t = uint64 type t__uintfptr_t = uint64 type t__vm_offset_t = uint64 type t__vm_size_t = uint64 type t__size_t = uint64 type t__ssize_t = int64 type t__ptrdiff_t = int64 type t__clock_t = int32 type t__critical_t = int64 type t__double_t = float64 type t__float_t = float32 type t__int_fast8_t = int32 type t__int_fast16_t = int32 type t__int_fast32_t = int32 type t__int_fast64_t = int64 type t__register_t = int64 type t__segsz_t = int64 type t__time_t = int64 type t__uint_fast8_t = uint32 type t__uint_fast16_t = uint32 type t__uint_fast32_t = uint32 type t__uint_fast64_t = uint64 type t__u_register_t = uint64 type t__vm_paddr_t = uint64 type T___wchar_t = int32 type t__blksize_t = int32 type t__blkcnt_t = int64 type t__clockid_t = int32 type t__fflags_t = uint32 type t__fsblkcnt_t = uint64 type t__fsfilcnt_t = uint64 type t__gid_t = uint32 type t__id_t = int64 type t__ino_t = uint64 type t__key_t = int64 type t__lwpid_t = int32 type t__mode_t = uint16 type t__accmode_t = int32 type t__nl_item = int32 type t__nlink_t = uint64 type t__off_t = int64 type t__off64_t = int64 type t__pid_t = int32 type t__sbintime_t = int64 type t__rlim_t = int64 type t__sa_family_t = uint8 type t__socklen_t = uint32 type t__suseconds_t = int64 type t__timer_t = uintptr type t__mqd_t = uintptr type t__uid_t = uint32 type t__useconds_t = uint32 type t__cpuwhich_t = int32 type t__cpulevel_t = int32 type t__cpusetid_t = int32 type t__daddr_t = int64 type t__ct_rune_t = int32 type t__rune_t = int32 type t__wint_t = int32 type t__char16_t = uint16 type t__char32_t = uint32 type t__max_align_t = struct { F__max_align1 int64 F__max_align2 float64 } type t__dev_t = uint64 type t__fixpt_t = uint32 type t__mbstate_t = struct { F_mbstateL [0]t__int64_t F__mbstate8 [128]int8 } type t__rman_res_t = uint64 type t__va_list = uintptr type t__gnuc_va_list = uintptr type Tpthread_once = struct { Fstate int32 Fmutex Tpthread_mutex_t } type Tpthread_t = uintptr type Tpthread_attr_t = uintptr type Tpthread_mutex_t = uintptr type Tpthread_mutexattr_t = uintptr type Tpthread_cond_t = uintptr type Tpthread_condattr_t = uintptr type Tpthread_key_t = int32 type Tpthread_once_t = struct { Fstate int32 Fmutex Tpthread_mutex_t } type Tpthread_rwlock_t = uintptr type Tpthread_rwlockattr_t = uintptr type Tpthread_barrier_t = uintptr type Tpthread_barrierattr_t = uintptr type Tpthread_spinlock_t = uintptr type Tpthread_addr_t = uintptr type Tpthread_startroutine_t = uintptr type Tu_char = uint8 type Tu_short = uint16 type Tu_int = uint32 type Tu_long = uint64 type Tushort = uint16 type Tuint = uint32 type Tint8_t = int8 type Tint16_t = int16 type Tint32_t = int32 type Tint64_t = int64 type Tuint8_t = uint8 type Tuint16_t = uint16 type Tuint32_t = uint32 type Tuint64_t = uint64 type Tintptr_t = int64 type Tuintptr_t = uint64 type Tintmax_t = int64 type Tuintmax_t = uint64 type Tu_int8_t = uint8 type Tu_int16_t = uint16 type Tu_int32_t = uint32 type Tu_int64_t = uint64 type Tu_quad_t = uint64 type Tquad_t = int64 type Tqaddr_t = uintptr type Tcaddr_t = uintptr type Tc_caddr_t = uintptr type Tblksize_t = int32 type Tcpuwhich_t = int32 type Tcpulevel_t = int32 type Tcpusetid_t = int32 type Tblkcnt_t = int64 type Tclock_t = int32 type Tclockid_t = int32 type Tcritical_t = int64 type Tdaddr_t = int64 type Tdev_t = uint64 type Tfflags_t = uint32 type Tfixpt_t = uint32 type Tfsblkcnt_t = uint64 type Tfsfilcnt_t = uint64 type Tgid_t = uint32 type Tin_addr_t = uint32 type Tin_port_t = uint16 type Tid_t = int64 type Tino_t = uint64 type Tkey_t = int64 type Tlwpid_t = int32 type Tmode_t = uint16 type Taccmode_t = int32 type Tnlink_t = uint64 type Toff_t = int64 type Toff64_t = int64 type Tpid_t = int32 type Tregister_t = int64 type Trlim_t = int64 type Tsbintime_t = int64 type Tsegsz_t = int64 type Tsize_t = uint64 type Tssize_t = int64 type Tsuseconds_t = int64 type Ttime_t = int64 type Ttimer_t = uintptr type Tmqd_t = uintptr type Tu_register_t = uint64 type Tuid_t = uint32 type Tuseconds_t = uint32 type Tcap_ioctl_t = uint64 type Tkpaddr_t = uint64 type Tkvaddr_t = uint64 type Tksize_t = uint64 type Tkssize_t = int64 type Tvm_offset_t = uint64 type Tvm_ooffset_t = uint64 type Tvm_paddr_t = uint64 type Tvm_pindex_t = uint64 type Tvm_size_t = uint64 type Trman_res_t = uint64 type Tsyscallarg_t = int64 type t__sigset_t = struct { F__bits [4]t__uint32_t } type t__sigset = t__sigset_t type Ttimeval = struct { Ftv_sec Ttime_t Ftv_usec Tsuseconds_t } type Ttimespec = struct { Ftv_sec Ttime_t Ftv_nsec int64 } type Titimerspec = struct { Fit_interval Ttimespec Fit_value Ttimespec } type t__fd_mask = uint64 type Tfd_mask = uint64 type Tsigset_t = struct { F__bits [4]t__uint32_t } type Tfd_set = struct { F__fds_bits [16]t__fd_mask } type Tint_least8_t = int8 type Tint_least16_t = int16 type Tint_least32_t = int32 type Tint_least64_t = int64 type Tuint_least8_t = uint8 type Tuint_least16_t = uint16 type Tuint_least32_t = uint32 type Tuint_least64_t = uint64 type Tint_fast8_t = int32 type Tint_fast16_t = int32 type Tint_fast32_t = int32 type Tint_fast64_t = int64 type Tuint_fast8_t = uint32 type Tuint_fast16_t = uint32 type Tuint_fast32_t = uint32 type Tuint_fast64_t = uint64 type TMD2_CTX = struct { Fi Tuint32_t FC [16]uint8 FX [48]uint8 } type TMD2Context = TMD2_CTX type Tlocale_t = uintptr type Trsize_t = uint64 type Terrno_t = int32 // C documentation // // /* cut-n-pasted from rfc1319 */ var _S = [256]uint8{ 0: uint8(41), 1: uint8(46), 2: uint8(67), 3: uint8(201), 4: uint8(162), 5: uint8(216), 6: uint8(124), 7: uint8(1), 8: uint8(61), 9: uint8(54), 10: uint8(84), 11: uint8(161), 12: uint8(236), 13: uint8(240), 14: uint8(6), 15: uint8(19), 16: uint8(98), 17: uint8(167), 18: uint8(5), 19: uint8(243), 20: uint8(192), 21: uint8(199), 22: uint8(115), 23: uint8(140), 24: uint8(152), 25: uint8(147), 26: uint8(43), 27: uint8(217), 28: uint8(188), 29: uint8(76), 30: uint8(130), 31: uint8(202), 32: uint8(30), 33: uint8(155), 34: uint8(87), 35: uint8(60), 36: uint8(253), 37: uint8(212), 38: uint8(224), 39: uint8(22), 40: uint8(103), 41: uint8(66), 42: uint8(111), 43: uint8(24), 44: uint8(138), 45: uint8(23), 46: uint8(229), 47: uint8(18), 48: uint8(190), 49: uint8(78), 50: uint8(196), 51: uint8(214), 52: uint8(218), 53: uint8(158), 54: uint8(222), 55: uint8(73), 56: uint8(160), 57: uint8(251), 58: uint8(245), 59: uint8(142), 60: uint8(187), 61: uint8(47), 62: uint8(238), 63: uint8(122), 64: uint8(169), 65: uint8(104), 66: uint8(121), 67: uint8(145), 68: uint8(21), 69: uint8(178), 70: uint8(7), 71: uint8(63), 72: uint8(148), 73: uint8(194), 74: uint8(16), 75: uint8(137), 76: uint8(11), 77: uint8(34), 78: uint8(95), 79: uint8(33), 80: uint8(128), 81: uint8(127), 82: uint8(93), 83: uint8(154), 84: uint8(90), 85: uint8(144), 86: uint8(50), 87: uint8(39), 88: uint8(53), 89: uint8(62), 90: uint8(204), 91: uint8(231), 92: uint8(191), 93: uint8(247), 94: uint8(151), 95: uint8(3), 96: uint8(255), 97: uint8(25), 98: uint8(48), 99: uint8(179), 100: uint8(72), 101: uint8(165), 102: uint8(181), 103: uint8(209), 104: uint8(215), 105: uint8(94), 106: uint8(146), 107: uint8(42), 108: uint8(172), 109: uint8(86), 110: uint8(170), 111: uint8(198), 112: uint8(79), 113: uint8(184), 114: uint8(56), 115: uint8(210), 116: uint8(150), 117: uint8(164), 118: uint8(125), 119: uint8(182), 120: uint8(118), 121: uint8(252), 122: uint8(107), 123: uint8(226), 124: uint8(156), 125: uint8(116), 126: uint8(4), 127: uint8(241), 128: uint8(69), 129: uint8(157), 130: uint8(112), 131: uint8(89), 132: uint8(100), 133: uint8(113), 134: uint8(135), 135: uint8(32), 136: uint8(134), 137: uint8(91), 138: uint8(207), 139: uint8(101), 140: uint8(230), 141: uint8(45), 142: uint8(168), 143: uint8(2), 144: uint8(27), 145: uint8(96), 146: uint8(37), 147: uint8(173), 148: uint8(174), 149: uint8(176), 150: uint8(185), 151: uint8(246), 152: uint8(28), 153: uint8(70), 154: uint8(97), 155: uint8(105), 156: uint8(52), 157: uint8(64), 158: uint8(126), 159: uint8(15), 160: uint8(85), 161: uint8(71), 162: uint8(163), 163: uint8(35), 164: uint8(221), 165: uint8(81), 166: uint8(175), 167: uint8(58), 168: uint8(195), 169: uint8(92), 170: uint8(249), 171: uint8(206), 172: uint8(186), 173: uint8(197), 174: uint8(234), 175: uint8(38), 176: uint8(44), 177: uint8(83), 178: uint8(13), 179: uint8(110), 180: uint8(133), 181: uint8(40), 182: uint8(132), 183: uint8(9), 184: uint8(211), 185: uint8(223), 186: uint8(205), 187: uint8(244), 188: uint8(65), 189: uint8(129), 190: uint8(77), 191: uint8(82), 192: uint8(106), 193: uint8(220), 194: uint8(55), 195: uint8(200), 196: uint8(108), 197: uint8(193), 198: uint8(171), 199: uint8(250), 200: uint8(36), 201: uint8(225), 202: uint8(123), 203: uint8(8), 204: uint8(12), 205: uint8(189), 206: uint8(177), 207: uint8(74), 208: uint8(120), 209: uint8(136), 210: uint8(149), 211: uint8(139), 212: uint8(227), 213: uint8(99), 214: uint8(232), 215: uint8(109), 216: uint8(233), 217: uint8(203), 218: uint8(213), 219: uint8(254), 220: uint8(59), 222: uint8(29), 223: uint8(57), 224: uint8(242), 225: uint8(239), 226: uint8(183), 227: uint8(14), 228: uint8(102), 229: uint8(88), 230: uint8(208), 231: uint8(228), 232: uint8(166), 233: uint8(119), 234: uint8(114), 235: uint8(248), 236: uint8(235), 237: uint8(117), 238: uint8(75), 239: uint8(10), 240: uint8(49), 241: uint8(68), 242: uint8(80), 243: uint8(180), 244: uint8(143), 245: uint8(237), 246: uint8(31), 247: uint8(26), 248: uint8(219), 249: uint8(153), 250: uint8(141), 251: uint8(51), 252: uint8(159), 253: uint8(17), 254: uint8(131), 255: uint8(20), } // C documentation // // /* cut-n-pasted from rfc1319 */ var _pad = [17]uintptr{ 0: __ccgo_ts, 1: __ccgo_ts + 1, 2: __ccgo_ts + 3, 3: __ccgo_ts + 6, 4: __ccgo_ts + 10, 5: __ccgo_ts + 15, 6: __ccgo_ts + 21, 7: __ccgo_ts + 28, 8: __ccgo_ts + 36, 9: __ccgo_ts + 45, 10: __ccgo_ts + 55, 11: __ccgo_ts + 66, 12: __ccgo_ts + 78, 13: __ccgo_ts + 91, 14: __ccgo_ts + 105, 15: __ccgo_ts + 120, 16: __ccgo_ts + 136, } func XMD2Init(tls *libc.TLS, context uintptr) { (*TMD2_CTX)(unsafe.Pointer(context)).Fi = uint32(16) libc.Xmemset(tls, context+4, 0, uint64(16)) libc.Xmemset(tls, context+20, 0, uint64(48)) } func XMD2Update(tls *libc.TLS, context uintptr, input uintptr, inputLen uint32) { var idx, piece uint32 var p2 uintptr _, _, _ = idx, piece, p2 idx = uint32(0) for { if !(idx < inputLen) { break } piece = uint32(32) - (*TMD2_CTX)(unsafe.Pointer(context)).Fi if inputLen-idx < piece { piece = inputLen - idx } libc.Xmemcpy(tls, context+20+uintptr((*TMD2_CTX)(unsafe.Pointer(context)).Fi), input+uintptr(idx), uint64(piece)) p2 = context *(*Tuint32_t)(unsafe.Pointer(p2)) += piece if *(*Tuint32_t)(unsafe.Pointer(p2)) == uint32(32) { XMD2Transform(tls, context) } /* resets i */ goto _1 _1: ; idx += piece } } func XMD2Final(tls *libc.TLS, digest uintptr, context uintptr) { var padlen uint32 _ = padlen /* padlen should be 1..16 */ padlen = uint32(32) - (*TMD2_CTX)(unsafe.Pointer(context)).Fi /* add padding */ XMD2Update(tls, context, _pad[padlen], padlen) /* add checksum */ XMD2Update(tls, context, context+4, libc.Uint32FromInt64(16)) /* copy out final digest */ libc.Xmemcpy(tls, digest, context+20, libc.Uint64FromInt32(16)) /* reset the context */ XMD2Init(tls, context) } // C documentation // // /*static*/ func XMD2Transform(tls *libc.TLS, context uintptr) { var j, k, l, t, v4 Tuint32_t var v6 uint8 var p2 uintptr _, _, _, _, _, _, _ = j, k, l, t, v4, v6, p2 /* set block "3" and update "checksum" */ l = uint32(*(*uint8)(unsafe.Pointer(context + 4 + 15))) j = libc.Uint32FromInt32(0) for { if !(j < uint32(16)) { break } *(*uint8)(unsafe.Pointer(context + 20 + uintptr(uint32(32)+j))) = libc.Uint8FromInt32(libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(j)))) ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(uint32(16)+j))))) p2 = context + 4 + uintptr(j) *(*uint8)(unsafe.Pointer(p2)) = uint8(int32(*(*uint8)(unsafe.Pointer(p2))) ^ libc.Int32FromUint8(_S[uint32(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(uint32(16)+j))))^l])) l = uint32(*(*uint8)(unsafe.Pointer(p2))) goto _1 _1: ; j++ } /* mangle input block */ v4 = libc.Uint32FromInt32(0) j = v4 t = v4 for { if !(j < uint32(18)) { break } k = uint32(0) for { if !(k < uint32(48)) { break } v6 = libc.Uint8FromInt32(libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(k)))) ^ libc.Int32FromUint8(_S[t])) *(*uint8)(unsafe.Pointer(context + 20 + uintptr(k))) = v6 t = uint32(v6) goto _5 _5: ; k++ } goto _3 _3: ; t = (t + j) % uint32(256) j++ } /* reset input pointer */ (*TMD2_CTX)(unsafe.Pointer(context)).Fi = uint32(16) } const m_MD4_BLOCK_LENGTH = 64 const m_MD4_DIGEST_LENGTH = 16 type TMD4_CTX = struct { Fstate [4]Tuint32_t Fcount Tuint64_t Fbuffer [64]Tuint8_t } type TMD4Context = TMD4_CTX var _PADDING = [64]Tuint8_t{ 0: uint8(0x80), } // C documentation // // /* // * Start MD4 accumulation. // * Set bit count to 0 and buffer to mysterious initialization constants. // */ func XMD4Init(tls *libc.TLS, ctx uintptr) { (*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0) *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301) *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xefcdab89) *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98badcfe) *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476) } // C documentation // // /* // * Update context to reflect the concatenation of another buffer full // * of bytes. // */ func XMD4Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) { var have, need Tsize_t _, _ = have, need /* Check how many bytes we already have and how many more we need. */ have = (*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(libc.Int32FromInt32(m_MD4_BLOCK_LENGTH)-libc.Int32FromInt32(1)) need = uint64(m_MD4_BLOCK_LENGTH) - have /* Update bitcount */ *(*Tuint64_t)(unsafe.Pointer(ctx + 16)) += len1 << int32(3) if len1 >= need { if have != uint64(0) { libc.Xmemcpy(tls, ctx+24+uintptr(have), input, need) XMD4Transform(tls, ctx, ctx+24) input += uintptr(need) len1 -= need have = uint64(0) } /* Process data in MD4_BLOCK_LENGTH-byte chunks. */ for len1 >= uint64(m_MD4_BLOCK_LENGTH) { XMD4Transform(tls, ctx, input) input += uintptr(m_MD4_BLOCK_LENGTH) len1 -= uint64(m_MD4_BLOCK_LENGTH) } } /* Handle any remaining bytes of data. */ if len1 != uint64(0) { libc.Xmemcpy(tls, ctx+24+uintptr(have), input, len1) } } // C documentation // // /* // * Pad pad to 64-byte boundary with the bit pattern // * 1 0* (64-bit count of bits processed, MSB-first) // */ func XMD4Pad(tls *libc.TLS, ctx uintptr) { bp := tls.Alloc(16) defer tls.Free(16) var padlen Tsize_t var _ /* count at bp+0 */ [8]Tuint8_t _ = padlen /* Convert count to 8 bytes in little endian order. */ (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount) /* Pad out to 56 mod 64. */ padlen = uint64(m_MD4_BLOCK_LENGTH) - (*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount>>libc.Int32FromInt32(3)&libc.Uint64FromInt32(libc.Int32FromInt32(m_MD4_BLOCK_LENGTH)-libc.Int32FromInt32(1)) if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) { padlen += uint64(m_MD4_BLOCK_LENGTH) } XMD4Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING)), padlen-uint64(8)) /* padlen - 8 <= 64 */ XMD4Update(tls, ctx, bp, uint64(8)) } // C documentation // // /* // * Final wrapup--call MD4Pad, fill in digest and zero out ctx. // */ func XMD4Final(tls *libc.TLS, digest uintptr, ctx uintptr) { var i int32 _ = i XMD4Pad(tls, ctx) if digest != libc.UintptrFromInt32(0) { i = 0 for { if !(i < int32(4)) { break } *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24)) *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16)) *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8)) *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4))) goto _1 _1: ; i++ } libc.Xmemset(tls, ctx, 0, uint64(88)) } } /* The three core functions - F1 is optimized somewhat */ /* #define F1(x, y, z) (x & y | ~x & z) */ /* This is the central step in the MD4 algorithm. */ // C documentation // // /* // * The core of the MD4 algorithm, this alters an existing MD4 hash to // * reflect the addition of 16 longwords of new data. MD4Update blocks // * the data and converts bytes into longwords for this routine. // */ func XMD4Transform(tls *libc.TLS, state uintptr, block uintptr) { bp := tls.Alloc(64) defer tls.Free(64) var a, b, c, d Tuint32_t var _ /* in at bp+0 */ [16]Tuint32_t _, _, _, _ = a, b, c, d libc.Xmemcpy(tls, bp, block, uint64(64)) a = *(*Tuint32_t)(unsafe.Pointer(state)) b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19)) a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19)) a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19)) a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19)) a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0x5a827999) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x5a827999) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x5a827999) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x5a827999) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x5a827999) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x5a827999) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x5a827999) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x5a827999) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x5a827999) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x5a827999) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x5a827999) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0x5a827999) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x5a827999) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x5a827999) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x5a827999) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x5a827999) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0x6ed9eba1) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x6ed9eba1) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x6ed9eba1) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x6ed9eba1) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x6ed9eba1) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x6ed9eba1) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x6ed9eba1) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0x6ed9eba1) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x6ed9eba1) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x6ed9eba1) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x6ed9eba1) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x6ed9eba1) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x6ed9eba1) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3)) d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x6ed9eba1) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x6ed9eba1) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x6ed9eba1) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) *(*Tuint32_t)(unsafe.Pointer(state)) += a *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d } const m_MD5_BLOCK_LENGTH = 64 const m_MD5_DIGEST_LENGTH = 16 type TMD5_CTX = struct { Fstate [4]Tuint32_t Fcount Tuint64_t Fbuffer [64]Tuint8_t } type TMD5Context = TMD5_CTX /* Avoid polluting the namespace. Even though this makes this usage * implementation-specific, defining it unconditionally should not be * a problem, and better than possibly breaking unexpecting code. */ var _PADDING1 = [64]Tuint8_t{ 0: uint8(0x80), } // C documentation // // /* // * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious // * initialization constants. // */ func XMD5Init(tls *libc.TLS, ctx uintptr) { (*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0) *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301) *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xefcdab89) *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98badcfe) *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476) } // C documentation // // /* // * Update context to reflect the concatenation of another buffer full // * of bytes. // */ func XMD5Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) { var have, need Tsize_t _, _ = have, need /* Check how many bytes we already have and how many more we need. */ have = (*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(libc.Int32FromInt32(m_MD5_BLOCK_LENGTH)-libc.Int32FromInt32(1)) need = uint64(m_MD5_BLOCK_LENGTH) - have /* Update bitcount */ *(*Tuint64_t)(unsafe.Pointer(ctx + 16)) += len1 << int32(3) if len1 >= need { if have != uint64(0) { libc.Xmemcpy(tls, ctx+24+uintptr(have), input, need) XMD5Transform(tls, ctx, ctx+24) input += uintptr(need) len1 -= need have = uint64(0) } /* Process data in MD5_BLOCK_LENGTH-byte chunks. */ for len1 >= uint64(m_MD5_BLOCK_LENGTH) { XMD5Transform(tls, ctx, input) input += uintptr(m_MD5_BLOCK_LENGTH) len1 -= uint64(m_MD5_BLOCK_LENGTH) } } /* Handle any remaining bytes of data. */ if len1 != uint64(0) { libc.Xmemcpy(tls, ctx+24+uintptr(have), input, len1) } } // C documentation // // /* // * Pad pad to 64-byte boundary with the bit pattern // * 1 0* (64-bit count of bits processed, MSB-first) // */ func XMD5Pad(tls *libc.TLS, ctx uintptr) { bp := tls.Alloc(16) defer tls.Free(16) var padlen Tsize_t var _ /* count at bp+0 */ [8]Tuint8_t _ = padlen /* Convert count to 8 bytes in little endian order. */ (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount) /* Pad out to 56 mod 64. */ padlen = uint64(m_MD5_BLOCK_LENGTH) - (*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount>>libc.Int32FromInt32(3)&libc.Uint64FromInt32(libc.Int32FromInt32(m_MD5_BLOCK_LENGTH)-libc.Int32FromInt32(1)) if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) { padlen += uint64(m_MD5_BLOCK_LENGTH) } XMD5Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING1)), padlen-uint64(8)) /* padlen - 8 <= 64 */ XMD5Update(tls, ctx, bp, uint64(8)) } // C documentation // // /* // * Final wrapup--call MD5Pad, fill in digest and zero out ctx. // */ func XMD5Final(tls *libc.TLS, digest uintptr, ctx uintptr) { var i int32 _ = i XMD5Pad(tls, ctx) if digest != libc.UintptrFromInt32(0) { i = 0 for { if !(i < int32(4)) { break } *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24)) *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16)) *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8)) *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4))) goto _1 _1: ; i++ } libc.Xmemset(tls, ctx, 0, uint64(88)) } } /* The four core functions - F1 is optimized somewhat */ /* #define F1(x, y, z) (x & y | ~x & z) */ /* This is the central step in the MD5 algorithm. */ // C documentation // // /* // * The core of the MD5 algorithm, this alters an existing MD5 hash to // * reflect the addition of 16 longwords of new data. MD5Update blocks // * the data and converts bytes into longwords for this routine. // */ func XMD5Transform(tls *libc.TLS, state uintptr, block uintptr) { bp := tls.Alloc(64) defer tls.Free(64) var a, b, c, d Tuint32_t var _ /* in at bp+0 */ [16]Tuint32_t _, _, _, _ = a, b, c, d libc.Xmemcpy(tls, bp, block, uint64(64)) a = *(*Tuint32_t)(unsafe.Pointer(state)) b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xd76aa478) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) a += b d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xe8c7b756) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) d += a c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x242070db) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17)) c += d b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xc1bdceee) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22)) b += c a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xf57c0faf) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) a += b d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x4787c62a) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) d += a c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xa8304613) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17)) c += d b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0xfd469501) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22)) b += c a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x698098d8) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) a += b d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x8b44f7af) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) d += a c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xffff5bb1) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17)) c += d b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x895cd7be) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22)) b += c a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x6b901122) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) a += b d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0xfd987193) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) d += a c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xa679438e) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17)) c += d b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x49b40821) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22)) b += c a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xf61e2562) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) a += b d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xc040b340) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) d += a c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x265e5a51) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) c += d b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xe9b6c7aa) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20)) b += c a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xd62f105d) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) a += b d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x02441453) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) d += a c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0xd8a1e681) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) c += d b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xe7d3fbc8) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20)) b += c a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x21e1cde6) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) a += b d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xc33707d6) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) d += a c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xf4d50d87) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) c += d b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x455a14ed) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20)) b += c a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0xa9e3e905) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) a += b d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0xfcefa3f8) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) d += a c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x676f02d9) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) c += d b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x8d2a4c8a) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20)) b += c a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xfffa3942) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4)) a += b d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x8771f681) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) d += a c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x6d9d6122) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16)) c += d b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xfde5380c) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23)) b += c a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xa4beea44) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4)) a += b d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x4bdecfa9) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) d += a c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0xf6bb4b60) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16)) c += d b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xbebfbc70) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23)) b += c a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x289b7ec6) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4)) a += b d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xeaa127fa) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) d += a c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xd4ef3085) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16)) c += d b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x04881d05) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23)) b += c a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0xd9d4d039) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4)) a += b d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0xe6db99e5) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) d += a c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x1fa27cf8) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16)) c += d b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0xc4ac5665) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23)) b += c a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xf4292244) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) a += b d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x432aff97) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d += a c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xab9423a7) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) c += d b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xfc93a039) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21)) b += c a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x655b59c3) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) a += b d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x8f0ccc92) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d += a c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xffeff47d) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) c += d b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x85845dd1) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21)) b += c a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x6fa87e4f) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) a += b d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0xfe2ce6e0) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d += a c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xa3014314) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) c += d b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x4e0811a1) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21)) b += c a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xf7537e82) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) a += b d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0xbd3af235) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d += a c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x2ad7d2bb) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) c += d b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0xeb86d391) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21)) b += c *(*Tuint32_t)(unsafe.Pointer(state)) += a *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d } const m_H0 = 1732584193 const m_H1 = 4023233417 const m_H2 = 2562383102 const m_H3 = 271733878 const m_H4 = 3285377520 const m_K0 = 0 const m_K1 = 1518500249 const m_K2 = 1859775393 const m_K3 = 2400959708 const m_K4 = 2840853838 const m_KK0 = 1352829926 const m_KK1 = 1548603684 const m_KK2 = 1836072691 const m_KK3 = 2053994217 const m_KK4 = 0 const m_RMD160_BLOCK_LENGTH = 64 const m_RMD160_DIGEST_LENGTH = 20 type TRMD160_CTX = struct { Fstate [5]Tuint32_t Fcount Tuint64_t Fbuffer [64]Tuint8_t } type TRMD160Context = TRMD160_CTX /* rotate x left n bits. */ var _PADDING2 = [64]Tuint8_t{ 0: uint8(0x80), } func XRMD160Init(tls *libc.TLS, ctx uintptr) { (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0) *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301) *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xEFCDAB89) *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98BADCFE) *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476) *(*Tuint32_t)(unsafe.Pointer(ctx + 4*4)) = uint32(0xC3D2E1F0) } func XRMD160Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) { var have, need, off Tsize_t _, _, _ = have, need, off have = (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount / uint64(8) % uint64(m_RMD160_BLOCK_LENGTH) need = uint64(m_RMD160_BLOCK_LENGTH) - have *(*Tuint64_t)(unsafe.Pointer(ctx + 24)) += uint64(8) * len1 off = uint64(0) if len1 >= need { if have != 0 { libc.Xmemcpy(tls, ctx+32+uintptr(have), input, need) XRMD160Transform(tls, ctx, ctx+32) off = need have = uint64(0) } /* now the buffer is empty */ for off+uint64(m_RMD160_BLOCK_LENGTH) <= len1 { XRMD160Transform(tls, ctx, input+uintptr(off)) off += uint64(m_RMD160_BLOCK_LENGTH) } } if off < len1 { libc.Xmemcpy(tls, ctx+32+uintptr(have), input+uintptr(off), len1-off) } } func XRMD160Pad(tls *libc.TLS, ctx uintptr) { bp := tls.Alloc(16) defer tls.Free(16) var padlen Tsize_t var _ /* size at bp+0 */ [8]Tuint8_t _ = padlen (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8)) (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount) /* * pad to RMD160_BLOCK_LENGTH byte blocks, at least one byte from * PADDING plus 8 bytes for the size */ padlen = uint64(m_RMD160_BLOCK_LENGTH) - (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount/uint64(8)%uint64(m_RMD160_BLOCK_LENGTH) if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) { padlen += uint64(m_RMD160_BLOCK_LENGTH) } XRMD160Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING2)), padlen-uint64(8)) /* padlen - 8 <= 64 */ XRMD160Update(tls, ctx, bp, uint64(8)) } func XRMD160Final(tls *libc.TLS, digest uintptr, ctx uintptr) { var i int32 _ = i XRMD160Pad(tls, ctx) if digest != libc.UintptrFromInt32(0) { i = 0 for { if !(i < int32(5)) { break } *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4))) goto _1 _1: ; i++ } libc.Xmemset(tls, ctx, 0, uint64(96)) } } func XRMD160Transform(tls *libc.TLS, state uintptr, block uintptr) { bp := tls.Alloc(64) defer tls.Free(64) var a, aa, b, bb, c, cc, d, dd, e, ee, t Tuint32_t var _ /* x at bp+0 */ [16]Tuint32_t _, _, _, _, _, _, _, _, _, _, _ = a, aa, b, bb, c, cc, d, dd, e, ee, t libc.Xmemcpy(tls, bp, block, uint64(m_RMD160_BLOCK_LENGTH)) a = *(*Tuint32_t)(unsafe.Pointer(state)) b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) /* Round 1 */ a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #15 */ /* Round 2 */ e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x5A827999))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #31 */ /* Round 3 */ d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x6ED9EBA1))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #47 */ /* Round 4 */ c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x8F1BBCDC))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #63 */ /* Round 5 */ b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0xA953FD4E))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #79 */ aa = a bb = b cc = c dd = d ee = e a = *(*Tuint32_t)(unsafe.Pointer(state)) b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) /* Parallel round 1 */ a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x50A28BE6))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #15 */ /* Parallel round 2 */ e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x5C4DD124))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #31 */ /* Parallel round 3 */ d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x6D703EF3))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #47 */ /* Parallel round 4 */ c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x7A6D76E9))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #63 */ /* Parallel round 5 */ b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + e c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + c a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+0x00000000)<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + a d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #79 */ t = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) + cc + d *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) + dd + e *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) + ee + a *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) + aa + b *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) = *(*Tuint32_t)(unsafe.Pointer(state)) + bb + c *(*Tuint32_t)(unsafe.Pointer(state)) = t } const m_SHA1_BLOCK_LENGTH = 64 const m_SHA1_DIGEST_LENGTH = 20 type TSHA1_CTX = struct { Fstate [5]Tuint32_t Fcount Tuint64_t Fbuffer [64]Tuint8_t } /* * blk0() and blk() perform the initial expand. * I got the idea of expanding during the round function from SSLeay */ /* * (R0+R1), R2, R3, R4 are the different operations (rounds) used in SHA1 */ type TCHAR64LONG16 = struct { Fl [0][16]Tuint32_t Fc [64]Tuint8_t } // C documentation // // /* // * Hash a single 512-bit block. This is the core of the algorithm. // */ func XSHA1Transform(tls *libc.TLS, state uintptr, buffer uintptr) { bp := tls.Alloc(64) defer tls.Free(64) var a, b, c, d, e, v1, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v4, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v5, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v6, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v7, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v8, v80, v81, v82, v83, v84, v9 Tuint32_t var block uintptr var _ /* workspace at bp+0 */ [64]Tuint8_t _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, block, c, d, e, v1, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v4, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v5, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v6, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v7, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v8, v80, v81, v82, v83, v84, v9 block = bp libc.Xmemcpy(tls, block, buffer, uint64(m_SHA1_BLOCK_LENGTH)) /* Copy context->state[] to working vars */ a = *(*Tuint32_t)(unsafe.Pointer(state)) b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) /* 4 rounds of 20 operations each. Loop unrolled. */ v1 = (*(*Tuint32_t)(unsafe.Pointer(block))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block)) = v1 e += b&(c^d) ^ d + v1 + uint32(0x5A827999) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v2 = (*(*Tuint32_t)(unsafe.Pointer(block + 1*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 1*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 1*4)) = v2 d += a&(b^c) ^ c + v2 + uint32(0x5A827999) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v3 = (*(*Tuint32_t)(unsafe.Pointer(block + 2*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 2*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 2*4)) = v3 c += e&(a^b) ^ b + v3 + uint32(0x5A827999) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v4 = (*(*Tuint32_t)(unsafe.Pointer(block + 3*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 3*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 3*4)) = v4 b += d&(e^a) ^ a + v4 + uint32(0x5A827999) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v5 = (*(*Tuint32_t)(unsafe.Pointer(block + 4*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 4*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 4*4)) = v5 a += c&(d^e) ^ e + v5 + uint32(0x5A827999) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v6 = (*(*Tuint32_t)(unsafe.Pointer(block + 5*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 5*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 5*4)) = v6 e += b&(c^d) ^ d + v6 + uint32(0x5A827999) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v7 = (*(*Tuint32_t)(unsafe.Pointer(block + 6*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 6*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 6*4)) = v7 d += a&(b^c) ^ c + v7 + uint32(0x5A827999) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v8 = (*(*Tuint32_t)(unsafe.Pointer(block + 7*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 7*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 7*4)) = v8 c += e&(a^b) ^ b + v8 + uint32(0x5A827999) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v9 = (*(*Tuint32_t)(unsafe.Pointer(block + 8*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 8*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 8*4)) = v9 b += d&(e^a) ^ a + v9 + uint32(0x5A827999) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v10 = (*(*Tuint32_t)(unsafe.Pointer(block + 9*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 9*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 9*4)) = v10 a += c&(d^e) ^ e + v10 + uint32(0x5A827999) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v11 = (*(*Tuint32_t)(unsafe.Pointer(block + 10*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 10*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 10*4)) = v11 e += b&(c^d) ^ d + v11 + uint32(0x5A827999) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v12 = (*(*Tuint32_t)(unsafe.Pointer(block + 11*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 11*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 11*4)) = v12 d += a&(b^c) ^ c + v12 + uint32(0x5A827999) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v13 = (*(*Tuint32_t)(unsafe.Pointer(block + 12*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 12*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 12*4)) = v13 c += e&(a^b) ^ b + v13 + uint32(0x5A827999) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v14 = (*(*Tuint32_t)(unsafe.Pointer(block + 13*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 13*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 13*4)) = v14 b += d&(e^a) ^ a + v14 + uint32(0x5A827999) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v15 = (*(*Tuint32_t)(unsafe.Pointer(block + 14*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 14*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 14*4)) = v15 a += c&(d^e) ^ e + v15 + uint32(0x5A827999) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v16 = (*(*Tuint32_t)(unsafe.Pointer(block + 15*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 15*4))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF) *(*Tuint32_t)(unsafe.Pointer(block + 15*4)) = v16 e += b&(c^d) ^ d + v16 + uint32(0x5A827999) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v17 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(16)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(16)&libc.Int32FromInt32(15))*4)) = v17 d += a&(b^c) ^ c + v17 + uint32(0x5A827999) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v18 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(17)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(17)&libc.Int32FromInt32(15))*4)) = v18 c += e&(a^b) ^ b + v18 + uint32(0x5A827999) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v19 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(18)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(18)&libc.Int32FromInt32(15))*4)) = v19 b += d&(e^a) ^ a + v19 + uint32(0x5A827999) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v20 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(19)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(19)&libc.Int32FromInt32(15))*4)) = v20 a += c&(d^e) ^ e + v20 + uint32(0x5A827999) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v21 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(20)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(20)&libc.Int32FromInt32(15))*4)) = v21 e += b ^ c ^ d + v21 + uint32(0x6ED9EBA1) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v22 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(21)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(21)&libc.Int32FromInt32(15))*4)) = v22 d += a ^ b ^ c + v22 + uint32(0x6ED9EBA1) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v23 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(22)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(22)&libc.Int32FromInt32(15))*4)) = v23 c += e ^ a ^ b + v23 + uint32(0x6ED9EBA1) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v24 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(23)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(23)&libc.Int32FromInt32(15))*4)) = v24 b += d ^ e ^ a + v24 + uint32(0x6ED9EBA1) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v25 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(24)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(24)&libc.Int32FromInt32(15))*4)) = v25 a += c ^ d ^ e + v25 + uint32(0x6ED9EBA1) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v26 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(25)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(25)&libc.Int32FromInt32(15))*4)) = v26 e += b ^ c ^ d + v26 + uint32(0x6ED9EBA1) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v27 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(26)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(26)&libc.Int32FromInt32(15))*4)) = v27 d += a ^ b ^ c + v27 + uint32(0x6ED9EBA1) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v28 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(27)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(27)&libc.Int32FromInt32(15))*4)) = v28 c += e ^ a ^ b + v28 + uint32(0x6ED9EBA1) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v29 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(28)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(28)&libc.Int32FromInt32(15))*4)) = v29 b += d ^ e ^ a + v29 + uint32(0x6ED9EBA1) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v30 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(29)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(29)&libc.Int32FromInt32(15))*4)) = v30 a += c ^ d ^ e + v30 + uint32(0x6ED9EBA1) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v31 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(30)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(30)&libc.Int32FromInt32(15))*4)) = v31 e += b ^ c ^ d + v31 + uint32(0x6ED9EBA1) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v32 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(31)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(31)&libc.Int32FromInt32(15))*4)) = v32 d += a ^ b ^ c + v32 + uint32(0x6ED9EBA1) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v33 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(32)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(32)&libc.Int32FromInt32(15))*4)) = v33 c += e ^ a ^ b + v33 + uint32(0x6ED9EBA1) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v34 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(33)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(33)&libc.Int32FromInt32(15))*4)) = v34 b += d ^ e ^ a + v34 + uint32(0x6ED9EBA1) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v35 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(34)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(34)&libc.Int32FromInt32(15))*4)) = v35 a += c ^ d ^ e + v35 + uint32(0x6ED9EBA1) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v36 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(35)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(35)&libc.Int32FromInt32(15))*4)) = v36 e += b ^ c ^ d + v36 + uint32(0x6ED9EBA1) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v37 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(36)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(36)&libc.Int32FromInt32(15))*4)) = v37 d += a ^ b ^ c + v37 + uint32(0x6ED9EBA1) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v38 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(37)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(37)&libc.Int32FromInt32(15))*4)) = v38 c += e ^ a ^ b + v38 + uint32(0x6ED9EBA1) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v39 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(38)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(38)&libc.Int32FromInt32(15))*4)) = v39 b += d ^ e ^ a + v39 + uint32(0x6ED9EBA1) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v40 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(39)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(39)&libc.Int32FromInt32(15))*4)) = v40 a += c ^ d ^ e + v40 + uint32(0x6ED9EBA1) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v41 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(40)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(40)&libc.Int32FromInt32(15))*4)) = v41 e += (b|c)&d | b&c + v41 + uint32(0x8F1BBCDC) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v42 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(41)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(41)&libc.Int32FromInt32(15))*4)) = v42 d += (a|b)&c | a&b + v42 + uint32(0x8F1BBCDC) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v43 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(42)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(42)&libc.Int32FromInt32(15))*4)) = v43 c += (e|a)&b | e&a + v43 + uint32(0x8F1BBCDC) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v44 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(43)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(43)&libc.Int32FromInt32(15))*4)) = v44 b += (d|e)&a | d&e + v44 + uint32(0x8F1BBCDC) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v45 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(44)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(44)&libc.Int32FromInt32(15))*4)) = v45 a += (c|d)&e | c&d + v45 + uint32(0x8F1BBCDC) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v46 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(45)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(45)&libc.Int32FromInt32(15))*4)) = v46 e += (b|c)&d | b&c + v46 + uint32(0x8F1BBCDC) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v47 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(46)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(46)&libc.Int32FromInt32(15))*4)) = v47 d += (a|b)&c | a&b + v47 + uint32(0x8F1BBCDC) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v48 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(47)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(47)&libc.Int32FromInt32(15))*4)) = v48 c += (e|a)&b | e&a + v48 + uint32(0x8F1BBCDC) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v49 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(48)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(48)&libc.Int32FromInt32(15))*4)) = v49 b += (d|e)&a | d&e + v49 + uint32(0x8F1BBCDC) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v50 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(49)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(49)&libc.Int32FromInt32(15))*4)) = v50 a += (c|d)&e | c&d + v50 + uint32(0x8F1BBCDC) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v51 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(50)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(50)&libc.Int32FromInt32(15))*4)) = v51 e += (b|c)&d | b&c + v51 + uint32(0x8F1BBCDC) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v52 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(51)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(51)&libc.Int32FromInt32(15))*4)) = v52 d += (a|b)&c | a&b + v52 + uint32(0x8F1BBCDC) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v53 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(52)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(52)&libc.Int32FromInt32(15))*4)) = v53 c += (e|a)&b | e&a + v53 + uint32(0x8F1BBCDC) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v54 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(53)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(53)&libc.Int32FromInt32(15))*4)) = v54 b += (d|e)&a | d&e + v54 + uint32(0x8F1BBCDC) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v55 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(54)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(54)&libc.Int32FromInt32(15))*4)) = v55 a += (c|d)&e | c&d + v55 + uint32(0x8F1BBCDC) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v56 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(55)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(55)&libc.Int32FromInt32(15))*4)) = v56 e += (b|c)&d | b&c + v56 + uint32(0x8F1BBCDC) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v57 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(56)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(56)&libc.Int32FromInt32(15))*4)) = v57 d += (a|b)&c | a&b + v57 + uint32(0x8F1BBCDC) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v58 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(57)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(57)&libc.Int32FromInt32(15))*4)) = v58 c += (e|a)&b | e&a + v58 + uint32(0x8F1BBCDC) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v59 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(58)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(58)&libc.Int32FromInt32(15))*4)) = v59 b += (d|e)&a | d&e + v59 + uint32(0x8F1BBCDC) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v60 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(59)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(59)&libc.Int32FromInt32(15))*4)) = v60 a += (c|d)&e | c&d + v60 + uint32(0x8F1BBCDC) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v61 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(60)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(60)&libc.Int32FromInt32(15))*4)) = v61 e += b ^ c ^ d + v61 + uint32(0xCA62C1D6) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v62 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(61)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(61)&libc.Int32FromInt32(15))*4)) = v62 d += a ^ b ^ c + v62 + uint32(0xCA62C1D6) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v63 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(62)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(62)&libc.Int32FromInt32(15))*4)) = v63 c += e ^ a ^ b + v63 + uint32(0xCA62C1D6) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v64 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(63)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(63)&libc.Int32FromInt32(15))*4)) = v64 b += d ^ e ^ a + v64 + uint32(0xCA62C1D6) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v65 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(64)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(64)&libc.Int32FromInt32(15))*4)) = v65 a += c ^ d ^ e + v65 + uint32(0xCA62C1D6) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v66 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(65)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(65)&libc.Int32FromInt32(15))*4)) = v66 e += b ^ c ^ d + v66 + uint32(0xCA62C1D6) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v67 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(66)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(66)&libc.Int32FromInt32(15))*4)) = v67 d += a ^ b ^ c + v67 + uint32(0xCA62C1D6) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v68 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(67)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(67)&libc.Int32FromInt32(15))*4)) = v68 c += e ^ a ^ b + v68 + uint32(0xCA62C1D6) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v69 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(68)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(68)&libc.Int32FromInt32(15))*4)) = v69 b += d ^ e ^ a + v69 + uint32(0xCA62C1D6) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v70 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(69)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(69)&libc.Int32FromInt32(15))*4)) = v70 a += c ^ d ^ e + v70 + uint32(0xCA62C1D6) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v71 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(70)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(70)&libc.Int32FromInt32(15))*4)) = v71 e += b ^ c ^ d + v71 + uint32(0xCA62C1D6) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v72 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(71)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(71)&libc.Int32FromInt32(15))*4)) = v72 d += a ^ b ^ c + v72 + uint32(0xCA62C1D6) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v73 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(72)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(72)&libc.Int32FromInt32(15))*4)) = v73 c += e ^ a ^ b + v73 + uint32(0xCA62C1D6) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v74 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(73)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(73)&libc.Int32FromInt32(15))*4)) = v74 b += d ^ e ^ a + v74 + uint32(0xCA62C1D6) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v75 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(74)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(74)&libc.Int32FromInt32(15))*4)) = v75 a += c ^ d ^ e + v75 + uint32(0xCA62C1D6) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v76 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(75)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(75)&libc.Int32FromInt32(15))*4)) = v76 e += b ^ c ^ d + v76 + uint32(0xCA62C1D6) + (a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) b = b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v77 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(76)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(76)&libc.Int32FromInt32(15))*4)) = v77 d += a ^ b ^ c + v77 + uint32(0xCA62C1D6) + (e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) a = a<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v78 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(77)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(77)&libc.Int32FromInt32(15))*4)) = v78 c += e ^ a ^ b + v78 + uint32(0xCA62C1D6) + (d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) e = e<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v79 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(78)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(78)&libc.Int32FromInt32(15))*4)) = v79 b += d ^ e ^ a + v79 + uint32(0xCA62C1D6) + (c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) d = d<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) v80 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(79)&libc.Int32FromInt32(15))*4)))<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)) *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(79)&libc.Int32FromInt32(15))*4)) = v80 a += c ^ d ^ e + v80 + uint32(0xCA62C1D6) + (b<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))) c = c<>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30)) /* Add the working vars back into context.state[] */ *(*Tuint32_t)(unsafe.Pointer(state)) += a *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) += e /* Wipe variables */ v84 = libc.Uint32FromInt32(0) e = v84 v83 = v84 d = v83 v82 = v83 c = v82 v81 = v82 b = v81 a = v81 } // C documentation // // /* // * SHA1Init - Initialize new context // */ func XSHA1Init(tls *libc.TLS, context uintptr) { /* SHA1 initialization constants */ (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount = uint64(0) *(*Tuint32_t)(unsafe.Pointer(context)) = uint32(0x67452301) *(*Tuint32_t)(unsafe.Pointer(context + 1*4)) = uint32(0xEFCDAB89) *(*Tuint32_t)(unsafe.Pointer(context + 2*4)) = uint32(0x98BADCFE) *(*Tuint32_t)(unsafe.Pointer(context + 3*4)) = uint32(0x10325476) *(*Tuint32_t)(unsafe.Pointer(context + 4*4)) = uint32(0xC3D2E1F0) } // C documentation // // /* // * Run your data through this. // */ func XSHA1Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) { var i, j, v1 Tsize_t _, _, _ = i, j, v1 j = (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(63) *(*Tuint64_t)(unsafe.Pointer(context + 24)) += len1 << libc.Int32FromInt32(3) if j+len1 > uint64(63) { v1 = libc.Uint64FromInt32(64) - j i = v1 libc.Xmemcpy(tls, context+32+uintptr(j), data, v1) XSHA1Transform(tls, context, context+32) for { if !(i+uint64(63) < len1) { break } XSHA1Transform(tls, context, data+uintptr(i)) goto _2 _2: ; i += uint64(64) } j = uint64(0) } else { i = uint64(0) } libc.Xmemcpy(tls, context+32+uintptr(j), data+uintptr(i), len1-i) } // C documentation // // /* // * Add padding and return the message digest. // */ func XSHA1Pad(tls *libc.TLS, context uintptr) { bp := tls.Alloc(16) defer tls.Free(16) var i uint32 var _ /* finalcount at bp+0 */ [8]Tuint8_t _ = i i = uint32(0) for { if !(i < uint32(8)) { break } (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[i] = uint8((*TSHA1_CTX)(unsafe.Pointer(context)).Fcount >> ((libc.Uint32FromInt32(7) - i&libc.Uint32FromInt32(7)) * libc.Uint32FromInt32(8)) & libc.Uint64FromInt32(255)) /* Endian independent */ goto _1 _1: ; i++ } XSHA1Update(tls, context, __ccgo_ts+153, uint64(1)) for (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount&uint64(504) != uint64(448) { XSHA1Update(tls, context, __ccgo_ts+155, uint64(1)) } XSHA1Update(tls, context, bp, uint64(8)) /* Should cause a SHA1Transform() */ } func XSHA1Final(tls *libc.TLS, digest uintptr, context uintptr) { var i uint32 _ = i XSHA1Pad(tls, context) if digest != 0 { i = uint32(0) for { if !(i < uint32(m_SHA1_DIGEST_LENGTH)) { break } *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i))) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i>>int32(2))*4)) >> ((libc.Uint32FromInt32(3) - i&libc.Uint32FromInt32(3)) * libc.Uint32FromInt32(8)) & libc.Uint32FromInt32(255)) goto _1 _1: ; i++ } libc.Xmemset(tls, context, 0, uint64(96)) } } const m_SHA256_BLOCK_LENGTH = 64 const m_SHA256_DIGEST_LENGTH = 32 const m_SHA384_BLOCK_LENGTH = 128 const m_SHA384_DIGEST_LENGTH = 48 const m_SHA512_BLOCK_LENGTH = 128 const m_SHA512_DIGEST_LENGTH = 64 type TSHA2_CTX = struct { Fstate struct { Fst64 [0][8]Tuint64_t Fst32 [8]Tuint32_t F__ccgo_pad2 [32]byte } Fbitcount [2]Tuint64_t Fbuffer [128]Tuint8_t } type T_SHA2_CTX = TSHA2_CTX /* * UNROLLED TRANSFORM LOOP NOTE: * You can define SHA2_UNROLL_TRANSFORM to use the unrolled transform * loop version for the hash transform rounds (defined using macros * later in this file). Either define on the command line, for example: * * cc -DSHA2_UNROLL_TRANSFORM -o sha2 sha2.c sha2prog.c * * or define below: * * #define SHA2_UNROLL_TRANSFORM * */ /*** SHA-256/384/512 Various Length Definitions ***********************/ /* NOTE: Most of these are in sha2.h */ /*** ENDIAN SPECIFIC COPY MACROS **************************************/ /* * Macro for incrementally adding the unsigned 64-bit integer n to the * unsigned 128-bit integer (represented using a two-element array of * 64-bit words): */ /*** THE SIX LOGICAL FUNCTIONS ****************************************/ /* * Bit shifting and rotation (used by the six SHA-XYZ logical functions: * * NOTE: The naming of R and S appears backwards here (R is a SHIFT and * S is a ROTATION) because the SHA-256/384/512 description document * (see http://csrc.nist.gov/cryptval/shs/sha256-384-512.pdf) uses this * same "backwards" definition. */ /* Shift-right (used in SHA-256, SHA-384, and SHA-512): */ /* 32-bit Rotate-right (used in SHA-256): */ /* 64-bit Rotate-right (used in SHA-384 and SHA-512): */ /* Two of six logical functions used in SHA-256, SHA-384, and SHA-512: */ /* Four of six logical functions used in SHA-256: */ /* Four of six logical functions used in SHA-384 and SHA-512: */ // C documentation // // /*** SHA-XYZ INITIAL HASH VALUES AND CONSTANTS ************************/ // /* Hash constant words K for SHA-256: */ var _K256 = [64]Tuint32_t{ 0: uint32(0x428a2f98), 1: uint32(0x71374491), 2: uint32(0xb5c0fbcf), 3: uint32(0xe9b5dba5), 4: uint32(0x3956c25b), 5: uint32(0x59f111f1), 6: uint32(0x923f82a4), 7: uint32(0xab1c5ed5), 8: uint32(0xd807aa98), 9: uint32(0x12835b01), 10: uint32(0x243185be), 11: uint32(0x550c7dc3), 12: uint32(0x72be5d74), 13: uint32(0x80deb1fe), 14: uint32(0x9bdc06a7), 15: uint32(0xc19bf174), 16: uint32(0xe49b69c1), 17: uint32(0xefbe4786), 18: uint32(0x0fc19dc6), 19: uint32(0x240ca1cc), 20: uint32(0x2de92c6f), 21: uint32(0x4a7484aa), 22: uint32(0x5cb0a9dc), 23: uint32(0x76f988da), 24: uint32(0x983e5152), 25: uint32(0xa831c66d), 26: uint32(0xb00327c8), 27: uint32(0xbf597fc7), 28: uint32(0xc6e00bf3), 29: uint32(0xd5a79147), 30: uint32(0x06ca6351), 31: uint32(0x14292967), 32: uint32(0x27b70a85), 33: uint32(0x2e1b2138), 34: uint32(0x4d2c6dfc), 35: uint32(0x53380d13), 36: uint32(0x650a7354), 37: uint32(0x766a0abb), 38: uint32(0x81c2c92e), 39: uint32(0x92722c85), 40: uint32(0xa2bfe8a1), 41: uint32(0xa81a664b), 42: uint32(0xc24b8b70), 43: uint32(0xc76c51a3), 44: uint32(0xd192e819), 45: uint32(0xd6990624), 46: uint32(0xf40e3585), 47: uint32(0x106aa070), 48: uint32(0x19a4c116), 49: uint32(0x1e376c08), 50: uint32(0x2748774c), 51: uint32(0x34b0bcb5), 52: uint32(0x391c0cb3), 53: uint32(0x4ed8aa4a), 54: uint32(0x5b9cca4f), 55: uint32(0x682e6ff3), 56: uint32(0x748f82ee), 57: uint32(0x78a5636f), 58: uint32(0x84c87814), 59: uint32(0x8cc70208), 60: uint32(0x90befffa), 61: uint32(0xa4506ceb), 62: uint32(0xbef9a3f7), 63: uint32(0xc67178f2), } // C documentation // // /* Initial hash value H for SHA-256: */ var _sha256_initial_hash_value = [8]Tuint32_t{ 0: uint32(0x6a09e667), 1: uint32(0xbb67ae85), 2: uint32(0x3c6ef372), 3: uint32(0xa54ff53a), 4: uint32(0x510e527f), 5: uint32(0x9b05688c), 6: uint32(0x1f83d9ab), 7: uint32(0x5be0cd19), } // C documentation // // /* Hash constant words K for SHA-384 and SHA-512: */ var _K512 = [80]Tuint64_t{ 0: uint64(0x428a2f98d728ae22), 1: uint64(0x7137449123ef65cd), 2: uint64(0xb5c0fbcfec4d3b2f), 3: uint64(0xe9b5dba58189dbbc), 4: uint64(0x3956c25bf348b538), 5: uint64(0x59f111f1b605d019), 6: uint64(0x923f82a4af194f9b), 7: uint64(0xab1c5ed5da6d8118), 8: uint64(0xd807aa98a3030242), 9: uint64(0x12835b0145706fbe), 10: uint64(0x243185be4ee4b28c), 11: uint64(0x550c7dc3d5ffb4e2), 12: uint64(0x72be5d74f27b896f), 13: uint64(0x80deb1fe3b1696b1), 14: uint64(0x9bdc06a725c71235), 15: uint64(0xc19bf174cf692694), 16: uint64(0xe49b69c19ef14ad2), 17: uint64(0xefbe4786384f25e3), 18: uint64(0x0fc19dc68b8cd5b5), 19: uint64(0x240ca1cc77ac9c65), 20: uint64(0x2de92c6f592b0275), 21: uint64(0x4a7484aa6ea6e483), 22: uint64(0x5cb0a9dcbd41fbd4), 23: uint64(0x76f988da831153b5), 24: uint64(0x983e5152ee66dfab), 25: uint64(0xa831c66d2db43210), 26: uint64(0xb00327c898fb213f), 27: uint64(0xbf597fc7beef0ee4), 28: uint64(0xc6e00bf33da88fc2), 29: uint64(0xd5a79147930aa725), 30: uint64(0x06ca6351e003826f), 31: uint64(0x142929670a0e6e70), 32: uint64(0x27b70a8546d22ffc), 33: uint64(0x2e1b21385c26c926), 34: uint64(0x4d2c6dfc5ac42aed), 35: uint64(0x53380d139d95b3df), 36: uint64(0x650a73548baf63de), 37: uint64(0x766a0abb3c77b2a8), 38: uint64(0x81c2c92e47edaee6), 39: uint64(0x92722c851482353b), 40: uint64(0xa2bfe8a14cf10364), 41: uint64(0xa81a664bbc423001), 42: uint64(0xc24b8b70d0f89791), 43: uint64(0xc76c51a30654be30), 44: uint64(0xd192e819d6ef5218), 45: uint64(0xd69906245565a910), 46: uint64(0xf40e35855771202a), 47: uint64(0x106aa07032bbd1b8), 48: uint64(0x19a4c116b8d2d0c8), 49: uint64(0x1e376c085141ab53), 50: uint64(0x2748774cdf8eeb99), 51: uint64(0x34b0bcb5e19b48a8), 52: uint64(0x391c0cb3c5c95a63), 53: uint64(0x4ed8aa4ae3418acb), 54: uint64(0x5b9cca4f7763e373), 55: uint64(0x682e6ff3d6b2b8a3), 56: uint64(0x748f82ee5defb2fc), 57: uint64(0x78a5636f43172f60), 58: uint64(0x84c87814a1f0ab72), 59: uint64(0x8cc702081a6439ec), 60: uint64(0x90befffa23631e28), 61: uint64(0xa4506cebde82bde9), 62: uint64(0xbef9a3f7b2c67915), 63: uint64(0xc67178f2e372532b), 64: uint64(0xca273eceea26619c), 65: uint64(0xd186b8c721c0c207), 66: uint64(0xeada7dd6cde0eb1e), 67: uint64(0xf57d4f7fee6ed178), 68: uint64(0x06f067aa72176fba), 69: uint64(0x0a637dc5a2c898a6), 70: uint64(0x113f9804bef90dae), 71: uint64(0x1b710b35131c471b), 72: uint64(0x28db77f523047d84), 73: uint64(0x32caab7b40c72493), 74: uint64(0x3c9ebe0a15c9bebc), 75: uint64(0x431d67c49c100d4c), 76: uint64(0x4cc5d4becb3e42b6), 77: uint64(0x597f299cfc657e2a), 78: uint64(0x5fcb6fab3ad6faec), 79: uint64(0x6c44198c4a475817), } // C documentation // // /* Initial hash value H for SHA-384 */ var _sha384_initial_hash_value = [8]Tuint64_t{ 0: uint64(0xcbbb9d5dc1059ed8), 1: uint64(0x629a292a367cd507), 2: uint64(0x9159015a3070dd17), 3: uint64(0x152fecd8f70e5939), 4: uint64(0x67332667ffc00b31), 5: uint64(0x8eb44a8768581511), 6: uint64(0xdb0c2e0d64f98fa7), 7: uint64(0x47b5481dbefa4fa4), } // C documentation // // /* Initial hash value H for SHA-512 */ var _sha512_initial_hash_value = [8]Tuint64_t{ 0: uint64(0x6a09e667f3bcc908), 1: uint64(0xbb67ae8584caa73b), 2: uint64(0x3c6ef372fe94f82b), 3: uint64(0xa54ff53a5f1d36f1), 4: uint64(0x510e527fade682d1), 5: uint64(0x9b05688c2b3e6c1f), 6: uint64(0x1f83d9abfb41bd6b), 7: uint64(0x5be0cd19137e2179), } // C documentation // // /*** SHA-256: *********************************************************/ func XSHA256Init(tls *libc.TLS, context uintptr) { if context == libc.UintptrFromInt32(0) { return } libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha256_initial_hash_value)), uint64(32)) libc.Xmemset(tls, context+80, 0, uint64(128)) *(*Tuint64_t)(unsafe.Pointer(context + 64)) = uint64(0) } func XSHA256Transform(tls *libc.TLS, state uintptr, data uintptr) { bp := tls.Alloc(64) defer tls.Free(64) var T1, T2, a, b, c, d, e, f, g, h, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9 Tuint32_t var j int32 var p1 uintptr var _ /* W256 at bp+0 */ [16]Tuint32_t _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = T1, T2, a, b, c, d, e, f, g, h, j, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9, p1 /* Initialize registers with the prev. intermediate value */ a = *(*Tuint32_t)(unsafe.Pointer(state)) b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) f = *(*Tuint32_t)(unsafe.Pointer(state + 5*4)) g = *(*Tuint32_t)(unsafe.Pointer(state + 6*4)) h = *(*Tuint32_t)(unsafe.Pointer(state + 7*4)) j = 0 for cond := true; cond; cond = j < int32(16) { (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[j] = uint32(*(*Tuint8_t)(unsafe.Pointer(data + 3))) | uint32(*(*Tuint8_t)(unsafe.Pointer(data + 2)))<>libc.Int32FromInt32(6) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) ^ (e>>libc.Int32FromInt32(11) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))) ^ (e>>libc.Int32FromInt32(25) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(25)))) + (e&f ^ ^e&g) + _K256[j] + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[j] T2 = a>>libc.Int32FromInt32(2) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(2)) ^ (a>>libc.Int32FromInt32(13) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))) ^ (a>>libc.Int32FromInt32(22) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))) + (a&b ^ a&c ^ b&c) h = g g = f f = e e = d + T1 d = c c = b b = a a = T1 + T2 j++ } for cond := true; cond; cond = j < int32(64) { /* Part of the message block expansion: */ s0 = (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(1))&int32(0x0f)] s0 = s0>>libc.Int32FromInt32(7) | s0<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) ^ (s0>>libc.Int32FromInt32(18) | s0<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(18))) ^ s0>>libc.Int32FromInt32(3) s1 = (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(14))&int32(0x0f)] s1 = s1>>libc.Int32FromInt32(17) | s1<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(17)) ^ (s1>>libc.Int32FromInt32(19) | s1<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))) ^ s1>>libc.Int32FromInt32(10) /* Apply the SHA-256 compression function to update a..h */ p1 = bp + uintptr(j&int32(0x0f))*4 *(*Tuint32_t)(unsafe.Pointer(p1)) += s1 + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(9))&int32(0x0f)] + s0 T1 = h + (e>>libc.Int32FromInt32(6) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) ^ (e>>libc.Int32FromInt32(11) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))) ^ (e>>libc.Int32FromInt32(25) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(25)))) + (e&f ^ ^e&g) + _K256[j] + *(*Tuint32_t)(unsafe.Pointer(p1)) T2 = a>>libc.Int32FromInt32(2) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(2)) ^ (a>>libc.Int32FromInt32(13) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))) ^ (a>>libc.Int32FromInt32(22) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))) + (a&b ^ a&c ^ b&c) h = g g = f f = e e = d + T1 d = c c = b b = a a = T1 + T2 j++ } /* Compute the current intermediate hash value */ *(*Tuint32_t)(unsafe.Pointer(state)) += a *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) += e *(*Tuint32_t)(unsafe.Pointer(state + 5*4)) += f *(*Tuint32_t)(unsafe.Pointer(state + 6*4)) += g *(*Tuint32_t)(unsafe.Pointer(state + 7*4)) += h /* Clean up */ v10 = libc.Uint32FromInt32(0) T2 = v10 v9 = v10 T1 = v9 v8 = v9 h = v8 v7 = v8 g = v7 v6 = v7 f = v6 v5 = v6 e = v5 v4 = v5 d = v4 v3 = v4 c = v3 v2 = v3 b = v2 a = v2 } func XSHA256Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) { var freespace, usedspace, v1, v2 Tsize_t _, _, _, _ = freespace, usedspace, v1, v2 /* Calling with no data is valid (we do nothing) */ if len1 == uint64(0) { return } usedspace = *(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA256_BLOCK_LENGTH) if usedspace > uint64(0) { /* Calculate how much free space is available in the buffer */ freespace = uint64(m_SHA256_BLOCK_LENGTH) - usedspace if len1 >= freespace { /* Fill the buffer completely and process it */ libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, freespace) *(*Tuint64_t)(unsafe.Pointer(context + 64)) += freespace << int32(3) len1 -= freespace data += uintptr(freespace) XSHA256Transform(tls, context, context+80) } else { /* The buffer is not yet full */ libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, len1) *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << int32(3) /* Clean up: */ v1 = libc.Uint64FromInt32(0) freespace = v1 usedspace = v1 return } } for len1 >= uint64(m_SHA256_BLOCK_LENGTH) { /* Process as many complete blocks as we can */ XSHA256Transform(tls, context, data) *(*Tuint64_t)(unsafe.Pointer(context + 64)) += libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH) << libc.Int32FromInt32(3)) len1 -= uint64(m_SHA256_BLOCK_LENGTH) data += uintptr(m_SHA256_BLOCK_LENGTH) } if len1 > uint64(0) { /* There's left-overs, so save 'em */ libc.Xmemcpy(tls, context+80, data, len1) *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << int32(3) } /* Clean up: */ v2 = libc.Uint64FromInt32(0) freespace = v2 usedspace = v2 } func XSHA256Pad(tls *libc.TLS, context uintptr) { var usedspace, v1 uint32 _, _ = usedspace, v1 usedspace = uint32(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA256_BLOCK_LENGTH)) if usedspace > uint32(0) { /* Begin padding with a 1 bit: */ v1 = usedspace usedspace++ *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(v1))) = uint8(0x80) if usedspace <= libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) { /* Set-up for the last transform: */ libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8))-usedspace)) } else { if usedspace < uint32(m_SHA256_BLOCK_LENGTH) { libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(uint32(m_SHA256_BLOCK_LENGTH)-usedspace)) } /* Do second-to-last transform: */ XSHA256Transform(tls, context, context+80) /* Prepare for last transform: */ libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8))) } } else { /* Set-up for the last transform: */ libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8))) /* Begin padding with a 1 bit: */ *(*Tuint8_t)(unsafe.Pointer(context + 80)) = uint8(0x80) } /* Store the length of input data (in bits) in big endian format: */ *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(56)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(48)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(40)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(32)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(24)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(16)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(8)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64))) /* Final transform: */ XSHA256Transform(tls, context, context+80) /* Clean up: */ usedspace = uint32(0) } func XSHA256Final(tls *libc.TLS, digest uintptr, context uintptr) { var i int32 _ = i XSHA256Pad(tls, context) /* If no digest buffer is passed, we don't bother doing this: */ if digest != libc.UintptrFromInt32(0) { /* Convert TO host byte order */ i = 0 for { if !(i < int32(8)) { break } *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(24)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(16)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(8)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4))) goto _1 _1: ; i++ } libc.Xmemset(tls, context, 0, uint64(208)) } } // C documentation // // /*** SHA-512: *********************************************************/ func XSHA512Init(tls *libc.TLS, context uintptr) { var v1 Tuint64_t _ = v1 if context == libc.UintptrFromInt32(0) { return } libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha512_initial_hash_value)), uint64(64)) libc.Xmemset(tls, context+80, 0, uint64(128)) v1 = libc.Uint64FromInt32(0) *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) = v1 *(*Tuint64_t)(unsafe.Pointer(context + 64)) = v1 } func XSHA512Transform(tls *libc.TLS, state uintptr, data uintptr) { bp := tls.Alloc(128) defer tls.Free(128) var T1, T2, a, b, c, d, e, f, g, h, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9 Tuint64_t var j int32 var p1 uintptr var _ /* W512 at bp+0 */ [16]Tuint64_t _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = T1, T2, a, b, c, d, e, f, g, h, j, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9, p1 /* Initialize registers with the prev. intermediate value */ a = *(*Tuint64_t)(unsafe.Pointer(state)) b = *(*Tuint64_t)(unsafe.Pointer(state + 1*8)) c = *(*Tuint64_t)(unsafe.Pointer(state + 2*8)) d = *(*Tuint64_t)(unsafe.Pointer(state + 3*8)) e = *(*Tuint64_t)(unsafe.Pointer(state + 4*8)) f = *(*Tuint64_t)(unsafe.Pointer(state + 5*8)) g = *(*Tuint64_t)(unsafe.Pointer(state + 6*8)) h = *(*Tuint64_t)(unsafe.Pointer(state + 7*8)) j = 0 for cond := true; cond; cond = j < int32(16) { (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[j] = uint64(*(*Tuint8_t)(unsafe.Pointer(data + 7))) | uint64(*(*Tuint8_t)(unsafe.Pointer(data + 6)))<>libc.Int32FromInt32(14) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(14)) ^ (e>>libc.Int32FromInt32(18) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(18))) ^ (e>>libc.Int32FromInt32(41) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(41)))) + (e&f ^ ^e&g) + _K512[j] + (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[j] T2 = a>>libc.Int32FromInt32(28) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(28)) ^ (a>>libc.Int32FromInt32(34) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(34))) ^ (a>>libc.Int32FromInt32(39) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(39))) + (a&b ^ a&c ^ b&c) h = g g = f f = e e = d + T1 d = c c = b b = a a = T1 + T2 j++ } for cond := true; cond; cond = j < int32(80) { /* Part of the message block expansion: */ s0 = (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(1))&int32(0x0f)] s0 = s0>>libc.Int32FromInt32(1) | s0<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(1)) ^ (s0>>libc.Int32FromInt32(8) | s0<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(8))) ^ s0>>libc.Int32FromInt32(7) s1 = (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(14))&int32(0x0f)] s1 = s1>>libc.Int32FromInt32(19) | s1<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(19)) ^ (s1>>libc.Int32FromInt32(61) | s1<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(61))) ^ s1>>libc.Int32FromInt32(6) /* Apply the SHA-512 compression function to update a..h */ p1 = bp + uintptr(j&int32(0x0f))*8 *(*Tuint64_t)(unsafe.Pointer(p1)) += s1 + (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(9))&int32(0x0f)] + s0 T1 = h + (e>>libc.Int32FromInt32(14) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(14)) ^ (e>>libc.Int32FromInt32(18) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(18))) ^ (e>>libc.Int32FromInt32(41) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(41)))) + (e&f ^ ^e&g) + _K512[j] + *(*Tuint64_t)(unsafe.Pointer(p1)) T2 = a>>libc.Int32FromInt32(28) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(28)) ^ (a>>libc.Int32FromInt32(34) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(34))) ^ (a>>libc.Int32FromInt32(39) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(39))) + (a&b ^ a&c ^ b&c) h = g g = f f = e e = d + T1 d = c c = b b = a a = T1 + T2 j++ } /* Compute the current intermediate hash value */ *(*Tuint64_t)(unsafe.Pointer(state)) += a *(*Tuint64_t)(unsafe.Pointer(state + 1*8)) += b *(*Tuint64_t)(unsafe.Pointer(state + 2*8)) += c *(*Tuint64_t)(unsafe.Pointer(state + 3*8)) += d *(*Tuint64_t)(unsafe.Pointer(state + 4*8)) += e *(*Tuint64_t)(unsafe.Pointer(state + 5*8)) += f *(*Tuint64_t)(unsafe.Pointer(state + 6*8)) += g *(*Tuint64_t)(unsafe.Pointer(state + 7*8)) += h /* Clean up */ v10 = libc.Uint64FromInt32(0) T2 = v10 v9 = v10 T1 = v9 v8 = v9 h = v8 v7 = v8 g = v7 v6 = v7 f = v6 v5 = v6 e = v5 v4 = v5 d = v4 v3 = v4 c = v3 v2 = v3 b = v2 a = v2 } func XSHA512Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) { var freespace, usedspace, v1, v2 Tsize_t _, _, _, _ = freespace, usedspace, v1, v2 /* Calling with no data is valid (we do nothing) */ if len1 == uint64(0) { return } usedspace = *(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA512_BLOCK_LENGTH) if usedspace > uint64(0) { /* Calculate how much free space is available in the buffer */ freespace = uint64(m_SHA512_BLOCK_LENGTH) - usedspace if len1 >= freespace { /* Fill the buffer completely and process it */ libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, freespace) *(*Tuint64_t)(unsafe.Pointer(context + 64)) += freespace << libc.Int32FromInt32(3) if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < freespace<= uint64(m_SHA512_BLOCK_LENGTH) { /* Process as many complete blocks as we can */ XSHA512Transform(tls, context, data) *(*Tuint64_t)(unsafe.Pointer(context + 64)) += libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH) << libc.Int32FromInt32(3)) if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)< uint64(0) { /* There's left-overs, so save 'em */ libc.Xmemcpy(tls, context+80, data, len1) *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << libc.Int32FromInt32(3) if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < len1<> libc.Int32FromInt32(3) % uint64(m_SHA512_BLOCK_LENGTH)) if usedspace > uint32(0) { /* Begin padding with a 1 bit: */ v1 = usedspace usedspace++ *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(v1))) = uint8(0x80) if usedspace <= libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) { /* Set-up for the last transform: */ libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16))-usedspace)) } else { if usedspace < uint32(m_SHA512_BLOCK_LENGTH) { libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(uint32(m_SHA512_BLOCK_LENGTH)-usedspace)) } /* Do second-to-last transform: */ XSHA512Transform(tls, context, context+80) /* And set-up for the last transform: */ libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(2))) } } else { /* Prepare for final transform: */ libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16))) /* Begin padding with a 1 bit: */ *(*Tuint8_t)(unsafe.Pointer(context + 80)) = uint8(0x80) } /* Store the length of input data (in bits) in big endian format: */ *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(56)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(48)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(40)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(32)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(24)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(16)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(8)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(56)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(48)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(40)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(32)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(24)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(16)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(8)) *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64))) /* Final transform: */ XSHA512Transform(tls, context, context+80) /* Clean up: */ usedspace = uint32(0) } func XSHA512Final(tls *libc.TLS, digest uintptr, context uintptr) { var i int32 _ = i XSHA512Pad(tls, context) /* If no digest buffer is passed, we don't bother doing this: */ if digest != libc.UintptrFromInt32(0) { /* Convert TO host byte order */ i = 0 for { if !(i < int32(8)) { break } *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(56)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(48)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(40)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(32)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(24)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(16)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(8)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8))) goto _1 _1: ; i++ } libc.Xmemset(tls, context, 0, uint64(208)) } } // C documentation // // /*** SHA-384: *********************************************************/ func XSHA384Init(tls *libc.TLS, context uintptr) { var v1 Tuint64_t _ = v1 if context == libc.UintptrFromInt32(0) { return } libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha384_initial_hash_value)), uint64(64)) libc.Xmemset(tls, context+80, 0, uint64(128)) v1 = libc.Uint64FromInt32(0) *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) = v1 *(*Tuint64_t)(unsafe.Pointer(context + 64)) = v1 } func XSHA384Final(tls *libc.TLS, digest uintptr, context uintptr) { var i int32 _ = i XSHA512Pad(tls, context) /* If no digest buffer is passed, we don't bother doing this: */ if digest != libc.UintptrFromInt32(0) { /* Convert TO host byte order */ i = 0 for { if !(i < int32(6)) { break } *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(56)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(48)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(40)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(32)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(24)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(16)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(8)) *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8))) goto _1 _1: ; i++ } } /* Zero out state data */ libc.Xmemset(tls, context, 0, uint64(208)) } const m_AT_EACCESS = 0x0100 const m_AT_EMPTY_PATH = 0x4000 const m_AT_REMOVEDIR = 0x0800 const m_AT_RESOLVE_BENEATH = 0x2000 const m_AT_SYMLINK_FOLLOW = 0x0400 const m_AT_SYMLINK_NOFOLLOW = 0x0200 const m_BUFSIZ = 1024 const m_CLK_TCK = 128 const m_CLOCKS_PER_SEC = 128 const m_CLOCK_BOOTTIME = "CLOCK_UPTIME" const m_CLOCK_MONOTONIC = 4 const m_CLOCK_MONOTONIC_COARSE = "CLOCK_MONOTONIC_FAST" const m_CLOCK_MONOTONIC_FAST = 12 const m_CLOCK_MONOTONIC_PRECISE = 11 const m_CLOCK_PROCESS_CPUTIME_ID = 15 const m_CLOCK_PROF = 2 const m_CLOCK_REALTIME = 0 const m_CLOCK_REALTIME_COARSE = "CLOCK_REALTIME_FAST" const m_CLOCK_REALTIME_FAST = 10 const m_CLOCK_REALTIME_PRECISE = 9 const m_CLOCK_SECOND = 13 const m_CLOCK_THREAD_CPUTIME_ID = 14 const m_CLOCK_UPTIME = 5 const m_CLOCK_UPTIME_FAST = 8 const m_CLOCK_UPTIME_PRECISE = 7 const m_CLOCK_VIRTUAL = 1 const m_CPUCLOCK_WHICH_PID = 0 const m_CPUCLOCK_WHICH_TID = 1 const m_DST_AUST = 2 const m_DST_CAN = 6 const m_DST_EET = 5 const m_DST_MET = 4 const m_DST_NONE = 0 const m_DST_USA = 1 const m_DST_WET = 3 const m_E2BIG = 7 const m_EACCES = 13 const m_EADDRINUSE = 48 const m_EADDRNOTAVAIL = 49 const m_EAFNOSUPPORT = 47 const m_EAGAIN = 35 const m_EALREADY = 37 const m_EAUTH = 80 const m_EBADF = 9 const m_EBADMSG = 89 const m_EBADRPC = 72 const m_EBUSY = 16 const m_ECANCELED = 85 const m_ECAPMODE = 94 const m_ECHILD = 10 const m_ECONNABORTED = 53 const m_ECONNREFUSED = 61 const m_ECONNRESET = 54 const m_EDEADLK = 11 const m_EDESTADDRREQ = 39 const m_EDOM = 33 const m_EDOOFUS = 88 const m_EDQUOT = 69 const m_EEXIST = 17 const m_EFAULT = 14 const m_EFBIG = 27 const m_EFTYPE = 79 const m_EHOSTDOWN = 64 const m_EHOSTUNREACH = 65 const m_EIDRM = 82 const m_EILSEQ = 86 const m_EINPROGRESS = 36 const m_EINTEGRITY = 97 const m_EINTR = 4 const m_EINVAL = 22 const m_EIO = 5 const m_EISCONN = 56 const m_EISDIR = 21 const m_ELAST = 97 const m_ELOOP = 62 const m_EMFILE = 24 const m_EMLINK = 31 const m_EMSGSIZE = 40 const m_EMULTIHOP = 90 const m_ENAMETOOLONG = 63 const m_ENEEDAUTH = 81 const m_ENETDOWN = 50 const m_ENETRESET = 52 const m_ENETUNREACH = 51 const m_ENFILE = 23 const m_ENOATTR = 87 const m_ENOBUFS = 55 const m_ENODEV = 19 const m_ENOENT = 2 const m_ENOEXEC = 8 const m_ENOLCK = 77 const m_ENOLINK = 91 const m_ENOMEM = 12 const m_ENOMSG = 83 const m_ENOPROTOOPT = 42 const m_ENOSPC = 28 const m_ENOSYS = 78 const m_ENOTBLK = 15 const m_ENOTCAPABLE = 93 const m_ENOTCONN = 57 const m_ENOTDIR = 20 const m_ENOTEMPTY = 66 const m_ENOTRECOVERABLE = 95 const m_ENOTSOCK = 38 const m_ENOTSUP = "EOPNOTSUPP" const m_ENOTTY = 25 const m_ENXIO = 6 const m_EOPNOTSUPP = 45 const m_EOVERFLOW = 84 const m_EOWNERDEAD = 96 const m_EPERM = 1 const m_EPFNOSUPPORT = 46 const m_EPIPE = 32 const m_EPROCLIM = 67 const m_EPROCUNAVAIL = 76 const m_EPROGMISMATCH = 75 const m_EPROGUNAVAIL = 74 const m_EPROTO = 92 const m_EPROTONOSUPPORT = 43 const m_EPROTOTYPE = 41 const m_ERANGE = 34 const m_EREMOTE = 71 const m_EROFS = 30 const m_ERPCMISMATCH = 73 const m_ESHUTDOWN = 58 const m_ESOCKTNOSUPPORT = 44 const m_ESPIPE = 29 const m_ESRCH = 3 const m_ESTALE = 70 const m_ETIMEDOUT = 60 const m_ETOOMANYREFS = 59 const m_ETXTBSY = 26 const m_EUSERS = 68 const m_EWOULDBLOCK = "EAGAIN" const m_EXDEV = 18 const m_EXIT_FAILURE = 1 const m_EXIT_SUCCESS = 0 const m_FAPPEND = "O_APPEND" const m_FASYNC = "O_ASYNC" const m_FDSYNC = "O_DSYNC" const m_FD_CLOEXEC = 1 const m_FFSYNC = "O_FSYNC" const m_FILENAME_MAX = 1024 const m_FNDELAY = "O_NONBLOCK" const m_FNONBLOCK = "O_NONBLOCK" const m_FOPEN_MAX = 20 const m_FRDAHEAD = "O_CREAT" const m_FREAD = 0x0001 const m_FWRITE = 0x0002 const m_F_ADD_SEALS = 19 const m_F_CANCEL = 5 const m_F_DUP2FD = 10 const m_F_DUP2FD_CLOEXEC = 18 const m_F_DUPFD = 0 const m_F_DUPFD_CLOEXEC = 17 const m_F_GETFD = 1 const m_F_GETFL = 3 const m_F_GETLK = 11 const m_F_GETOWN = 5 const m_F_GET_SEALS = 20 const m_F_ISUNIONSTACK = 21 const m_F_KINFO = 22 const m_F_LOCK = 1 const m_F_OGETLK = 7 const m_F_OK = 0 const m_F_OSETLK = 8 const m_F_OSETLKW = 9 const m_F_RDAHEAD = 16 const m_F_RDLCK = 1 const m_F_READAHEAD = 15 const m_F_SEAL_GROW = 0x0004 const m_F_SEAL_SEAL = 0x0001 const m_F_SEAL_SHRINK = 0x0002 const m_F_SEAL_WRITE = 0x0008 const m_F_SETFD = 2 const m_F_SETFL = 4 const m_F_SETLK = 12 const m_F_SETLKW = 13 const m_F_SETLK_REMOTE = 14 const m_F_SETOWN = 6 const m_F_TEST = 3 const m_F_TLOCK = 2 const m_F_ULOCK = 0 const m_F_UNLCK = 2 const m_F_UNLCKSYS = 4 const m_F_WRLCK = 3 const m_ITIMER_PROF = 2 const m_ITIMER_REAL = 0 const m_ITIMER_VIRTUAL = 1 const m_KCMP_FILE = 100 const m_KCMP_FILEOBJ = 101 const m_KCMP_FILES = 102 const m_KCMP_SIGHAND = 103 const m_KCMP_VM = 104 const m_LOCK_EX = 0x02 const m_LOCK_NB = 0x04 const m_LOCK_SH = 0x01 const m_LOCK_UN = 0x08 const m_L_INCR = "SEEK_CUR" const m_L_SET = "SEEK_SET" const m_L_XTND = "SEEK_END" const m_L_ctermid = 1024 const m_L_cuserid = 17 const m_L_tmpnam = 1024 const m_O_ACCMODE = 0x0003 const m_O_APPEND = 0x0008 const m_O_ASYNC = 0x0040 const m_O_CLOEXEC = 0x00100000 const m_O_CREAT = 0x0200 const m_O_DIRECT = 0x00010000 const m_O_DIRECTORY = 0x00020000 const m_O_DSYNC = 0x01000000 const m_O_EMPTY_PATH = 0x02000000 const m_O_EXCL = 0x0800 const m_O_EXEC = 0x00040000 const m_O_EXLOCK = 0x0020 const m_O_FSYNC = 0x0080 const m_O_NDELAY = "O_NONBLOCK" const m_O_NOCTTY = 0x8000 const m_O_NOFOLLOW = 0x0100 const m_O_NONBLOCK = 0x0004 const m_O_PATH = 0x00400000 const m_O_RDONLY = 0 const m_O_RDWR = 0x0002 const m_O_RESOLVE_BENEATH = 0x00800000 const m_O_SEARCH = "O_EXEC" const m_O_SHLOCK = 0x0010 const m_O_SYNC = 0x0080 const m_O_TRUNC = 0x0400 const m_O_TTY_INIT = 0x00080000 const m_O_VERIFY = 0x00200000 const m_O_WRONLY = 0x0001 const m_POSIX_FADV_DONTNEED = 4 const m_POSIX_FADV_NOREUSE = 5 const m_POSIX_FADV_NORMAL = 0 const m_POSIX_FADV_RANDOM = 1 const m_POSIX_FADV_SEQUENTIAL = 2 const m_POSIX_FADV_WILLNEED = 3 const m_P_tmpdir = "/tmp/" const m_RAND_MAX = 0x7fffffff const m_RFTSIGMASK = 0xFF const m_RFTSIGSHIFT = 20 const m_R_OK = 0x04 const m_SBT_MAX = 0x7fffffffffffffff const m_SEEK_CUR = 1 const m_SEEK_DATA = 3 const m_SEEK_END = 2 const m_SEEK_HOLE = 4 const m_SEEK_SET = 0 const m_SF_APPEND = 0x00040000 const m_SF_ARCHIVED = 0x00010000 const m_SF_IMMUTABLE = 0x00020000 const m_SF_NOUNLINK = 0x00100000 const m_SF_SETTABLE = 0xffff0000 const m_SF_SNAPSHOT = 0x00200000 const m_SPACECTL_DEALLOC = 1 const m_SPACECTL_F_SUPPORTED = 0 const m_STDERR_FILENO = 2 const m_STDIN_FILENO = 0 const m_STDOUT_FILENO = 1 const m_SWAPOFF_FORCE = 0x00000001 const m_S_BLKSIZE = 512 const m_S_IEXEC = "S_IXUSR" const m_S_IFBLK = 0060000 const m_S_IFCHR = 0020000 const m_S_IFDIR = 0040000 const m_S_IFIFO = 0010000 const m_S_IFLNK = 0120000 const m_S_IFMT = 0170000 const m_S_IFREG = 0100000 const m_S_IFSOCK = 0140000 const m_S_IFWHT = 0160000 const m_S_IREAD = "S_IRUSR" const m_S_IRGRP = 0000040 const m_S_IROTH = 0000004 const m_S_IRUSR = 0000400 const m_S_IRWXG = 0000070 const m_S_IRWXO = 0000007 const m_S_IRWXU = 0000700 const m_S_ISGID = 0002000 const m_S_ISTXT = 0001000 const m_S_ISUID = 0004000 const m_S_ISVTX = 0001000 const m_S_IWGRP = 0000020 const m_S_IWOTH = 0000002 const m_S_IWRITE = "S_IWUSR" const m_S_IWUSR = 0000200 const m_S_IXGRP = 0000010 const m_S_IXOTH = 0000001 const m_S_IXUSR = 0000100 const m_TIMER_ABSTIME = 0x1 const m_TIMER_RELTIME = 0x0 const m_TIME_MONOTONIC = 2 const m_TIME_UTC = 1 const m_TMP_MAX = 308915776 const m_UF_APPEND = 0x00000004 const m_UF_ARCHIVE = 0x00000800 const m_UF_HIDDEN = 0x00008000 const m_UF_IMMUTABLE = 0x00000002 const m_UF_NODUMP = 0x00000001 const m_UF_NOUNLINK = 0x00000010 const m_UF_OFFLINE = 0x00000200 const m_UF_OPAQUE = 0x00000008 const m_UF_READONLY = 0x00001000 const m_UF_REPARSE = 0x00000400 const m_UF_SETTABLE = 0x0000ffff const m_UF_SPARSE = 0x00000100 const m_UF_SYSTEM = 0x00000080 const m_W_OK = 0x02 const m_X_OK = 0x01 const m__CS_PATH = 1 const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 4 const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 const m__CS_POSIX_V6_LP64_OFF64_LIBS = 10 const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 const m__IOFBF = 0 const m__IOLBF = 1 const m__IONBF = 2 const m__PC_ACL_EXTENDED = 59 const m__PC_ACL_NFS4 = 64 const m__PC_ACL_PATH_MAX = 60 const m__PC_ALLOC_SIZE_MIN = 10 const m__PC_ASYNC_IO = 53 const m__PC_CAP_PRESENT = 61 const m__PC_CHOWN_RESTRICTED = 7 const m__PC_DEALLOC_PRESENT = 65 const m__PC_FILESIZEBITS = 12 const m__PC_INF_PRESENT = 62 const m__PC_LINK_MAX = 1 const m__PC_MAC_PRESENT = 63 const m__PC_MAX_CANON = 2 const m__PC_MAX_INPUT = 3 const m__PC_MIN_HOLE_SIZE = 21 const m__PC_NAME_MAX = 4 const m__PC_NO_TRUNC = 8 const m__PC_PATH_MAX = 5 const m__PC_PIPE_BUF = 6 const m__PC_PRIO_IO = 54 const m__PC_REC_INCR_XFER_SIZE = 14 const m__PC_REC_MAX_XFER_SIZE = 15 const m__PC_REC_MIN_XFER_SIZE = 16 const m__PC_REC_XFER_ALIGN = 17 const m__PC_SYMLINK_MAX = 18 const m__PC_SYNC_IO = 55 const m__PC_VDISABLE = 9 const m__POSIX2_CHAR_TERM = 1 const m__POSIX2_C_BIND = 200112 const m__POSIX2_FORT_RUN = 200112 const m__POSIX2_UPE = 200112 const m__POSIX2_VERSION = 199212 const m__POSIX_ADVISORY_INFO = 200112 const m__POSIX_ASYNCHRONOUS_IO = 200112 const m__POSIX_BARRIERS = 200112 const m__POSIX_CHOWN_RESTRICTED = 1 const m__POSIX_CPUTIME = 200112 const m__POSIX_FSYNC = 200112 const m__POSIX_IPV6 = 0 const m__POSIX_JOB_CONTROL = 1 const m__POSIX_MAPPED_FILES = 200112 const m__POSIX_MEMLOCK_RANGE = 200112 const m__POSIX_MEMORY_PROTECTION = 200112 const m__POSIX_MESSAGE_PASSING = 200112 const m__POSIX_MONOTONIC_CLOCK = 200112 const m__POSIX_NO_TRUNC = 1 const m__POSIX_PRIORITY_SCHEDULING = 0 const m__POSIX_RAW_SOCKETS = 200112 const m__POSIX_READER_WRITER_LOCKS = 200112 const m__POSIX_REALTIME_SIGNALS = 200112 const m__POSIX_REGEXP = 1 const m__POSIX_SEMAPHORES = 200112 const m__POSIX_SHARED_MEMORY_OBJECTS = 200112 const m__POSIX_SHELL = 1 const m__POSIX_SPAWN = 200112 const m__POSIX_SPIN_LOCKS = 200112 const m__POSIX_THREADS = 200112 const m__POSIX_THREAD_ATTR_STACKADDR = 200112 const m__POSIX_THREAD_ATTR_STACKSIZE = 200112 const m__POSIX_THREAD_CPUTIME = 200112 const m__POSIX_THREAD_PRIORITY_SCHEDULING = 200112 const m__POSIX_THREAD_PRIO_INHERIT = 200112 const m__POSIX_THREAD_PRIO_PROTECT = 200112 const m__POSIX_THREAD_PROCESS_SHARED = 200112 const m__POSIX_TIMEOUTS = 200112 const m__POSIX_TIMERS = 200112 const m__POSIX_VDISABLE = 0xff const m__POSIX_VERSION = 200112 const m__SC_2_CHAR_TERM = 20 const m__SC_2_C_BIND = 18 const m__SC_2_C_DEV = 19 const m__SC_2_FORT_DEV = 21 const m__SC_2_FORT_RUN = 22 const m__SC_2_LOCALEDEF = 23 const m__SC_2_PBS = 59 const m__SC_2_PBS_ACCOUNTING = 60 const m__SC_2_PBS_CHECKPOINT = 61 const m__SC_2_PBS_LOCATE = 62 const m__SC_2_PBS_MESSAGE = 63 const m__SC_2_PBS_TRACK = 64 const m__SC_2_SW_DEV = 24 const m__SC_2_UPE = 25 const m__SC_2_VERSION = 17 const m__SC_ADVISORY_INFO = 65 const m__SC_AIO_LISTIO_MAX = 42 const m__SC_AIO_MAX = 43 const m__SC_AIO_PRIO_DELTA_MAX = 44 const m__SC_ARG_MAX = 1 const m__SC_ASYNCHRONOUS_IO = 28 const m__SC_ATEXIT_MAX = 107 const m__SC_BARRIERS = 66 const m__SC_BC_BASE_MAX = 9 const m__SC_BC_DIM_MAX = 10 const m__SC_BC_SCALE_MAX = 11 const m__SC_BC_STRING_MAX = 12 const m__SC_CHILD_MAX = 2 const m__SC_CLK_TCK = 3 const m__SC_CLOCK_SELECTION = 67 const m__SC_COLL_WEIGHTS_MAX = 13 const m__SC_CPUSET_SIZE = 122 const m__SC_CPUTIME = 68 const m__SC_DELAYTIMER_MAX = 45 const m__SC_EXPR_NEST_MAX = 14 const m__SC_FILE_LOCKING = 69 const m__SC_FSYNC = 38 const m__SC_GETGR_R_SIZE_MAX = 70 const m__SC_GETPW_R_SIZE_MAX = 71 const m__SC_HOST_NAME_MAX = 72 const m__SC_IOV_MAX = 56 const m__SC_IPV6 = 118 const m__SC_JOB_CONTROL = 6 const m__SC_LINE_MAX = 15 const m__SC_LOGIN_NAME_MAX = 73 const m__SC_MAPPED_FILES = 29 const m__SC_MEMLOCK = 30 const m__SC_MEMLOCK_RANGE = 31 const m__SC_MEMORY_PROTECTION = 32 const m__SC_MESSAGE_PASSING = 33 const m__SC_MONOTONIC_CLOCK = 74 const m__SC_MQ_OPEN_MAX = 46 const m__SC_MQ_PRIO_MAX = 75 const m__SC_NGROUPS_MAX = 4 const m__SC_NPROCESSORS_CONF = 57 const m__SC_NPROCESSORS_ONLN = 58 const m__SC_OPEN_MAX = 5 const m__SC_PAGESIZE = 47 const m__SC_PAGE_SIZE = "_SC_PAGESIZE" const m__SC_PHYS_PAGES = 121 const m__SC_PRIORITIZED_IO = 34 const m__SC_PRIORITY_SCHEDULING = 35 const m__SC_RAW_SOCKETS = 119 const m__SC_READER_WRITER_LOCKS = 76 const m__SC_REALTIME_SIGNALS = 36 const m__SC_REGEXP = 77 const m__SC_RE_DUP_MAX = 16 const m__SC_RTSIG_MAX = 48 const m__SC_SAVED_IDS = 7 const m__SC_SEMAPHORES = 37 const m__SC_SEM_NSEMS_MAX = 49 const m__SC_SEM_VALUE_MAX = 50 const m__SC_SHARED_MEMORY_OBJECTS = 39 const m__SC_SHELL = 78 const m__SC_SIGQUEUE_MAX = 51 const m__SC_SPAWN = 79 const m__SC_SPIN_LOCKS = 80 const m__SC_SPORADIC_SERVER = 81 const m__SC_STREAM_MAX = 26 const m__SC_SYMLOOP_MAX = 120 const m__SC_SYNCHRONIZED_IO = 40 const m__SC_THREADS = 96 const m__SC_THREAD_ATTR_STACKADDR = 82 const m__SC_THREAD_ATTR_STACKSIZE = 83 const m__SC_THREAD_CPUTIME = 84 const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 85 const m__SC_THREAD_KEYS_MAX = 86 const m__SC_THREAD_PRIORITY_SCHEDULING = 89 const m__SC_THREAD_PRIO_INHERIT = 87 const m__SC_THREAD_PRIO_PROTECT = 88 const m__SC_THREAD_PROCESS_SHARED = 90 const m__SC_THREAD_SAFE_FUNCTIONS = 91 const m__SC_THREAD_SPORADIC_SERVER = 92 const m__SC_THREAD_STACK_MIN = 93 const m__SC_THREAD_THREADS_MAX = 94 const m__SC_TIMEOUTS = 95 const m__SC_TIMERS = 41 const m__SC_TIMER_MAX = 52 const m__SC_TRACE = 97 const m__SC_TRACE_EVENT_FILTER = 98 const m__SC_TRACE_INHERIT = 99 const m__SC_TRACE_LOG = 100 const m__SC_TTY_NAME_MAX = 101 const m__SC_TYPED_MEMORY_OBJECTS = 102 const m__SC_TZNAME_MAX = 27 const m__SC_V6_ILP32_OFF32 = 103 const m__SC_V6_ILP32_OFFBIG = 104 const m__SC_V6_LP64_OFF64 = 105 const m__SC_V6_LPBIG_OFFBIG = 106 const m__SC_VERSION = 8 const m__SC_XOPEN_CRYPT = 108 const m__SC_XOPEN_ENH_I18N = 109 const m__SC_XOPEN_LEGACY = 110 const m__SC_XOPEN_REALTIME = 111 const m__SC_XOPEN_REALTIME_THREADS = 112 const m__SC_XOPEN_SHM = 113 const m__SC_XOPEN_STREAMS = 114 const m__SC_XOPEN_UNIX = 115 const m__SC_XOPEN_VERSION = 116 const m__SC_XOPEN_XCU_VERSION = 117 const m__V6_ILP32_OFFBIG = 0 const m__V6_LP64_OFF64 = 0 const m__XOPEN_SHM = 1 const m___S2OAP = 0x0001 const m___SALC = 0x4000 const m___SAPP = 0x0100 const m___SEOF = 0x0020 const m___SERR = 0x0040 const m___SIGN = 0x8000 const m___SLBF = 0x0001 const m___SMBF = 0x0080 const m___SMOD = 0x2000 const m___SNBF = 0x0002 const m___SNPT = 0x0800 const m___SOFF = 0x1000 const m___SOPT = 0x0400 const m___SRD = 0x0004 const m___SRW = 0x0010 const m___SSTR = 0x0200 const m___SWR = 0x0008 const m_st_atimespec = "st_atim" const m_st_birthtimespec = "st_birthtim" const m_st_ctimespec = "st_ctim" const m_st_mtimespec = "st_mtim" const m_stderr = "__stderrp" const m_stdin = "__stdinp" const m_stdout = "__stdoutp" type Ttimezone = struct { Ftz_minuteswest int32 Ftz_dsttime int32 } type Tbintime = struct { Fsec Ttime_t Ffrac Tuint64_t } type Titimerval = struct { Fit_interval Ttimeval Fit_value Ttimeval } type Tclockinfo = struct { Fhz int32 Ftick int32 Fspare int32 Fstathz int32 Fprofhz int32 } type Ttm = struct { Ftm_sec int32 Ftm_min int32 Ftm_hour int32 Ftm_mday int32 Ftm_mon int32 Ftm_year int32 Ftm_wday int32 Ftm_yday int32 Ftm_isdst int32 Ftm_gmtoff int64 Ftm_zone uintptr } type Tstat = struct { Fst_dev Tdev_t Fst_ino Tino_t Fst_nlink Tnlink_t Fst_mode Tmode_t Fst_padding0 t__int16_t Fst_uid Tuid_t Fst_gid Tgid_t Fst_padding1 t__int32_t Fst_rdev Tdev_t Fst_atim Ttimespec Fst_mtim Ttimespec Fst_ctim Ttimespec Fst_birthtim Ttimespec Fst_size Toff_t Fst_blocks Tblkcnt_t Fst_blksize Tblksize_t Fst_flags Tfflags_t Fst_gen t__uint64_t Fst_spare [10]t__uint64_t } type Tflock = struct { Fl_start Toff_t Fl_len Toff_t Fl_pid Tpid_t Fl_type int16 Fl_whence int16 Fl_sysid int32 } type t__oflock = struct { Fl_start Toff_t Fl_len Toff_t Fl_pid Tpid_t Fl_type int16 Fl_whence int16 } type Tspacectl_range = struct { Fr_offset Toff_t Fr_len Toff_t } type Trune_t = int32 type Twchar_t = int32 type Tdiv_t = struct { Fquot int32 Frem int32 } type Tldiv_t = struct { Fquot int64 Frem int64 } type Tlldiv_t = struct { Fquot int64 Frem int64 } type Tconstraint_handler_t = uintptr type Tfpos_t = int64 type Tva_list = uintptr type t__sbuf = struct { F_base uintptr F_size int32 } type t__sFILE = struct { F_p uintptr F_r int32 F_w int32 F_flags int16 F_file int16 F_bf t__sbuf F_lbfsize int32 F_cookie uintptr F_close uintptr F_read uintptr F_seek uintptr F_write uintptr F_ub t__sbuf F_up uintptr F_ur int32 F_ubuf [3]uint8 F_nbuf [1]uint8 F_lb t__sbuf F_blksize int32 F_offset Tfpos_t F_fl_mutex uintptr F_fl_owner uintptr F_fl_count int32 F_orientation int32 F_mbstate t__mbstate_t F_flags2 int32 } type TFILE = struct { F_p uintptr F_r int32 F_w int32 F_flags int16 F_file int16 F_bf t__sbuf F_lbfsize int32 F_cookie uintptr F_close uintptr F_read uintptr F_seek uintptr F_write uintptr F_ub t__sbuf F_up uintptr F_ur int32 F_ubuf [3]uint8 F_nbuf [1]uint8 F_lb t__sbuf F_blksize int32 F_offset Tfpos_t F_fl_mutex uintptr F_fl_owner uintptr F_fl_count int32 F_orientation int32 F_mbstate t__mbstate_t F_flags2 int32 } type Tcookie_io_functions_t = struct { Fread uintptr Fwrite uintptr Fseek uintptr Fclose1 uintptr } type Tcrypt_data = struct { Finitialized int32 F__buf [256]int8 } // C documentation // // /* ARGSUSED */ func XMD2End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) { bp := tls.Alloc(16) defer tls.Free(16) var i int32 var v1 uintptr var v2 bool var _ /* digest at bp+0 */ [16]Tuint8_t _, _, _ = i, v1, v2 if v2 = buf == libc.UintptrFromInt32(0); v2 { v1 = libc.Xmalloc(tls, uint64(m_MD2_DIGEST_STRING_LENGTH)) buf = v1 } if v2 && v1 == libc.UintptrFromInt32(0) { return libc.UintptrFromInt32(0) } XMD2Final(tls, bp, ctx) i = 0 for { if !(i < int32(m_MD2_DIGEST_LENGTH)) { break } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)] *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)] goto _3 _3: ; i++ } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000') libc.Xmemset(tls, bp, 0, uint64(16)) return buf } var _hex = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} func XMD2FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) { bp := tls.Alloc(1328) defer tls.Free(1328) var fd, save_errno, v1 int32 var nr, v2 Tssize_t var v3 int64 var v4 bool var v5 uintptr var _ /* buffer at bp+224 */ [1024]Tuint8_t var _ /* ctx at bp+1248 */ TMD2_CTX var _ /* sb at bp+0 */ Tstat _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5 XMD2Init(tls, bp+1248) v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0) fd = v1 if v1 < 0 { return libc.UintptrFromInt32(0) } if len1 == 0 { if libc.Xfstat(tls, fd, bp) == -int32(1) { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size } if off > 0 && libc.Xlseek(tls, fd, off, m_SEEK_SET) < 0 { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } for { if libc.Int64FromInt64(1024) < len1 { v3 = libc.Int64FromInt64(1024) } else { v3 = len1 } v2 = libc.Xread(tls, fd, bp+224, libc.Uint64FromInt64(v3)) nr = v2 if !(v2 > 0) { break } XMD2Update(tls, bp+1248, bp+224, uint32(libc.Uint64FromInt64(nr))) if v4 = len1 > 0; v4 { len1 -= nr } if v4 && len1 == 0 { break } } save_errno = *(*int32)(unsafe.Pointer(libc.X__error(tls))) libc.Xclose(tls, fd) *(*int32)(unsafe.Pointer(libc.X__error(tls))) = save_errno if nr < 0 { v5 = libc.UintptrFromInt32(0) } else { v5 = XMD2End(tls, bp+1248, buf) } return v5 } func XMD2File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) { return XMD2FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0)) } func XMD2Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) { bp := tls.Alloc(80) defer tls.Free(80) var _ /* ctx at bp+0 */ TMD2_CTX XMD2Init(tls, bp) XMD2Update(tls, bp, data, uint32(len1)) return XMD2End(tls, bp, buf) } // C documentation // // /* ARGSUSED */ func XMD4End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) { bp := tls.Alloc(16) defer tls.Free(16) var i int32 var v1 uintptr var v2 bool var _ /* digest at bp+0 */ [16]Tuint8_t _, _, _ = i, v1, v2 if v2 = buf == libc.UintptrFromInt32(0); v2 { v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_MD4_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))) buf = v1 } if v2 && v1 == libc.UintptrFromInt32(0) { return libc.UintptrFromInt32(0) } XMD4Final(tls, bp, ctx) i = 0 for { if !(i < int32(m_MD4_DIGEST_LENGTH)) { break } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex1[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)] *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex1[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)] goto _3 _3: ; i++ } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000') libc.Xmemset(tls, bp, 0, uint64(16)) return buf } var _hex1 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} func XMD4FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) { bp := tls.Alloc(1344) defer tls.Free(1344) var fd, save_errno, v1 int32 var nr, v2 Tssize_t var v3 int64 var v4 bool var v5 uintptr var _ /* buffer at bp+224 */ [1024]Tuint8_t var _ /* ctx at bp+1248 */ TMD4_CTX var _ /* sb at bp+0 */ Tstat _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5 XMD4Init(tls, bp+1248) v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0) fd = v1 if v1 < 0 { return libc.UintptrFromInt32(0) } if len1 == 0 { if libc.Xfstat(tls, fd, bp) == -int32(1) { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size } if off > 0 && libc.Xlseek(tls, fd, off, m_SEEK_SET) < 0 { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } for { if libc.Int64FromInt64(1024) < len1 { v3 = libc.Int64FromInt64(1024) } else { v3 = len1 } v2 = libc.Xread(tls, fd, bp+224, libc.Uint64FromInt64(v3)) nr = v2 if !(v2 > 0) { break } XMD4Update(tls, bp+1248, bp+224, libc.Uint64FromInt64(nr)) if v4 = len1 > 0; v4 { len1 -= nr } if v4 && len1 == 0 { break } } save_errno = *(*int32)(unsafe.Pointer(libc.X__error(tls))) libc.Xclose(tls, fd) *(*int32)(unsafe.Pointer(libc.X__error(tls))) = save_errno if nr < 0 { v5 = libc.UintptrFromInt32(0) } else { v5 = XMD4End(tls, bp+1248, buf) } return v5 } func XMD4File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) { return XMD4FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0)) } func XMD4Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) { bp := tls.Alloc(96) defer tls.Free(96) var _ /* ctx at bp+0 */ TMD4_CTX XMD4Init(tls, bp) XMD4Update(tls, bp, data, len1) return XMD4End(tls, bp, buf) } /* Avoid polluting the namespace. Even though this makes this usage * implementation-specific, defining it unconditionally should not be * a problem, and better than possibly breaking unexpecting code. */ // C documentation // // /* ARGSUSED */ func XMD5End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) { bp := tls.Alloc(16) defer tls.Free(16) var i int32 var v1 uintptr var v2 bool var _ /* digest at bp+0 */ [16]Tuint8_t _, _, _ = i, v1, v2 if v2 = buf == libc.UintptrFromInt32(0); v2 { v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_MD5_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))) buf = v1 } if v2 && v1 == libc.UintptrFromInt32(0) { return libc.UintptrFromInt32(0) } XMD5Final(tls, bp, ctx) i = 0 for { if !(i < int32(m_MD5_DIGEST_LENGTH)) { break } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex2[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)] *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex2[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)] goto _3 _3: ; i++ } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000') libc.Xmemset(tls, bp, 0, uint64(16)) return buf } var _hex2 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} func XMD5FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) { bp := tls.Alloc(1344) defer tls.Free(1344) var fd, save_errno, v1 int32 var nr, v2 Tssize_t var v3 int64 var v4 bool var v5 uintptr var _ /* buffer at bp+224 */ [1024]Tuint8_t var _ /* ctx at bp+1248 */ TMD5_CTX var _ /* sb at bp+0 */ Tstat _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5 XMD5Init(tls, bp+1248) v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0) fd = v1 if v1 < 0 { return libc.UintptrFromInt32(0) } if len1 == 0 { if libc.Xfstat(tls, fd, bp) == -int32(1) { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size } if off > 0 && libc.Xlseek(tls, fd, off, m_SEEK_SET) < 0 { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } for { if libc.Int64FromInt64(1024) < len1 { v3 = libc.Int64FromInt64(1024) } else { v3 = len1 } v2 = libc.Xread(tls, fd, bp+224, libc.Uint64FromInt64(v3)) nr = v2 if !(v2 > 0) { break } XMD5Update(tls, bp+1248, bp+224, libc.Uint64FromInt64(nr)) if v4 = len1 > 0; v4 { len1 -= nr } if v4 && len1 == 0 { break } } save_errno = *(*int32)(unsafe.Pointer(libc.X__error(tls))) libc.Xclose(tls, fd) *(*int32)(unsafe.Pointer(libc.X__error(tls))) = save_errno if nr < 0 { v5 = libc.UintptrFromInt32(0) } else { v5 = XMD5End(tls, bp+1248, buf) } return v5 } func XMD5File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) { return XMD5FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0)) } func XMD5Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) { bp := tls.Alloc(96) defer tls.Free(96) var _ /* ctx at bp+0 */ TMD5_CTX XMD5Init(tls, bp) XMD5Update(tls, bp, data, len1) return XMD5End(tls, bp, buf) } // C documentation // // /* ARGSUSED */ func XRMD160End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) { bp := tls.Alloc(32) defer tls.Free(32) var i int32 var v1 uintptr var v2 bool var _ /* digest at bp+0 */ [20]Tuint8_t _, _, _ = i, v1, v2 if v2 = buf == libc.UintptrFromInt32(0); v2 { v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_RMD160_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))) buf = v1 } if v2 && v1 == libc.UintptrFromInt32(0) { return libc.UintptrFromInt32(0) } XRMD160Final(tls, bp, ctx) i = 0 for { if !(i < int32(m_RMD160_DIGEST_LENGTH)) { break } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex3[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)] *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex3[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)] goto _3 _3: ; i++ } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000') libc.Xmemset(tls, bp, 0, uint64(20)) return buf } var _hex3 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} func XRMD160FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) { bp := tls.Alloc(1344) defer tls.Free(1344) var fd, save_errno, v1 int32 var nr, v2 Tssize_t var v3 int64 var v4 bool var v5 uintptr var _ /* buffer at bp+224 */ [1024]Tuint8_t var _ /* ctx at bp+1248 */ TRMD160_CTX var _ /* sb at bp+0 */ Tstat _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5 XRMD160Init(tls, bp+1248) v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0) fd = v1 if v1 < 0 { return libc.UintptrFromInt32(0) } if len1 == 0 { if libc.Xfstat(tls, fd, bp) == -int32(1) { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size } if off > 0 && libc.Xlseek(tls, fd, off, m_SEEK_SET) < 0 { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } for { if libc.Int64FromInt64(1024) < len1 { v3 = libc.Int64FromInt64(1024) } else { v3 = len1 } v2 = libc.Xread(tls, fd, bp+224, libc.Uint64FromInt64(v3)) nr = v2 if !(v2 > 0) { break } XRMD160Update(tls, bp+1248, bp+224, libc.Uint64FromInt64(nr)) if v4 = len1 > 0; v4 { len1 -= nr } if v4 && len1 == 0 { break } } save_errno = *(*int32)(unsafe.Pointer(libc.X__error(tls))) libc.Xclose(tls, fd) *(*int32)(unsafe.Pointer(libc.X__error(tls))) = save_errno if nr < 0 { v5 = libc.UintptrFromInt32(0) } else { v5 = XRMD160End(tls, bp+1248, buf) } return v5 } func XRMD160File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) { return XRMD160FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0)) } func XRMD160Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) { bp := tls.Alloc(96) defer tls.Free(96) var _ /* ctx at bp+0 */ TRMD160_CTX XRMD160Init(tls, bp) XRMD160Update(tls, bp, data, len1) return XRMD160End(tls, bp, buf) } // C documentation // // /* ARGSUSED */ func XSHA1End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) { bp := tls.Alloc(32) defer tls.Free(32) var i int32 var v1 uintptr var v2 bool var _ /* digest at bp+0 */ [20]Tuint8_t _, _, _ = i, v1, v2 if v2 = buf == libc.UintptrFromInt32(0); v2 { v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA1_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))) buf = v1 } if v2 && v1 == libc.UintptrFromInt32(0) { return libc.UintptrFromInt32(0) } XSHA1Final(tls, bp, ctx) i = 0 for { if !(i < int32(m_SHA1_DIGEST_LENGTH)) { break } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex4[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)] *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex4[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)] goto _3 _3: ; i++ } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000') libc.Xmemset(tls, bp, 0, uint64(20)) return buf } var _hex4 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} func XSHA1FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) { bp := tls.Alloc(1344) defer tls.Free(1344) var fd, save_errno, v1 int32 var nr, v2 Tssize_t var v3 int64 var v4 bool var v5 uintptr var _ /* buffer at bp+224 */ [1024]Tuint8_t var _ /* ctx at bp+1248 */ TSHA1_CTX var _ /* sb at bp+0 */ Tstat _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5 XSHA1Init(tls, bp+1248) v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0) fd = v1 if v1 < 0 { return libc.UintptrFromInt32(0) } if len1 == 0 { if libc.Xfstat(tls, fd, bp) == -int32(1) { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size } if off > 0 && libc.Xlseek(tls, fd, off, m_SEEK_SET) < 0 { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } for { if libc.Int64FromInt64(1024) < len1 { v3 = libc.Int64FromInt64(1024) } else { v3 = len1 } v2 = libc.Xread(tls, fd, bp+224, libc.Uint64FromInt64(v3)) nr = v2 if !(v2 > 0) { break } XSHA1Update(tls, bp+1248, bp+224, libc.Uint64FromInt64(nr)) if v4 = len1 > 0; v4 { len1 -= nr } if v4 && len1 == 0 { break } } save_errno = *(*int32)(unsafe.Pointer(libc.X__error(tls))) libc.Xclose(tls, fd) *(*int32)(unsafe.Pointer(libc.X__error(tls))) = save_errno if nr < 0 { v5 = libc.UintptrFromInt32(0) } else { v5 = XSHA1End(tls, bp+1248, buf) } return v5 } func XSHA1File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) { return XSHA1FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0)) } func XSHA1Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) { bp := tls.Alloc(96) defer tls.Free(96) var _ /* ctx at bp+0 */ TSHA1_CTX XSHA1Init(tls, bp) XSHA1Update(tls, bp, data, len1) return XSHA1End(tls, bp, buf) } // C documentation // // /* ARGSUSED */ func XSHA256End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) { bp := tls.Alloc(32) defer tls.Free(32) var i int32 var v1 uintptr var v2 bool var _ /* digest at bp+0 */ [32]Tuint8_t _, _, _ = i, v1, v2 if v2 = buf == libc.UintptrFromInt32(0); v2 { v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))) buf = v1 } if v2 && v1 == libc.UintptrFromInt32(0) { return libc.UintptrFromInt32(0) } XSHA256Final(tls, bp, ctx) i = 0 for { if !(i < int32(m_SHA256_DIGEST_LENGTH)) { break } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex5[libc.Int32FromUint8((*(*[32]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)] *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex5[libc.Int32FromUint8((*(*[32]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)] goto _3 _3: ; i++ } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000') libc.Xmemset(tls, bp, 0, uint64(32)) return buf } var _hex5 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} func XSHA256FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) { bp := tls.Alloc(1456) defer tls.Free(1456) var fd, save_errno, v1 int32 var nr, v2 Tssize_t var v3 int64 var v4 bool var v5 uintptr var _ /* buffer at bp+224 */ [1024]Tuint8_t var _ /* ctx at bp+1248 */ TSHA2_CTX var _ /* sb at bp+0 */ Tstat _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5 XSHA256Init(tls, bp+1248) v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0) fd = v1 if v1 < 0 { return libc.UintptrFromInt32(0) } if len1 == 0 { if libc.Xfstat(tls, fd, bp) == -int32(1) { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size } if off > 0 && libc.Xlseek(tls, fd, off, m_SEEK_SET) < 0 { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } for { if libc.Int64FromInt64(1024) < len1 { v3 = libc.Int64FromInt64(1024) } else { v3 = len1 } v2 = libc.Xread(tls, fd, bp+224, libc.Uint64FromInt64(v3)) nr = v2 if !(v2 > 0) { break } XSHA256Update(tls, bp+1248, bp+224, libc.Uint64FromInt64(nr)) if v4 = len1 > 0; v4 { len1 -= nr } if v4 && len1 == 0 { break } } save_errno = *(*int32)(unsafe.Pointer(libc.X__error(tls))) libc.Xclose(tls, fd) *(*int32)(unsafe.Pointer(libc.X__error(tls))) = save_errno if nr < 0 { v5 = libc.UintptrFromInt32(0) } else { v5 = XSHA256End(tls, bp+1248, buf) } return v5 } func XSHA256File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) { return XSHA256FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0)) } func XSHA256Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) { bp := tls.Alloc(208) defer tls.Free(208) var _ /* ctx at bp+0 */ TSHA2_CTX XSHA256Init(tls, bp) XSHA256Update(tls, bp, data, len1) return XSHA256End(tls, bp, buf) } // C documentation // // /* ARGSUSED */ func XSHA384End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) { bp := tls.Alloc(48) defer tls.Free(48) var i int32 var v1 uintptr var v2 bool var _ /* digest at bp+0 */ [48]Tuint8_t _, _, _ = i, v1, v2 if v2 = buf == libc.UintptrFromInt32(0); v2 { v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA384_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))) buf = v1 } if v2 && v1 == libc.UintptrFromInt32(0) { return libc.UintptrFromInt32(0) } XSHA384Final(tls, bp, ctx) i = 0 for { if !(i < int32(m_SHA384_DIGEST_LENGTH)) { break } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex6[libc.Int32FromUint8((*(*[48]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)] *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex6[libc.Int32FromUint8((*(*[48]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)] goto _3 _3: ; i++ } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000') libc.Xmemset(tls, bp, 0, uint64(48)) return buf } var _hex6 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} func XSHA384FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) { bp := tls.Alloc(1456) defer tls.Free(1456) var fd, save_errno, v1 int32 var nr, v2 Tssize_t var v3 int64 var v4 bool var v5 uintptr var _ /* buffer at bp+224 */ [1024]Tuint8_t var _ /* ctx at bp+1248 */ TSHA2_CTX var _ /* sb at bp+0 */ Tstat _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5 XSHA384Init(tls, bp+1248) v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0) fd = v1 if v1 < 0 { return libc.UintptrFromInt32(0) } if len1 == 0 { if libc.Xfstat(tls, fd, bp) == -int32(1) { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size } if off > 0 && libc.Xlseek(tls, fd, off, m_SEEK_SET) < 0 { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } for { if libc.Int64FromInt64(1024) < len1 { v3 = libc.Int64FromInt64(1024) } else { v3 = len1 } v2 = libc.Xread(tls, fd, bp+224, libc.Uint64FromInt64(v3)) nr = v2 if !(v2 > 0) { break } XSHA512Update(tls, bp+1248, bp+224, libc.Uint64FromInt64(nr)) if v4 = len1 > 0; v4 { len1 -= nr } if v4 && len1 == 0 { break } } save_errno = *(*int32)(unsafe.Pointer(libc.X__error(tls))) libc.Xclose(tls, fd) *(*int32)(unsafe.Pointer(libc.X__error(tls))) = save_errno if nr < 0 { v5 = libc.UintptrFromInt32(0) } else { v5 = XSHA384End(tls, bp+1248, buf) } return v5 } func XSHA384File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) { return XSHA384FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0)) } func XSHA384Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) { bp := tls.Alloc(208) defer tls.Free(208) var _ /* ctx at bp+0 */ TSHA2_CTX XSHA384Init(tls, bp) XSHA512Update(tls, bp, data, len1) return XSHA384End(tls, bp, buf) } // C documentation // // /* ARGSUSED */ func XSHA512End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) { bp := tls.Alloc(64) defer tls.Free(64) var i int32 var v1 uintptr var v2 bool var _ /* digest at bp+0 */ [64]Tuint8_t _, _, _ = i, v1, v2 if v2 = buf == libc.UintptrFromInt32(0); v2 { v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1))) buf = v1 } if v2 && v1 == libc.UintptrFromInt32(0) { return libc.UintptrFromInt32(0) } XSHA512Final(tls, bp, ctx) i = 0 for { if !(i < int32(m_SHA512_DIGEST_LENGTH)) { break } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex7[libc.Int32FromUint8((*(*[64]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)] *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex7[libc.Int32FromUint8((*(*[64]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)] goto _3 _3: ; i++ } *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000') libc.Xmemset(tls, bp, 0, uint64(64)) return buf } var _hex7 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'} func XSHA512FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) { bp := tls.Alloc(1456) defer tls.Free(1456) var fd, save_errno, v1 int32 var nr, v2 Tssize_t var v3 int64 var v4 bool var v5 uintptr var _ /* buffer at bp+224 */ [1024]Tuint8_t var _ /* ctx at bp+1248 */ TSHA2_CTX var _ /* sb at bp+0 */ Tstat _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5 XSHA512Init(tls, bp+1248) v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0) fd = v1 if v1 < 0 { return libc.UintptrFromInt32(0) } if len1 == 0 { if libc.Xfstat(tls, fd, bp) == -int32(1) { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size } if off > 0 && libc.Xlseek(tls, fd, off, m_SEEK_SET) < 0 { libc.Xclose(tls, fd) return libc.UintptrFromInt32(0) } for { if libc.Int64FromInt64(1024) < len1 { v3 = libc.Int64FromInt64(1024) } else { v3 = len1 } v2 = libc.Xread(tls, fd, bp+224, libc.Uint64FromInt64(v3)) nr = v2 if !(v2 > 0) { break } XSHA512Update(tls, bp+1248, bp+224, libc.Uint64FromInt64(nr)) if v4 = len1 > 0; v4 { len1 -= nr } if v4 && len1 == 0 { break } } save_errno = *(*int32)(unsafe.Pointer(libc.X__error(tls))) libc.Xclose(tls, fd) *(*int32)(unsafe.Pointer(libc.X__error(tls))) = save_errno if nr < 0 { v5 = libc.UintptrFromInt32(0) } else { v5 = XSHA512End(tls, bp+1248, buf) } return v5 } func XSHA512File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) { return XSHA512FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0)) } func XSHA512Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) { bp := tls.Alloc(208) defer tls.Free(208) var _ /* ctx at bp+0 */ TSHA2_CTX XSHA512Init(tls, bp) XSHA512Update(tls, bp, data, len1) return XSHA512End(tls, bp, buf) } var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data var __ccgo_ts1 = "\x00\x01\x00\x02\x02\x00\x03\x03\x03\x00\x04\x04\x04\x04\x00\x05\x05\x05\x05\x05\x00\x06\x06\x06\x06\x06\x06\x00\a\a\a\a\a\a\a\x00\b\b\b\b\b\b\b\b\x00\t\t\t\t\t\t\t\t\t\x00\n\n\n\n\n\n\n\n\n\n\x00\v\v\v\v\v\v\v\v\v\v\v\x00\f\f\f\f\f\f\f\f\f\f\f\f\x00\r\r\r\r\r\r\r\r\r\r\r\r\r\x00\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x00\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x00\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x00\x80\x00\x00\x00"