[BACK]Return to Keyring.pm CVS log [TXT][DIR] Up to [local] / palm / Palm-Keyring / lib / Palm

Diff for /palm/Palm-Keyring/lib/Palm/Keyring.pm between version 1.35 and 1.36

version 1.35, 2007/02/22 04:11:35 version 1.36, 2007/02/22 05:16:04
Line 1 
Line 1 
 package Palm::Keyring;  package Palm::Keyring;
 # $RedRiver: Keyring.pm,v 1.34 2007/02/21 05:24:14 andrew Exp $  # $RedRiver: Keyring.pm,v 1.35 2007/02/22 04:11:35 andrew Exp $
 ########################################################################  ########################################################################
 # Keyring.pm *** Perl class for Keyring for Palm OS databases.  # Keyring.pm *** Perl class for Keyring for Palm OS databases.
 #  #
Line 1344 
Line 1344 
   
 =back  =back
   
   For v5 databases there are some additional appinfo fields set.
   
           $pdb->{appinfo} = {
                   # normal appinfo stuff described in L<Palm::StdAppInfo>
                   cipher     => The index number of the cipher being used
                   iter       => Number of iterations for the cipher
           };
   
 =head2 crypt  =head2 crypt
   
 Pass in the alias of the crypt to use, or the index.  Pass in the alias of the crypt to use, or the index.
Line 1362 
Line 1370 
         default_iter => <default iterations for the cipher>,          default_iter => <default iterations for the cipher>,
     };      };
   
   
 =head2 Encrypt  =head2 Encrypt
   
     $pdb->Encrypt($rec, $acct[, $password[, $ivec]]);      $pdb->Encrypt($rec, $acct[, $password[, $ivec]]);
Line 1457 
Line 1464 
 the password.  the password.
   
 If nothing is passed, it forgets the password that it was remembering.  If nothing is passed, it forgets the password that it was remembering.
   
   After a successful password verification the following fields are set
   
   For v4
   
           $pdb->{digest}   = the calculated digest used from the key;
           $pdb->{password} = the password that was passed in;
   
   For v5
   
           $pdb->{appinfo} = {
                   # As described under new() with these additional fields
                   cipher     => The index number of the cipher being used
                   iter       => Number of iterations for the cipher
                   key        => The key that is calculated from the password
                                 and salt and is used to decrypt the records.
                   masterhash => the hash of the key that is stored in the
                                 database.  Either set when Loading the database
                                             or when setting a new password.
                   salt       => the salt that is either read out of the database
                                 or calculated when setting a new password.
           };
   
 =head1 DEPENDENCIES  =head1 DEPENDENCIES
   

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>