SecurityPkg: Calculate the length of the String.