DomainPlug-insDocumentation
Functions
PGP Crypto Lib

Functions

Str PGPCRYPTO_DECL PgpClearsign (const Str in_text, const Str pass, const Str user)
 Sign text message.
int PGPCRYPTO_DECL PgpValidate (Str inText, int has_armour=1)
 Validate clearsigned text.

Function Documentation

Str PGPCRYPTO_DECL PgpClearsign ( const Str  in_text,
const Str  pass,
const Str  user 
)

Sign text message.

Parameters:
in_text- text to sign by PGP
pass- PGP key password
user- identifier of key Example: [root ~]# gpg --list-keys uid My Test Key <test@test.com>

user should be equal to "My Test Key".

int PGPCRYPTO_DECL PgpValidate ( Str  inText,
int  has_armour = 1 
)

Validate clearsigned text.

Parameters:
inText- already clearsigned text
has_armour- treat data as armoured, if set
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines