|
Protocol++® (Protocolpp®) v5.7.2
|
Public Member Functions | |
| jikencrypt (std::shared_ptr< InterfacePP::jlogger > &logger, std::shared_ptr< jrand > &rand) | |
| ~jikencrypt ()=default | |
| Standard deconstructor. | |
| int | get_random (uint8_t *buf, uint32_t len) |
| bool | encrypt (direction_t dir, std::shared_ptr< jikev2sa > &sa, jarray< uint8_t > &input, std::shared_ptr< jarray< uint8_t > > &output, std::shared_ptr< jarray< uint8_t > > &iv) |
| bool | integrity (direction_t dir, std::shared_ptr< jikev2sa > &sa, jarray< uint8_t > &input, std::shared_ptr< jarray< uint8_t > > &icv) |
| jikencrypt (jikencrypt &jikencrypt)=delete | |
| jikencrypt (const jikencrypt &jikencrypt)=delete | |
| ProtocolPP::jikencrypt::jikencrypt | ( | std::shared_ptr< InterfacePP::jlogger > & | logger, |
| std::shared_ptr< jrand > & | rand | ||
| ) |
Standard constructor
| logger | - Logger object to write to |
| rand | - randomizer |
| bool ProtocolPP::jikencrypt::encrypt | ( | direction_t | dir, |
| std::shared_ptr< jikev2sa > & | sa, | ||
| jarray< uint8_t > & | input, | ||
| std::shared_ptr< jarray< uint8_t > > & | output, | ||
| std::shared_ptr< jarray< uint8_t > > & | iv | ||
| ) |
Encrypt the IKE transactions
| dir | - Direction of processing |
| sa | - IKE security association |
| input | - packet to encrypt or decrypt |
| output | - encrypted or decrypted packet |
| iv | - IV generated for encryption/decryption |
Get random numbers from the kernel
| buf | - buffer to hold random bytes |
| len | - number of bytes to retrieve |
| bool ProtocolPP::jikencrypt::integrity | ( | direction_t | dir, |
| std::shared_ptr< jikev2sa > & | sa, | ||
| jarray< uint8_t > & | input, | ||
| std::shared_ptr< jarray< uint8_t > > & | icv | ||
| ) |
Authenticate the IKE transactions
| dir | - Direction of processing |
| sa | - IKE security association |
| input | - packet to authenticate |
| icv | - Integrety check value (zero if direction is out) |