John M.
John M.

Reputation: 2712

CBC-MAC implementation in C

I'm hoping to do some benchmarking of CBC-MAC in C. Does anyone know of a robust C implementation? I've looked around but CBC-MAC implementations (in almost any language) seem to be quite rare. Does anyone know why beside its rather restrictive (desired) use cases, e.g., fixed-length input.

Thanks

Upvotes: 1

Views: 1326

Answers (1)

Ebbe M. Pedersen
Ebbe M. Pedersen

Reputation: 7528

If you encrypt a message with a block cipher in CBC mode with a zero Initialization Vector, then the last encrypted block, is the CBC-MAC.

So if you have a block cipher implementation that supports CBC mode, you basically have support for CBC-MAC.

Upvotes: 1

Related Questions