[][src]Module networking::encryption

contains blowfish encryption wrapper, as well as storage solution (serde) for BigUint principly BigNum

Structs

BigNum

the purpose of this structure is to provide an implementation of BigUint, as is used by the rsa crate, that can be serialized for the sake of storing an retriving rsa keys

PrivKeyComp

private key version of PubKeyPair

PubKeyPair

this struct is used within ArtificePeer, that is transmittted over then network so as to provide the public key of the peer to the hsot like BigNum, this is an abstraction of RSAPublicKey that can be serialized using the serde crate

Functions

decrypt

uses blowfish symetrical decryption so that the program is able to access the installation information for artifice

encrypt

usese blowfish symetrical encryption to protect information such as peers, permissions, installed applications, and configs in teh case of a system compromise the intent is not t ohide this information from the user, rather to protect the network in case of a compromise of a peer the implementation of this program wide encryption is such that in order for a user to use the network they must provide a decyption key as a password for the network

generate_key

used to encrypt password and generate a key that can be used to encrypt, and decrypt data

random_string

used to generate things such as pair keys, and global peer hash, see ArtificePeer

rsa_decrypt
rsa_encrypt