Home | History | Annotate | Download | only in f8

Lines Matching refs:f8

15    F8 implementation, start chain, Tom St Denis
22 Initialize an F8 context
30 @param f8 The F8 state to initialize
36 int num_rounds, symmetric_F8 *f8)
44 LTC_ARGCHK(f8 != NULL);
57 f8->blockcnt = 0;
58 f8->cipher = cipher;
59 f8->blocklen = cipher_descriptor[cipher].block_length;
60 f8->padlen = f8->blocklen;
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);
85 zeromem(f8->IV, sizeof(f8->IV));
88 cipher_descriptor[f8->cipher].done(&f8->key);
91 return cipher_descriptor[cipher].setup(key, keylen, num_rounds, &f8->key);
96 /* $Source: /cvs/libtom/libtomcrypt/src/modes/f8/f8_start.c,v $ */