OCB: Code


The code on this page is for the current version of the algorithm, OCB 2.0. The code includes an implementation of PMAC 2.0 within it.

Reference C code

The reference C code, written by Ted Krovetz. The code is intended to clarify the algorithm; it is not optimized for speed.


Other code (eg, Java, assembly, or optimized C) will be made available if contributed; if you've written nice code, feel welcome to send it in!


Back to the OCB home page