Skip to Content
Applied Cryptography: Protocols, Algorithms and Source Code in C, 20th Anniversary Edition
book

Applied Cryptography: Protocols, Algorithms and Source Code in C, 20th Anniversary Edition

by Bruce Schneier
March 2015
Intermediate to advanced
784 pages
24h 11m
English
Wiley
Content preview from Applied Cryptography: Protocols, Algorithms and Source Code in C, 20th Anniversary Edition

CHAPTER 23

Special Algorithms for Protocols

23.1 MULTIPLE-KEY PUBLIC-KEY CRYPTOGRAPHY

This is a generalization of RSA (see Section 19.3) [217,212]. The modulus, n, is the product of two primes, p and q. However, instead of choosing e and d such that ed ≡ 1 mod ((p − 1)(q − 1)), choose t keys, Ki, such that

K1 * K2 * . . . * Kt ≡ 1 mod ((p − 1)(q − 1))

Since

MK1 * K2 * . . . * Kt = M

this is a multiple-key scheme as described in Section 3.5.

If, for example, there are five keys, a message encrypted with K3 and K5 can be decrypted with K1, K2, and K4:

C = MK3 * K5 mod n

M = CK1 * K2 * K4 mod n

One use for this is multisignatures. Imagine a situation where both Alice and Bob have to sign a document for it to be valid. Use three keys: K1, K2, and K3. The first two are issued one each to Alice and Bob, and the third is made public.

  • (1) First Alice signs M and sends it to Bob.

    M′ = MK1 mod n

  • (2) Bob can recover M from M′.

    M = M′K2 * K3 mod n

  • (3) He can also add his signature.

    M″ = M′K2 mod n

  • (4) Anyone can verify the signature with K3, the public key.

    M = M″K3 mod n

Note that a trusted party is needed to set this system up and distribute the keys to Alice and Bob. Another scheme with the same problem is [484]. Yet a third scheme is [695,830,700], but the effort in verification is proportional to the number of signers. Newer schemes [220,1200] based on zero-knowledge identification schemes solve both shortcomings of the previous systems.

23.2 SECRET-SHARING ALGORITHMS ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Cryptography in C and C++, Second Edition

Cryptography in C and C++, Second Edition

Michael Welschenbach
Serious Cryptography, 2nd Edition

Serious Cryptography, 2nd Edition

Jean-Philippe Aumasson

Publisher Resources

ISBN: 9781119096726Purchase book