Home | History | Annotate | Download | only in f8

Lines Matching refs:cipher

23    @param cipher      The index of the cipher desired
29 @param num_rounds Number of rounds in the cipher desired (0 for default)
33 int f8_start( int cipher, const unsigned char *IV,
46 if ((err = cipher_is_valid(cipher)) != CRYPT_OK) {
51 if (cipher_descriptor[cipher].block_length % sizeof(LTC_FAST_TYPE)) {
58 f8->cipher = cipher;
59 f8->blocklen = cipher_descriptor[cipher].block_length;
75 if ((err = cipher_descriptor[cipher].setup(tkey, keylen, num_rounds, &f8->key)) != CRYPT_OK) {
80 if ((err = cipher_descriptor[f8->cipher].ecb_encrypt(IV, f8->MIV, &f8->key)) != CRYPT_OK) {
81 cipher_descriptor[f8->cipher].done(&f8->key);
87 /* terminate this cipher */
88 cipher_descriptor[f8->cipher].done(&f8->key);
90 /* init the cipher */
91 return cipher_descriptor[cipher].setup(key, keylen, num_rounds, &f8->key);