Weak Key - No Weak Keys As A Design Goal

No Weak Keys As A Design Goal

The goal of having a 'flat' keyspace (i.e., all keys equally strong) is always a cipher design goal. As in the case of DES, sometimes a small number of weak keys is acceptable, provided that they are all identified or identifiable. An algorithm that has unknown weak keys does not inspire much trust.

The two main countermeasures against inadvertently using a weak key:

  • Checking generated keys against a list of known weak keys, or building rejection of weak keys into the key scheduling.
  • When the number of weak keys is known to be very small (in comparison to the size of the keyspace), generating a key uniformly at random ensures that the probability of it being weak is a (known) very small number.

A large number of weak keys is a serious flaw in any cipher design, since there will then be a (perhaps too) large chance that a randomly generated one will be a weak one, compromising the security of messages encrypted under it. It will also take longer to check randomly generated keys for weakness in such cases, which will tempt shortcuts in interest of 'efficiency'.

However, weak keys are much more often a problem where the adversary has some control over what keys are used, such as when a block cipher is used in a mode of operation intended to construct a secure cryptographic hash function (e.g. Davies-Meyer).

Read more about this topic:  Weak Key

Famous quotes containing the words weak, keys, design and/or goal:

    The dusk runs down the lane driven like hail;
    Far off a precise whistle is escheat
    To the dark; and then the towering weak and pale....
    Allen Tate (1899–1979)

    without luggage or defenses,
    giving up my car keys and my cash,
    keeping only a pack of Salem cigarettes
    the way a child holds on to a toy.
    I signed myself in where a stranger
    puts the inked-in X’s
    Anne Sexton (1928–1974)

    Westerners inherit
    A design for living
    Deeper into matter—
    Not without due patter
    Of a great misgiving.
    Robert Frost (1874–1963)

    The common goal of 22 million Afro-Americans is respect as human beings, the God-given right to be a human being. Our common goal is to obtain the human rights that America has been denying us. We can never get civil rights in America until our human rights are first restored. We will never be recognized as citizens there until we are first recognized as humans.
    Malcolm X (1925–1965)