crypto: Fix data type for len parameter in two typedefs