if (i > 0) {
buf.append(" manifest:size=\"");
buf.append(i);
buf.append("\"");
}
EncryptionData enc = fileEntry.getEncryptionData();
if (enc != null) {
buf.append(">\n");
buf.append(" <manifest:encryption-data>\n");
Algorithm alg = enc.getAlgorithm();
if (alg != null) {
buf.append(" <manifest:algorithm");
s = alg.getName();
if (s != null) {
buf.append(" manifest:algorithm-name=\"");
buf.append(encodeXMLAttributes(s));
buf.append("\"");
}
s = alg.getInitializationVector();
if (s != null) {
buf.append(" manifest:initialization-vector=\"");
buf.append(encodeXMLAttributes(s));
buf.append("\"");
}
buf.append("/>\n");
}
KeyDerivation keyDerivation = enc.getKeyDerivation();
if (keyDerivation != null) {
buf.append(" <manifest:key-derivation");
s = keyDerivation.getName();
if (s != null) {
buf.append(" manifest:key-derivation-name=\"");