System.arraycopy(digest, 0, keyValue, 0, keyLength);
}catch(Exception e){
e.printStackTrace();
throw new PdfSecurityException("Exception "+e+" generating encryption key");
}
/**put significant bytes into key*/
byte[] returnKey = new byte[keyLength];
System.arraycopy(keyValue,0, returnKey,0, keyLength);