Bug fixes for padding functions + more work on the userencryptionkey