isValidEntropyByteLen static method

bool isValidEntropyByteLen(
  1. int byteLen
)

Validates if the given byte length for entropy corresponds to a valid bit length.

Implementation

static bool isValidEntropyByteLen(int byteLen) {
  return isValidEntropyBitLen(byteLen * 8);
}