Home | History | Annotate | Download | only in chc

Lines Matching refs:cipher_idx

24 static int            cipher_idx=UNDEFED_HASH,        /* which cipher */
77 cipher_idx = cipher;
96 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) {
100 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) {
110 if ((err = cipher_descriptor[cipher_idx].setup(buf, cipher_blocksize, 0, key)) != CRYPT_OK) {
116 cipher_descriptor[cipher_idx].ecb_encrypt(buf, md->chc.state, key);
141 if ((err = cipher_descriptor[cipher_idx].setup(md->chc.state, cipher_blocksize, 0, key)) != CRYPT_OK) {
146 cipher_descriptor[cipher_idx].ecb_encrypt(buf, T[0], key);
177 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) {
180 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) {
201 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) {
204 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) {
276 oldhashidx = cipher_idx;