Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Subversion Wiki" for 
change notification.

The "MasterPassphrase" page has been changed by CMichaelPilato:
http://wiki.apache.org/subversion/MasterPassphrase?action=diff&rev1=26&rev2=27

Comment:
Fix a logical oopsy.

      PREFIX = generate_random(PREFIX_LEN)
      PREFIXED_PLAINTEXT_LEN = PREFIX_LEN + len(PLAINTEXT)
      if PREFIXED_PLAINTEXT_LEN % 16:
-         PAD = NUL . generate_random(15 - PREFIXED_PLAINTEXT_LEN)
+         PAD = NUL . generate_random(15 - (PREFIXED_PLAINTEXT_LEN % 16))
      else:
          PAD = ''
      SALT = generate_random(8)

Reply via email to