First commit for 0.2.3, some old functions still need to be ported to the new back-end api, i.e. import and export.

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@104 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
tarek_saidi
2006-10-14 22:33:41 +00:00
parent 0286b87a41
commit 21f0fea56a
67 changed files with 8909 additions and 6954 deletions

View File

@@ -21,7 +21,8 @@
#include "SecString.h"
#include <iostream>
#include "crypto/arcfour.h"
#include "random.h"
#include "crypto/yarrow.h"
using namespace std;
CArcFour SecString::RC4;
@@ -101,7 +102,7 @@ for(int i=0; i<str.length(); i++){
void SecString::generateSessionKey(){
CArcFour arc;
unsigned char* sessionkey=new unsigned char[32];
getRandomBytes(sessionkey,32,1,false);
randomize(sessionkey,32);
RC4.setKey(sessionkey,32);
delete [] sessionkey;
}