Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SecurePlayLibrary::SPSSecurityManagerClass Class Reference

#include <SPSSecurityManagerClass.h>

Inheritance diagram for SecurePlayLibrary::SPSSecurityManagerClass:

SecurePlayLibrary::SPSecurityManagerInterface List of all members.

Detailed Description

This is the SuperClass for comms services classes.
Author:
IT GlobaLSecure
See also:
SecurePlay License Information


Public Member Functions

 SPSSecurityManagerClass ()
 ~SPSSecurityManagerClass ()
bool onIncomingTransaction (SPMessageClass *messobj)
vector< byteSPcreateBHash (string input, string gameid)
vector< byteSPcreateBSignature (string senderID, vector< byte > input, string gameid)
string SPcreateHash (string input, string gameid)
string SPcreateSignature (string senderID, string input, string gameid)
vector< string > SPdecrypt (vector< string > input, string senderID, vector< string > recvrs, string gameID, string messageID)
vector< string > SPencrypt (vector< string > input, string senderID, vector< string > recvrs, string gameID, string messageID)
bool SPverifySignature (vector< byte > sigToVerify, string senderID, vector< byte > testhash, string gameid)
bool SPverifySignature (string signature, string senderID, string testhash, string gameid)
bool SPsetGame (SPGameInterface *game, string gameID)


Constructor & Destructor Documentation

SPSSecurityManagerClass::SPSSecurityManagerClass  ) 
 

Default Constrcutor

SPSSecurityManagerClass::~SPSSecurityManagerClass  ) 
 

Default Destructor


Member Function Documentation

bool SPSSecurityManagerClass::onIncomingTransaction SPMessageClass messobj  )  [virtual]
 

This method handles incoming messages.

Parameters:
messobj SPMessageClass* - incoming message
Returns:
bool - TRUE: if message processed, FALSE: if not.

Implements SecurePlayLibrary::SPSecurityManagerInterface.

vector< byte > SPSSecurityManagerClass::SPcreateBHash string  input,
string  gameid
[virtual]
 

This is a wrapper function for creating a hash of a string. This reference implementation includes a MD5 hash.

Parameters:
input string
Returns:
string - Hash of input

Implements SecurePlayLibrary::SPSecurityManagerInterface.

vector< byte > SPSSecurityManagerClass::SPcreateBSignature string  senderID,
vector< byte input,
string  gameid
[virtual]
 

This is a wrapper function for creating a digital signature based on an existing hashed string and a Sender ID. The reference implementation currently uses an MD5 function to approximate performance of a real signature. The included signature function is a sample function - REPLACE with a function that meets your specific security requirements.

Parameters:
senderID string
input vector<byte>
gameid string
Returns:
vector<byte> - digital signature of hashstring signed by senderID.

Implements SecurePlayLibrary::SPSecurityManagerInterface.

string SPSSecurityManagerClass::SPcreateHash string  input,
string  gameid
[virtual]
 

This is a wrapper function for creating a hash of a string. This reference implementation includes a MD5 hash.

Parameters:
input string
Returns:
string - Hash of input

Implements SecurePlayLibrary::SPSecurityManagerInterface.

string SPSSecurityManagerClass::SPcreateSignature string  senderID,
string  input,
string  gameid
[virtual]
 

This is a wrapper function for creating a digital signature based on an existing hashed string and a Sender ID. The reference implementation currently uses an MD5 function to approximate performance of a real signature. The included signature function is a sample function - REPLACE with a function that meets your specific security requirements.

Parameters:
senderID string
input string
gameid string
Returns:
string - digital signature of hashstring signed by senderID.

Implements SecurePlayLibrary::SPSecurityManagerInterface.

vector< string > SPSSecurityManagerClass::SPdecrypt vector< string >  input,
string  senderID,
vector< string >  recvrs,
string  gameID,
string  messageID
[virtual]
 

This is a placeholder for an decryption function. An actual encryption function is the responsibility of the game implementer.

Parameters:
input vector<string> - input message body to be decrypted
senderID string - sender id
recvrs vector<string> - receiver id list
gameID string - game id
messageID string - message id
Returns:
vector<string> - string array of decrypted messagebody.

Implements SecurePlayLibrary::SPSecurityManagerInterface.

vector< string > SPSSecurityManagerClass::SPencrypt vector< string >  input,
string  senderID,
vector< string >  recvrs,
string  gameID,
string  messageID
[virtual]
 

This is a placeholder for an encryption function. An actual encryption function is the responsibility of the game implementer.

Parameters:
input vector<string> - message body to be encrypted
senderID string - sender id
recvrs vector<string> - receiver id list
gameID string - game id
messageID string - message id
Returns:
vector<string> - Encrypted message body

Implements SecurePlayLibrary::SPSecurityManagerInterface.

bool SPSSecurityManagerClass::SPsetGame SPGameInterface game,
string  gameID
[virtual]
 

DUMMY METHOD.

Implements SecurePlayLibrary::SPSecurityManagerInterface.

bool SPSSecurityManagerClass::SPverifySignature string  signature,
string  senderID,
string  testhash,
string  gameid
[virtual]
 

This is a wrapper for a digital signature verification function. CAREFUL CHOICE OF ACTUAL DIGITAL SIGNATURES AND VERIFICATION IS CRITICAL. SELECTION OF APPROPRIATE FUNCTIONS AND IMPLEMENTATION MAY HAVE A SUBSTANTIAL IMPACT ON THE SECURITY AND PERFORMANCE OF A GAME IMPLEMENTATION.

Parameters:
signature string
senderID string
testhash string
Returns:
bool - TRUE, if verification Successful, FALSE, if not.

Implements SecurePlayLibrary::SPSecurityManagerInterface.

bool SPSSecurityManagerClass::SPverifySignature vector< byte sigToVerify,
string  senderID,
vector< byte testhash,
string  gameid
[virtual]
 

This is a wrapper for a digital signature verification function. CAREFUL CHOICE OF ACTUAL DIGITAL SIGNATURES AND VERIFICATION IS CRITICAL. SELECTION OF APPROPRIATE FUNCTIONS AND IMPLEMENTATION MAY HAVE A SUBSTANTIAL IMPACT ON THE SECURITY AND PERFORMANCE OF A GAME IMPLEMENTATION.

Parameters:
sigToVerify vector<byte>
senderID string
testhash string
Returns:
bool - TRUE, if verification Successful, FALSE, if not.

Implements SecurePlayLibrary::SPSecurityManagerInterface.


The documentation for this class was generated from the following files: 2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.