Malleability (cryptography)

Malleability is a property of some cryptographic algorithms.[1] An encryption algorithm is "malleable" if it is possible to transform a ciphertext into another ciphertext which decrypts to a related plaintext. That is, given an encryption of a plaintext m, it is possible to generate another ciphertext which decrypts to f(m), for a known function f, without necessarily knowing or learning m.

Malleability is often an undesirable property in a general-purpose cryptosystem, since it allows an attacker to modify the contents of a message. For example, suppose that a bank uses a stream cipher to hide its financial information, and a user sends an encrypted message containing, say, "TRANSFER $0000100.00 TO ACCOUNT #199." If an attacker can modify the message on the wire, and can guess the format of the unencrypted message, the attacker could change the amount of the transaction, or the recipient of the funds, e.g. "TRANSFER $0100000.00 TO ACCOUNT #227". Malleability does not refer to the attacker's ability to read the encrypted message. Both before and after tampering, the attacker cannot read the encrypted message.

On the other hand, some cryptosystems are malleable by design. In other words, in some circumstances it may be viewed as a feature that anyone can transform an encryption of m into a valid encryption of f(m) (for some restricted class of functions f) without necessarily learning m. Such schemes are known as homomorphic encryption schemes.

A cryptosystem may be semantically secure against chosen plaintext attacks or even non-adaptive chosen ciphertext attacks (CCA1) while still being malleable. However, security against adaptive chosen ciphertext attacks (CCA2) is equivalent to non-malleability.[2]

## Contents

* 1 Example malleable cryptosystems
* 2 Complete non-malleability
* 3 See also
* 4 References

## Example malleable cryptosystems

In a stream cipher, the ciphertext is produced by taking the exclusive or of the plaintext and a pseudorandom stream based on a secret key k, as E(m)=m⊕S(k). An adversary can construct an encryption of m⊕t for any t, as E(m)⊕t=m⊕t⊕S(k)=E(m⊕t).

In the RSA cryptosystem, a plaintext m is encrypted as E(m)=memodn, where (e,n) is the public key. Given such a ciphertext, an adversary can construct an encryption of mt for any t, as E(m)⋅temodn=(mt)emodn=E(mt). For this reason, RSA is commonly used together with padding methods such as OAEP or PKCS1.

In the ElGamal cryptosystem, a plaintext m is encrypted as E(m)=(gb,mAb), where (g,A) is the public key. Given such a ciphertext (c1,c2), an adversary can compute (c1,t⋅c2), which is a valid encryption of tm, for any t. In contrast, the Cramer-Shoup system (which is based on ElGamal) is not malleable.

In the Paillier, ElGamal, and RSA cryptosystems, it is also possible to combine several ciphertexts together in a useful way to produce a related ciphertext. In Paillier, given only the public key and an encryption of m1 and m2, one can compute a valid encryption of their sum m1+m2. In ElGamal and in RSA, one can combine encryptions of m1 and m2 to obtain a valid encryption of their product m1m2.

Block ciphers in the cipher block chaining mode of operation, for example, are partly malleable: flipping a bit in a ciphertext block will completely mangle the plaintext it decrypts to, but will result in the same bit being flipped in the plaintext of the next block. This allows an attacker to 'sacrifice' one block of plaintext in order to change some data in the next one, possibly managing to maliciously alter the message. This is essentially the core idea of the padding oracle attack on CBC, which allows the attacker to decrypt almost an entire ciphertext without knowing the key. For this and many other reasons, a message authentication code is required to guard against any method of tampering.

## Complete non-malleability

Fischlin, in 2005, defined the notion of complete non-malleability as the ability of the system to remain non-malleable while giving the adversary additional power to choose a new public key which could be a function of the original public key.[3] In other words, the adversary shouldn't be able to come up with a ciphertext whose underlying plaintext is related to the original message through a relation that also takes public keys into account.

## See also

* Homomorphic encryption

## References

1. ↑ Dolev, Danny; Dwork, Cynthia; Naor, Moni (2000). "Nonmalleable Cryptography". SIAM Journal on Computing 30 (2): 391–437. doi:10.1137/S0097539795291562.
2. ↑ Bellare, Mihir; Desai, Anand; Pointcheval, David; Rogaway, Phillip (1998-08-23). Krawczyk, Hugo. ed (in en). Relations among notions of security for public-key encryption schemes. Lecture Notes in Computer Science. Springer Berlin Heidelberg. pp. 26–45. doi:10.1007/bfb0055718. ISBN 978-3540648925.
3. ↑ Fischlin, Marc (2005-07-11). "Completely Non-malleable Schemes" (in en). Automata, Languages and Programming. Lecture Notes in Computer Science. 3580. Springer, Berlin, Heidelberg. pp. 779–790. doi:10.1007/11523468_63. ISBN 9783540275800. https://archive.org/details/automatalanguage2005inte/page/779.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Malleability (cryptography). Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Malleability_(cryptography)&oldid=185559"