?? type_gkeypair.html
字號:
<html><head><title>Generated Documentation</title></head><body> <image src="headerimage.png"> <br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GKeyPair</b></big></big></big><br><br></td><td> This is my home-made (so don't trust it) implementation of symmetric key cryptography.</td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>Test</b></big>()<br></div><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GKeyPair</b></big>()<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GKeyPair</b></big>()<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">void <big><b>CopyN</b></big>(<a href="type_GBigNumber.html">GBigNumber</a>* pN)<br><div style="margin-left: 80px;"><font color=brown> Copies the GBigNumber you pass in</font></div><br>void <big><b>CopyPrivateKey</b></big>(<a href="type_GBigNumber.html">GBigNumber</a>* pPrivateKey)<br><div style="margin-left: 80px;"><font color=brown> Copies the GBigNumber you pass in</font></div><br>void <big><b>CopyPublicKey</b></big>(<a href="type_GBigNumber.html">GBigNumber</a>* pPublicKey)<br><div style="margin-left: 80px;"><font color=brown> Copies the GBigNumber you pass in</font></div><br>bool <big><b>FromXML</b></big>(const char* pBuf, int nBufSize)<br><div style="margin-left: 80px;"><font color=brown> Deserialize the key pari</font></div><br>bool <big><b>FromXML</b></big>(<a href="type_GXMLTag.html">GXMLTag</a>* pTag)<br><div style="margin-left: 80px;"><font color=brown> Deserialize the key pari</font></div><br>void <big><b>GenerateKeyPair</b></big>(<a href="type_GRand.html">GRand</a>* pRand)<br><div style="margin-left: 80px;"><font color=brown> Input: The size that pRand was seeded with will determine the size of the keys Output: "this" will hold both a public and private key when it returns</font></div><br>int <big><b>GetMaxBlockSize</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Returns the maximum number of bytes that you can encrypt using the PowerMod method</font></div><br><a href="type_GBigNumber.html">GBigNumber</a>* <big><b>GetN</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Get the N part of the key</font></div><br><a href="type_GBigNumber.html">GBigNumber</a>* <big><b>GetPrivateKey</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Get the private part of the key</font></div><br><a href="type_GBigNumber.html">GBigNumber</a>* <big><b>GetPublicKey</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Get the public part of the key (not including N which is public too)</font></div><br>char* <big><b>PowerMod</b></big>(const unsigned char* pInput, int nInputSize, bool bPublicKey, int* pnOutputSize)<br><div style="margin-left: 80px;"><font color=brown> This is the method that encrypts/decrypts your message. If bPublicKey is true, it uses the public key. If false it uses the private key. Note: you must delete the buffer this returns</font></div><br>void <big><b>SetN</b></big>(<a href="type_GBigNumber.html">GBigNumber</a>* pN)<br><div style="margin-left: 80px;"><font color=brown> Takes ownership of the GBigNumber you pass in</font></div><br>void <big><b>SetPrivateKey</b></big>(<a href="type_GBigNumber.html">GBigNumber</a>* pPrivateKey)<br><div style="margin-left: 80px;"><font color=brown> Takes ownership of the GBigNumber you pass in</font></div><br>void <big><b>SetPublicKey</b></big>(<a href="type_GBigNumber.html">GBigNumber</a>* pPublicKey)<br><div style="margin-left: 80px;"><font color=brown> Takes ownership of the GBigNumber you pass in</font></div><br><a href="type_GXMLTag.html">GXMLTag</a>* <big><b>ToXML</b></big>(bool* bIncludePrivateKey)<br><div style="margin-left: 80px;"><font color=brown> Serialize the key pair. You are responsible to delete the GXMLTag this returns</font></div><br></div><br></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -