Common algorithm feature records

Source: Internet
Author: User

Contact reverse analysis for more than 1 years, some common cryptographic algorithms have been contacted, and if you understand the feature points of cryptographic algorithms, it will provide a great help to the inverse analysis.

The MD5,MD4 algorithm initializes with a constant of 0x67452301,0xefcdab89,0x98badcfe,0x10325476

The MD5 algorithm uses the following constants as the data for rotation in the calculation process.

First round

0xd76aa478,0xe8c7b756,0x242070db,0xc1bdceee,0xf57c0faf,0x4787c62a,0xa8304613,0xfd469501,

0x698098d8,0x8b44f7af,0xffff5bb1,0x895cd7be,0x6b901122,0xfd987193,0xa679438e,0x49b40821

Second round

0xf61e2562,0xc040b340,0x265e5a51,0xe9b6c7aa,0xd62f105d,0x2441453,0xd8a1e681,0xe7d3fbc8,

0x21e1cde6,0xc33707d6,0xf4d50d87,0x455a14ed,0xa9e3e905,0xfcefa3f8,0x676f02d9,0x8d2a4c8a

Third round

0xfffa3942,0x8771f681,0x6d9d6122,0xfde5380c,0xa4beea44,0x4bdecfa9,0xf6bb4b60,0xbebfbc70,

0x289b7ec6,0xeaa127fa,0xd4ef3085,0x4881d05,0xd9d4d039,0xe6db99e5,0x1fa27cf8,0xc4ac5665

Fourth round

0XF4292244,0X432AFF97,0XAB9423A7,0XFC93A039,0X655B59C3,0X8F0CCC92,0XFFEFF47D,0X85845DD1,

0x6fa87e4f,0xfe2ce6e0,0xa3014314,0x4e0811a1,0xf7537e82,0xbd3af235,0x2ad7d2bb,0xeb86d391

The SHA1 algorithm initializes with a constant of 0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0

The SHA1 algorithm uses 0X5A827999,0X6ED9EBA1,0X8F1BBCDC,0XCA62C1D6 as the data for rotation in the calculation process.

The AES algorithm uses the following data during initialization

0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76,
0XCA,0X82,0XC9,0X7D,0XFA,0X59,0X47,0XF0,0XAD,0XD4,0XA2,0XAF,0X9C,0XA4,0X72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d,0xe5,0x7a,0x9f,0x93,0xc9,0x9c,0xef,
0xa0,0xe0,0x3b,0x4d,0xae,0x2a,0xf5,0xb0,0xc8,0xeb,0xbb,0x3c,0x83,0x53,0x99,0x61,
0x17,0x2b,0x04,0x7e,0xba,0x77,0xd6,0x26,0xe1,0x69,0x14,0x63,0x55,0x21,0x0c,0x7d

and data

0x02000000,0x04000000,0x08000000,0x10000000,0x20000000,0x40000000,

0x80000000,0x1b000000,0x36000000,0x00000002,0x00000002,0x00000002

DES algorithm has not been contacted, and so on after the completion of contact

HMAC Hash-based message authentication code is a mechanism for verifying the identity of a message using cryptographic hash functions, depending on the properties of the underlying hash function

The characteristics of HMAC_MD5 and HMAC_SHA1 are consistent with MD5,SHA1, and they need to be analyzed slowly when they encounter these algorithms.

There are many variants of these algorithms, and if you do not want to analyze the complete process you can copy the assembly code directly

Common algorithm feature records

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.