crypto/weakcryptospi/source/random/random.cpp
branchRCL_3
changeset 41 9b5a3a9fddf8
parent 19 cd501b96611d
child 44 d07aa956024a
equal deleted inserted replaced
37:721a5e5fe251 41:9b5a3a9fddf8
    22 
    22 
    23 #include <e32std.h>
    23 #include <e32std.h>
    24 #include <e32math.h>
    24 #include <e32math.h>
    25 #include <random.h>
    25 #include <random.h>
    26 #include <hash.h>
    26 #include <hash.h>
    27 
       
    28 #include "randsvr.h"
       
    29 #include "randcliserv.h"
       
    30 #include "randomshim.h"
    27 #include "randomshim.h"
    31 
    28 
    32 extern "C" {
    29 extern "C" {
    33 EXPORT_C void RAND_bytes(unsigned char* buf,int bytes)
    30 EXPORT_C void RAND_bytes(unsigned char* buf,int bytes)
    34 	{
    31 	{
    91 EXPORT_C void TRandom::RandomL(TDes8& aDestination)
    88 EXPORT_C void TRandom::RandomL(TDes8& aDestination)
    92 	{
    89 	{
    93 	// Method replaced by shim
    90 	// Method replaced by shim
    94 	TRandomShim::RandomL(aDestination);
    91 	TRandomShim::RandomL(aDestination);
    95 	}
    92 	}
       
    93 	
       
    94 EXPORT_C void TRandom::SecureRandomL(TDes8& aDestination)
       
    95 	{
       
    96 	// Method replaced by shim
       
    97 	TRandomShim::SecureRandomL(aDestination);
       
    98 	}
    96 
    99 
    97 EXPORT_C RRandomSession::RRandomSession(void)
   100 EXPORT_C RRandomSession::RRandomSession(void)
    98 	{
   101 	{
    99 	}
   102 	}
   100 
   103 
   112 	{
   115 	{
   113 	// Method replaced by shim
   116 	// Method replaced by shim
   114 	TRandomShim::Random(aDestination);
   117 	TRandomShim::Random(aDestination);
   115 	return KErrNone;
   118 	return KErrNone;
   116 	}
   119 	}
   117