Susan Harkins (406) [Avatar] Offline
#1
Please post errors in the published version of Securing DevOps here. If necessary, we'll publish a comprehensive list for everyone's convenience. Thank you for participating in the collection process. Your contributions are a great help to us and other readers.


Regards,
Susan Harkins
Errata Editor
415658 (1) [Avatar] Offline
#2
in the printed version / PDF on page 123 (section 5.1.2 Diffie-Hellman and RSA) the example "DH key exchange with small values" is wrong - it must read

A = g^a mod p = 15625 mod 23 = 8
B = g^b mod p = 30517578125 mod 23 = 19
key = B^a mod p = 47045881 mod 23 = 2


this could be repaired by using superscript (5^6 instead of 56, 5^15 instead of 515, 19^6 instead 196) for readability


Greetings,
Sören
268315 (1) [Avatar] Offline
#3
415658 wrote:in the printed version / PDF on page 123 (section 5.1.2 Diffie-Hellman and RSA) the example "DH key exchange with small values" is wrong - it must read

A = g^a mod p = 15625 mod 23 = 8
B = g^b mod p = 30517578125 mod 23 = 19
key = B^a mod p = 47045881 mod 23 = 2


this could be repaired by using superscript (5^6 instead of 56, 5^15 instead of 515, 19^6 instead 196) for readability


Greetings,
Sören


There's one more line that is incorrect:

Bob calculates A^b mod p = 8^15 mod 23 = 35,184,372,088,832 mod 23 = 2


Respectfully,

Jack


Julien Vehent (14) [Avatar] Offline
#4
Thank you for the corrections. There typos will be fixed in future prints of the book.
Susan Harkins (406) [Avatar] Offline
#5
An errata list for Securing DevOps is available at https://manning-content.s3.amazonaws.com/download/0/898e9f2-a630-40d4-91aa-fd96a732d7c3/vehent_SecuringDevOps_Err1.html. Thank you for participating in the collection process. Your contributions are a great help to us and other readers.

Regards,
Susan Harkins
Errata Editor
612664 (1) [Avatar] Offline
#6
In listing 3.20 on page 64 in the line

if username != defaultUser && password != defaultPass {


the && should be a ||.

(Or for simpler login: Check that the username and the password are equal to the default values and deny otherwise as the default case.)