csa.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * csa.h
00003  *****************************************************************************
00004  * Copyright (C) 2004 Laurent Aimar
00005  * $Id$
00006  *
00007  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef _CSA_H
00025 #define _CSA_H 1
00026 
00027 typedef struct csa_t csa_t;
00028 #define csa_New     __csa_New
00029 #define csa_Delete  __csa_Delete
00030 #define csa_SetCW  __csa_SetCW
00031 #define csa_UseKey  __csa_UseKey
00032 #define csa_Decrypt __csa_decrypt
00033 #define csa_Encrypt __csa_encrypt
00034 
00035 csa_t *csa_New( void );
00036 void   csa_Delete( csa_t * );
00037 
00038 int    csa_SetCW( vlc_object_t *p_caller, csa_t *c, char *psz_ck, bool odd );
00039 int    csa_UseKey( vlc_object_t *p_caller, csa_t *, bool use_odd );
00040 
00041 void   csa_Decrypt( csa_t *, uint8_t *pkt, int i_pkt_size );
00042 void   csa_Encrypt( csa_t *, uint8_t *pkt, int i_pkt_size );
00043 
00044 #endif /* _CSA_H */

Generated on Tue May 25 08:04:59 2010 for VLC by  doxygen 1.5.6