Home | History | Annotate | Download | only in ctr

Lines Matching refs:cipher

23    @param cipher      The index of the cipher desired
27 @param num_rounds Number of rounds in the cipher desired (0 for default)
32 int ctr_start( int cipher,
45 if ((err = cipher_is_valid(cipher)) != CRYPT_OK) {
49 /* setup cipher */
50 if ((err = cipher_descriptor[cipher].setup(key, keylen, num_rounds, &ctr->key)) != CRYPT_OK) {
55 ctr->blocklen = cipher_descriptor[cipher].block_length;
56 ctr->cipher = cipher;
84 return cipher_descriptor[ctr->cipher].ecb_encrypt(ctr->ctr, ctr->pad, &ctr->key);