[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subversion Wiki] Update of "MasterPassphrase" by CMichaelPilato

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Thu, 29 Mar 2012 11:36:16 -0400

On 03/29/2012 11:24 AM, Daniel Shahaf wrote:
> Apache subversion Wiki wrote on Thu, Mar 29, 2012 at 14:07:49 -0000:
>> + PREFIX_LEN=4
>> +
>> + def encrypt(PLAINTEXT, MP):
>> + 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)
>
> generate_random(15 - (PREFIXED_PLAINTEXT_LEN % 16))

Yup! Good catch.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2012-03-29 17:36:55 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.