×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

Why is it necessary to use a hash function with an output size of 256 bits to achieve a security level equivalent to that of AES with a 128-bit security level?

by EITCA Academy / Saturday, 15 June 2024 / Published in Cybersecurity, EITC/IS/ACC Advanced Classical Cryptography, Hash Functions, SHA-1 hash function, Examination review

The necessity of using a hash function with an output size of 256 bits to achieve a security level equivalent to that of AES with a 128-bit security level is rooted in the fundamental principles of cryptographic security, specifically the concepts of collision resistance and the birthday paradox.

AES (Advanced Encryption Standard) with a 128-bit key length is widely regarded as providing a robust security level. This is because the key space of AES-128 consists of 2^{128} possible keys, making brute-force attacks computationally infeasible with current technology. To understand why a 256-bit hash output is necessary to match this security level, it is essential to consider the properties and attack vectors associated with hash functions.

Hash functions are cryptographic algorithms that take an arbitrary amount of input data and produce a fixed-size output, known as a hash or digest. The primary security properties of a cryptographic hash function include pre-image resistance, second pre-image resistance, and collision resistance. Collision resistance, in particular, is the property that concerns us when comparing the security levels of hash functions and symmetric encryption algorithms like AES.

Collision resistance means that it should be computationally infeasible to find two distinct inputs that produce the same hash output. The birthday paradox, a well-known principle in probability theory, plays a significant role in understanding collision resistance. The paradox states that in a group of 23 people, there is a better than even chance that two people share the same birthday. This counterintuitive result arises because the number of possible pairs of people grows quadratically with the number of people.

In the context of hash functions, the birthday paradox implies that the effort required to find a collision (two different inputs that produce the same hash output) is significantly less than the effort required to exhaustively search the entire output space. Specifically, for a hash function with an n-bit output, the birthday paradox suggests that a collision can be found with a complexity of approximately 2^{n/2}. This is known as a birthday attack.

For a hash function with a 128-bit output, the security level against collision attacks is approximately 2^{64}, because 2^{128/2} = 2^{64}. This level of security is insufficient when compared to AES-128, which provides a security level of 2^{128} against brute-force attacks. To match the security level of AES-128, we need a hash function whose collision resistance is at least 2^{128}. According to the birthday paradox, this requires a hash function with an output size of at least 256 bits, because 2^{256/2} = 2^{128}.

To further illustrate, consider the SHA-1 hash function, which produces a 160-bit hash output. The collision resistance of SHA-1 is approximately 2^{80}, due to the birthday paradox. While 2^{80} is a large number, it is significantly smaller than 2^{128} and therefore does not provide an equivalent security level to AES-128. In fact, practical collision attacks against SHA-1 have been demonstrated, further underscoring the need for stronger hash functions.

In contrast, SHA-256, which produces a 256-bit hash output, offers collision resistance of approximately 2^{128}. This aligns with the security level provided by AES-128, making SHA-256 a suitable choice for applications requiring a hash function with security properties comparable to AES-128.

Another aspect to consider is that hash functions are often used in digital signatures, message authentication codes (MACs), and other cryptographic constructs where collision resistance is paramount. For example, in the context of digital signatures, a collision attack on the hash function could allow an attacker to forge a signature on a different message, leading to severe security implications.

Moreover, the security of hash functions is not solely determined by their collision resistance. Pre-image resistance and second pre-image resistance are also important, but for the purpose of matching the security level of AES-128, collision resistance is the primary concern. Pre-image resistance refers to the difficulty of finding an input that hashes to a given output, while second pre-image resistance refers to the difficulty of finding a different input that hashes to the same output as a given input. Both of these properties also benefit from a larger hash output size, but the quadratic nature of collision resistance makes it the critical factor.

To provide additional context, consider the following examples:

1. Digital Signatures: When using a digital signature algorithm, the message to be signed is typically hashed first, and the hash is then signed. If the hash function used has insufficient collision resistance, an attacker could generate two different messages with the same hash and trick the signer into signing one message, while the signature would be valid for the other message as well. Using a hash function with a 256-bit output, such as SHA-256, mitigates this risk by providing a security level equivalent to AES-128.

2. Message Authentication Codes (MACs): MACs are used to ensure the integrity and authenticity of a message. A MAC is typically generated by hashing the message along with a secret key. If the hash function has weak collision resistance, an attacker could find two different messages that produce the same MAC, compromising the integrity of the messages. A 256-bit hash output ensures that the collision resistance is strong enough to match the security level of AES-128, providing robust protection against such attacks.

