Menu

Feature Request: PowerVu (DES & AES) Support

2017-08-28
2017-08-28
  • Hugo Portisch

    Hugo Portisch - 2017-08-28

    Hi,

    as MDAPI Plus is only supporting CSA (FFdesca) I will request the new algos PowerVu (DES) and the AES algo.
    I can supply a DLL for these algos:

    void *__stdcall des_get_key_struct(void);
    void __stdcall des_free_key_struct(void *deskeys);
    int __stdcall des_get_keyset_size(void);
    void __stdcall des_set_even_control_word(void *deskeys, const uint8_t *cw);
    void __stdcall des_set_odd_control_word(void *deskeys, const uint8_t *cw);
    void __stdcall des_set_control_words(void *deskeys, const uint8_t *ev, const uint8_t *od);
    void __stdcall des_decrypt_packtes(void *cluster, des_keys_t *deskeys);
    
    void *__stdcall aes_get_key_struct(void);
    void __stdcall aes_free_key_struct(void *aeskeys);
    int __stdcall aes_get_keyset_size(void);
    void __stdcall aes_set_even_control_word(void *aeskeys, const uint8_t *cw);
    void __stdcall aes_set_odd_control_word(void *aeskeys, const uint8_t *cw);
    void __stdcall aes_set_control_words(void *aeskeys, const uint8_t *ev, const uint8_t *od);
    void __stdcall aes_decrypt_packtes(void *cluster, aes_keys_t *aeskeys);
    

    So these exports are similar to the FFdecsa functions.

    oscam (-emu) with extened CW API is switching the algos with this enum:

    enum ca_descr_algo {
        CA_ALGO_DVBCSA,
        CA_ALGO_DES,
        CA_ALGO_AES128,
    };
    

    So MDAPI have to add a command that the client is able to switch the algo.
    The DES cw keys are the same size like the CSA cw keys, 8 bytes.
    But AES cw keys are 16 bytes (128 bit). So for this may DVB_SET_CW_ALT can be used?

    How to use:
    Default algo is the CA_ALGO_DVBCSA. If needed oscam will switch the algo to DES or AES.
    Then oscam is sending the cws for this algo.

     
  • PlusPlus

    PlusPlus - 2017-08-28

    Hi, could you please contact me via google hangouts as alexplas@gmail.com

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.