Gets the length of a byte array for the given DOFCredentials.
This represents the way the DOFCredentials would be stored if passed into the DOFCredentials_CreateBytes function.