pike.git / lib / modules / Crypto.pmod / Pipe.pike

version» Context lines:

pike.git/lib/modules/Crypto.pmod/Pipe.pike:1:      #pike __REAL_VERSION__   #pragma strict_types + #require constant(Crypto.CipherState)    - #if constant(.CipherState) -  +    //! A wrapper class that connects several cipher algorithms into one   //! algorithm. E.g. triple DES can be emulated with   //! @expr{Crypto.Pipe(Crypto.DES, Crypto.DES, Crypto.DES)@}.      protected array(.CipherState) ciphers = ({});   protected int _block_size = 1;   protected int(0..1) reversed;      protected int(0..1) is_crypto(object c) {    return c->block_size && c->key_size && c->set_encrypt_key &&
pike.git/lib/modules/Crypto.pmod/Pipe.pike:102: Inside #if constant(.CipherState)
   return this;   }      string(8bit) crypt(string(8bit) data) {    if(sizeof(data)%_block_size)    error("Data size not integral number of blocks.\n");    foreach(ciphers, .CipherState c)    data = c->crypt(data);    return data;   } -  - #else - constant this_program_does_not_exist=1; - #endif +