📄 type_gcrypto.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>GCrypto</b></big></big></big><br><br></td><td> This is my own home-made (so don't trust it) encryption algorithm. It's based on the hashing algorithm of your choice. If you plug in a stronger hashing algorithm then this becomes a stronger block cypher. Currently it's hooked up to SHA1</td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;">void <big><b>Decrypt</b></big>(unsigned char* pData, int nDataSize, const unsigned char* pPassphrase, int nPassphraseSize)<br><div style="margin-left: 80px;"><font color=brown> Decrypts a buffer</font></div><br>void <big><b>Encrypt</b></big>(unsigned char* pData, int nDataSize, const unsigned char* pPassphrase, int nPassphraseSize)<br><div style="margin-left: 80px;"><font color=brown> Encrypts a buffer</font></div><br></div><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GCrypto</b></big>(const unsigned char* pPassphrase, int nPassphraseSize, bool bEncrypt)<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GCrypto</b></big>()<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">void <big><b>ProcessChunk</b></big>(unsigned char* pChunk, int nChunkSize)<br><div style="margin-left: 80px;"><font color=brown> Encrypt or decrypt a single block</font></div><br></div><br><big><big><i>Private</i></big></big><br><div style="margin-left: 40px;">bool <big><b>FinishBlock</b></big>(unsigned char* pChunk, int nChunkSize)<br><div style="margin-left: 80px;"><font color=brown> Finish the last block if we didn't yet Process all the full blocks If there's some left, do part of the next block</font></div><br>void <big><b>ManglePassword</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Make a blob that contains the passphrase concatenated with some data Digest the blob to make a key Use some data to extend the passphrase XOR the block with the key Use some data to extend the passphrase Preserve the unused portion of the encryption key for the next chunk</font></div><br>void <big><b>ProcessBlock</b></big>(unsigned char* pData, int nDataSize)<br><div style="margin-left: 80px;"><font color=brown> We don't have enough to finish the block We do have enough to finish the block</font></div><br></div><br></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -