def pkcs_ilen(n):
 i = 0
 while (n > 0):
  n >>= 8
  i += 1
 return i

def pkcs_ilen ( n ) : i = 0 while ( n > 0 ) : n >>= 8 i += 1 return i
this is a log base 256 which determines the minimum octet string length for unequivocal representation of integer n by pkcs_i2osp .