at least a managed it.
code:
void EncryptSessionKey(gcry_sexp_t &encSessionKey, unsigned char*
SessionKey, gcry_sexp_t pKey) {
gcry_mpi_t a;
gcry_sexp_t sexp;
size_t KeyLength;
int rc;
KeyLength = gcry_md_get_algo_dlen(SelectedHash);
//TODO: some padding with sessionke
hi everybody.
so now I try to create a session key to encrypt my text files. this
seems to work. the session key must of course be encrypted with some
public key. Now an error "conflicting use" occurs in the gcry_pk_encrypt
function.
Maybe anyone could tell me what's wrong.
gcry_md_open( &Ha