pike.git / src / post_modules / Nettle / nettle.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/nettle.cmod:535:       /*! @decl int(0..) key_size()    *! Returns the key size of the encapsulated cipher.    */    PIKEFUN int(0..) key_size()    optflags OPT_EXTERNAL_DEPEND;    {    safe_apply(THIS->object, "key_size", args);    }    -  /*! @decl this_program set_encrypt_key(string key) +  /*! @decl this_program set_encrypt_key(string key, int|void flags)    *!    *! Prepare the cipher and the wrapper for encrypting with the given    *! @[key]. The @[key] memory will be cleared before released.    */ -  PIKEFUN object set_encrypt_key(string key) +  PIKEFUN object set_encrypt_key(string key, int|void flags)    optflags OPT_SIDE_EFFECT;    {    assert(THIS->block_size);    THIS->mode = 0;    key->flags |= STRING_CLEAR_ON_EXIT;    safe_apply(THIS->object, "set_encrypt_key", args);    pop_stack();    RETURN this_object();    }    -  /*! @decl this_program set_decrypt_key(string key) +  /*! @decl this_program set_decrypt_key(string key, int|void flags)    *!    *! Prepare the cipher and the wrapper for decrypting with the given    *! @[key]. The @[key] memory will be cleared before released.    */ -  PIKEFUN object set_decrypt_key(string key) +  PIKEFUN object set_decrypt_key(string key, int|void flags)    optflags OPT_SIDE_EFFECT;    {    assert(THIS->block_size);    THIS->mode = 1;    key->flags |= STRING_CLEAR_ON_EXIT;    safe_apply(THIS->object, "set_decrypt_key", args);    pop_stack();    RETURN this_object();    }