The necessity of using a hash function with a 256-bit output to achieve a security level equivalent to AES-128 is fundamentally tied to the principles of collision resistance and the birthday paradox. A 256-bit hash output provides collision resistance of approximately 2^{128}, aligning with the security level provided by AES-128 against brute-force attacks. This ensures that the hash function is robust against collision attacks and can be confidently used in cryptographic applications requiring high security.

Other recent questions and answers regarding Examination review:

  • How does the Merkle-Damgård construction operate in the SHA-1 hash function, and what role does the compression function play in this process?
  • What are the main differences between the MD4 family of hash functions, including MD5, SHA-1, and SHA-2, and what are the current security considerations for each?
  • How does the birthday paradox relate to the complexity of finding collisions in hash functions, and what is the approximate complexity for a hash function with a 160-bit output?
  • What is a collision in the context of hash functions, and why is it significant for the security of cryptographic applications?

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/ACC Advanced Classical Cryptography (go to the certification programme)
  • Lesson: Hash Functions (go to related lesson)
  • Topic: SHA-1 hash function (go to related topic)
  • Examination review
Tagged under: AES-128, Birthday Paradox, Collision Resistance, Cryptographic Security, Cybersecurity, SHA-256
Home » Cybersecurity » EITC/IS/ACC Advanced Classical Cryptography » Hash Functions » SHA-1 hash function » Examination review » » Why is it necessary to use a hash function with an output size of 256 bits to achieve a security level equivalent to that of AES with a 128-bit security level?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (117)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy
    Select LanguageAfrikaansArabicBelarusianBengaliBosnianBulgarianCatalanChinese (Simplified)Chinese (Traditional)CroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGeorgianGermanGreekHebrewHindiHungarianIndonesianItalianJapaneseJavaneseKoreanKurdishLatvianLithuanianMalayMongolianMyanmar (Burmese)NepaliNorwegianPashtoPersianPolishPortuguesePunjabiRomanianRussianSerbianSlovakSlovenianSpanishSwedishTamilTeluguThaiTurkishUkrainianUrduVietnamese
    function doGLTTranslate(lang_pair) {if(lang_pair.value)lang_pair=lang_pair.value;if(lang_pair=='')return;var lang=lang_pair.split('|')[1];if(typeof _gaq!='undefined'){_gaq.push(['_trackEvent', 'GTranslate', lang, location.hostname+location.pathname+location.search]);}else {if(typeof ga!='undefined')ga('send', 'event', 'GTranslate', lang, location.hostname+location.pathname+location.search);}var plang=location.hostname.split('.')[0];if(plang.length !=2 && plang.toLowerCase() != 'zh-cn' && plang.toLowerCase() != 'zh-tw' && plang != 'hmn' && plang != 'haw' && plang != 'ceb')plang='en';location.href=location.protocol+'//'+(lang == 'en' ? '' : lang+'.')+location.hostname.replace('www.', '').replace(RegExp('^' + plang + '[.]'), '')+glt_request_uri;}

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP

    We care about your privacy

    EITCI uses cookies and similar technologies to keep this site secure, remember your choices, provide personalized experience, measure the traffic, serve more relevant content and certification programmes. You can accept all cookies or customize your preferences. Cookies are variables used to store website specific information on your device to facilitate processing of data for personalized website visit, such as login to your account, accessing the programmes, placing enrolment orders in chosen programmes and improving your EITC certification journey. You can change or withdraw your consent at any time by clicking the Consent Preferences button at the left-bottom of your screen. We respect your choices and are committed to providing you with a transparent and secure browsing experience, which may be limited when cookies aren't accepted. For more details refer to the Privacy Policy
    Customize Consent Preferences
    We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.
    The cookies categorized as Necessary are stored on your browser as they are essential for enabling the basic functionalities of the site.
    To learn more about how Google processes personal information, visit: Google privacy policy

    Necessary

    Always Active

    Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

    Functional

    Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

    Preferences

    Stores personalization choices such as interface preferences.

    External media and social features

    Allows embedded video, social, chat, and external interactive services that may set their own cookies. Keep off until the user chooses these features.

    Analytics

    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

    Marketing and conversions

    Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

    CHAT WITH SUPPORT
    Do you have any questions?
    Attach files with the paperclip or paste screenshots into the message box (Ctrl+V). Max 5 file(s), 10 MB each.
    We will reply here and by email. Your conversation is tracked with a support token.