Security Scol plugin
Functions
Scol functions definition

Functions

int _RSAgetKeyPair (mmachine m)
 _RSAgetKeyPair : This function generate the RSA private and public key with the size passed in parameter
 
int _RSAencryptMessage (mmachine m)
 _RSAencryptMessage : This function encrypt a message using the RSA public key
 
int _RSAdecryptMessage (mmachine m)
 _RSAdecryptMessage : This function decrypt a message using the RSA private key
 
int _AESgetKey (mmachine m)
 _AESgetKey : This function generate an AES key
 
int _AESencryptMessage (mmachine m)
 _AESencryptMessage : This function encrypt a message using the AES key
 
int _AESdecryptMessage (mmachine m)
 _AESdecryptMessage : This function decrypt a message using the AES key
 
int _MD5value (mmachine m)
 _MD5value : This function get the MD5 value from a string
 
int _SHA256value (mmachine m)
 _SHA256value : This function get the SHA256 value from a string
 
int _SHA512value (mmachine m)
 _SHA512value : This function get the SHA512 value from a string
 

Detailed Description

Scol functions definition

Function Documentation

◆ _AESdecryptMessage()

int _AESdecryptMessage ( mmachine  m)

_AESdecryptMessage : This function decrypt a message using the AES key

Prototype: fun [S S] S

Parameters
S: the message to decrypt
S: the AES key to use
Returns
S : the decrypted message

Definition at line 528 of file securityplugin.cpp.

◆ _AESencryptMessage()

int _AESencryptMessage ( mmachine  m)

_AESencryptMessage : This function encrypt a message using the AES key

Prototype: fun [S S] S

Parameters
S: the message to encrypt
S: the AES key to use
Returns
S : the encrypted message

Definition at line 404 of file securityplugin.cpp.

◆ _AESgetKey()

int _AESgetKey ( mmachine  m)

_AESgetKey : This function generate an AES key

Prototype: fun [] S

Returns
S : the new AES key

Definition at line 368 of file securityplugin.cpp.

◆ _MD5value()

int _MD5value ( mmachine  m)

_MD5value : This function get the MD5 value from a string

Prototype: fun [S] S

Parameters
S: the string
Returns
S : the MD5 string

Definition at line 625 of file securityplugin.cpp.

◆ _RSAdecryptMessage()

int _RSAdecryptMessage ( mmachine  m)

_RSAdecryptMessage : This function decrypt a message using the RSA private key

Prototype: fun [S S] S

Parameters
S: the message to decrypt
S: the RSA private key to use
Returns
S : the decrypted message

Definition at line 281 of file securityplugin.cpp.

◆ _RSAencryptMessage()

int _RSAencryptMessage ( mmachine  m)

_RSAencryptMessage : This function encrypt a message using the RSA public key

Prototype: fun [S S] S

Parameters
S: the message to encrypt
S: the RSA public key to use
Returns
S : the encrypted message

Definition at line 195 of file securityplugin.cpp.

◆ _RSAgetKeyPair()

int _RSAgetKeyPair ( mmachine  m)

_RSAgetKeyPair : This function generate the RSA private and public key with the size passed in parameter

Prototype: fun [I] [S S]

Parameters
I: size of the RSA key to generate
Returns
[S S] : the generated private and public key

Definition at line 125 of file securityplugin.cpp.

◆ _SHA256value()

int _SHA256value ( mmachine  m)

_SHA256value : This function get the SHA256 value from a string

Prototype: fun [S] S

Parameters
S: the string
Returns
S : the SHA256 string

Definition at line 695 of file securityplugin.cpp.

◆ _SHA512value()

int _SHA512value ( mmachine  m)

_SHA512value : This function get the SHA512 value from a string

Prototype: fun [S] S

Parameters
S: the string
Returns
S : the SHA512 string

Definition at line 765 of file securityplugin.cpp.