Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | Static Public Attributes | Properties | List of all members
Expansions.ExpansionsEditorSigning Class Reference

Static Public Member Functions

static string GetBytesSignature (RSACryptoServiceProvider signer, byte[] data, bool useMD5=false)
 Returns a signature of the MD5 hash of a byte array - Base64 encoded for storage More...
 
static string GetFileSignature (RSACryptoServiceProvider signer, string folderPath, string fileName)
 Returns a signature of the MD5 hash of a files contents - Base64 encoded for storage More...
 
static bool InitPrivateKeyCryptoProvider (out RSACryptoServiceProvider signer)
 Initializes a CryptoProvider using the expansions private key More...
 
static string SignData (RSACryptoServiceProvider signer, string data)
 Returns a signature of the Data - Base64 encoded for storage More...
 

Static Public Attributes

static readonly string expansionSignatureFileName = "signature"
 
static readonly string privateKeyFilename = "expansionsprivatekey.txt"
 
static readonly string publicKeyFilename = "expansionspublickey.txt"
 
static readonly string signingKeysPath = "/Expansions/Editor/Keys/"
 

Properties

static string PrivateKeyPath [get]
 
static string PublicKeyPath [get]
 

Member Function Documentation

static string Expansions.ExpansionsEditorSigning.GetBytesSignature ( RSACryptoServiceProvider  signer,
byte[]  data,
bool  useMD5 = false 
)
inlinestatic

Returns a signature of the MD5 hash of a byte array - Base64 encoded for storage

Parameters
signerThe RSACrypto Signer
dataArray of bytes
useMD5Set true if we want to compute an MD5 hash of the data before signing
Returns
static string Expansions.ExpansionsEditorSigning.GetFileSignature ( RSACryptoServiceProvider  signer,
string  folderPath,
string  fileName 
)
inlinestatic

Returns a signature of the MD5 hash of a files contents - Base64 encoded for storage

Parameters
signerThe RSACrypto Signer
filePathPath to the file
Returns
static bool Expansions.ExpansionsEditorSigning.InitPrivateKeyCryptoProvider ( out RSACryptoServiceProvider  signer)
inlinestatic

Initializes a CryptoProvider using the expansions private key

Parameters
signerRSACryptoProvider to be set up
Returns
True if successful
static string Expansions.ExpansionsEditorSigning.SignData ( RSACryptoServiceProvider  signer,
string  data 
)
inlinestatic

Returns a signature of the Data - Base64 encoded for storage

Parameters
signerThe RSACrypto Signer
dataShould be obvious
Returns

Member Data Documentation

readonly string Expansions.ExpansionsEditorSigning.expansionSignatureFileName = "signature"
static
readonly string Expansions.ExpansionsEditorSigning.privateKeyFilename = "expansionsprivatekey.txt"
static
readonly string Expansions.ExpansionsEditorSigning.publicKeyFilename = "expansionspublickey.txt"
static
readonly string Expansions.ExpansionsEditorSigning.signingKeysPath = "/Expansions/Editor/Keys/"
static

Property Documentation

string Expansions.ExpansionsEditorSigning.PrivateKeyPath
staticget
string Expansions.ExpansionsEditorSigning.PublicKeyPath
staticget

The documentation for this class was generated from the following file: