/** * Decrypt charstring. * @param buffer the given encrypted data * @param n blocksize? * @return the decrypted data */ public static byte[] charstringDecrypt(byte[] buffer, int n) { return decrypt(buffer, 4330, n); }
/** * Encrypt charstring. * @param buffer the given data * @param n blocksize? * @return the encrypted data */ public static byte[] charstringEncrypt(byte[] buffer, int n) { return encrypt(buffer, 4330, n); }
byte[] eexecBytes = Type1FontUtil.eexecEncrypt(eexecOutput.getBytes()); output.write(eexecBytes);
String mapping = font.getCharset().getNameForGID(gid); byte[] type1Bytes = formatter.format(font.getType1CharString(mapping).getType1Sequence()); byte[] charstringBytes = Type1FontUtil.charstringEncrypt(type1Bytes, 4); output.print("/" + mapping + " " + charstringBytes.length + " RD "); output.write(charstringBytes);
/** * Encrypt eexec. * @param buffer the given data * @return the encrypted data */ public static byte[] eexecEncrypt(byte[] buffer) { return encrypt(buffer, 55665, 4); }
/** * Decrypt eexec. * @param buffer the given encrypted data * @return the decrypted data */ public static byte[] eexecDecrypt(byte[] buffer) { return decrypt(buffer, 55665, 4); }
/** * Encrypt eexec. * @param buffer the given data * @return the encrypted data */ public static byte[] eexecEncrypt(byte[] buffer) { return encrypt(buffer, 55665, 4); }
/** * Decrypt eexec. * @param buffer the given encrypted data * @return the decrypted data */ public static byte[] eexecDecrypt(byte[] buffer) { return decrypt(buffer, 55665, 4); }
/** * Encrypt charstring. * @param buffer the given data * @param n blocksize? * @return the encrypted data */ public static byte[] charstringEncrypt(byte[] buffer, int n) { return encrypt(buffer, 4330, n); }
/** * Decrypt charstring. * @param buffer the given encrypted data * @param n blocksize? * @return the decrypted data */ public static byte[] charstringDecrypt(byte[] buffer, int n) { return decrypt(buffer, 4330, n); }
/** * Encrypt eexec. * @param buffer the given data * @return the encrypted data */ public static byte[] eexecEncrypt(byte[] buffer) { return encrypt(buffer, 55665, 4); }
/** * Decrypt eexec. * @param buffer the given encrypted data * @return the decrypted data */ public static byte[] eexecDecrypt(byte[] buffer) { return decrypt(buffer, 55665, 4); }
/** * Encrypt charstring. * @param buffer the given data * @param n blocksize? * @return the encrypted data */ public static byte[] charstringEncrypt(byte[] buffer, int n) { return encrypt(buffer, 4330, n); }
/** * Decrypt charstring. * @param buffer the given encrypted data * @param n blocksize? * @return the decrypted data */ public static byte[] charstringDecrypt(byte[] buffer, int n) { return decrypt(buffer, 4330, n); }