~ubuntu-branches/ubuntu/hardy/phpmyadmin/hardy-updates

« back to all changes in this revision

Viewing changes to libraries/blowfish.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2007-10-17 22:54:41 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20071017225441-xqwg7f10chaprdoe
Tags: 4:2.11.1.2-1

* New upstream release.
* Addresses two cross site scripting issues:
  PMASA-2007-5, PMASA-2007-6
  (CVE-2007-5386, closes: #446451)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
 
3
 
/* $Id: blowfish.php 8301 2006-01-17 17:03:02Z cybot_tm $ */
4
 
// vim: expandtab sw=4 ts=4 sts=4:
5
 
 
 
2
/* vim: set expandtab sw=4 ts=4 sts=4: */
6
3
/**
7
4
 * The Cipher_blowfish:: class implements the Cipher interface enryption data
8
5
 * using the Blowfish algorithm.
15
12
 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
16
13
 *
17
14
 * @author  Mike Cochrane <mike@graftonhall.co.nz>
18
 
 * @version $Revision: 8301 $
 
15
 * @version $Id: blowfish.php 10142 2007-03-20 10:32:13Z cybot_tm $
19
16
 * @since   Horde 2.2
20
17
 * @package horde.cipher
21
18
 */
389
386
        $parts = $this->_encryptBlock($L, $R);
390
387
        return pack("NN", $parts['L'], $parts['R']);
391
388
    }
392
 
    
 
389
 
393
390
    /**
394
391
     * Encrypt a block on data.
395
392
     *