src/cryptotech.c
author vb
Mon, 01 Sep 2014 13:02:23 +0200
changeset 23 dba569e54163
child 24 50887c6ab78f
permissions -rw-r--r--
adding the concepts of transports and cryptotech
     1 #include "cryptotech.h"
     2 
     3 #include <stdlib.h>
     4 #include <memory.h>
     5 #include <assert.h>
     6 
     7 PEP_STATUS init_cryptotech(PEP_cryptotech_t *cryptotech)
     8 {
     9     assert(PEP_crypt__count == 2);
    10     memset(cryptotech, 0, sizeof(PEP_cryptotech_t) * PEP_crypt__count);
    11 
    12     cryptotech[0].id = PEP_crypt_none;
    13 
    14     cryptotech[1].id = PEP_crypt_OpenPGP;
    15     cryptotech[1].decrypt_and_verify = decrypt_and_verify;
    16     cryptotech[1].encrypt_and_sign = encrypt_and_sign;
    17     cryptotech[1].verify_text = verify_text;
    18 
    19     return PEP_STATUS_OK;
    20 }