I don't think bernstein was charged for using the code, but for publishing it.