Home | History | Annotate | Download | only in omac

Lines Matching refs:cipher

24    @param cipher  The index of the desired cipher
29 int omac_init(omac_state *omac, int cipher, const unsigned char *key, unsigned long keylen)
37 if ((err = cipher_is_valid(cipher)) != CRYPT_OK) {
42 if (cipher_descriptor[cipher].block_length % sizeof(LTC_FAST_TYPE)) {
48 switch (cipher_descriptor[cipher].block_length) {
58 if ((err = cipher_descriptor[cipher].setup(key, keylen, 0, &omac->key)) != CRYPT_OK) {
65 zeromem(omac->Lu[0], cipher_descriptor[cipher].block_length);
66 if ((err = cipher_descriptor[cipher].ecb_encrypt(omac->Lu[0], omac->Lu[0], &omac->key)) != CRYPT_OK) {
88 omac->cipher_idx = cipher;