AES encryption with linux 64

Hello
We are using the AES encryption algorithm as one of our systems. To be able to use the AES did the installation of files and local_policy.jar US_export_policy.jar the JVM.
On Windows and Linux 32-bit func, but did not work on Linux 64. returns the following error message: java.security.InvalidKeyException: Invalid AES key length: 31 bytes.
The policys above are different JDK for Linux 64?
What may be happening?

I would suggest that you have not transferred your key correctly. You should note that keys are binary data and Strings should not be used to store binary data. It is possible that since you are using ASCII the two systems behave differently when converting a String to ASCII bytes. It would not surprise me if characters greater than 0x7f (which are not part of the ASCII set) are converted differently. Maybe somebody fixed a bug. Dump out in hex the bytes of your key created from key.getBytes("ASCII") in both systems and compare the two. I bet they are different.
P.S. Please enclose the code in a pair of tags when posting code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Can't open a specific wesite with AES encryption on

    WRT54GX2 router  set up with WPA and AES encryption, will not open a website that I know is working (it's my ISP, webmail site).  When I change to TKIP the site opens normally, but my wireless printer then drops off the network.  Any one have a fix?

    I agree with toomanydonuts suggestion. You can try the steps which toomanydonuts has mentioned and i think that will make your computer and printer work wirelessly.

  • Accept Certificate when connecting to an SSID with WPA2-AES encryption.

    When I try to Connect my Iphone to an SSID with WPA2-AES encryption,i need to accept the certificate and gets authenticated.When i switchover to different SSID and reconnect again to the same WPA2-AES SSID i do not get the Certificate accept page.
    When i click on the Forget Network and deisconnect from the SSID and re-connect again,i will be prompted to acept the certificate.Is this a normal behavior in Iphone.
    Any suggestions would be greatly appreciated.
    Thanks and regards,
    Sendhil Balakrishnan

    Hi
    with the config i have i seem to be able to login using either tkip or aes, but i don't think i have got mixed mode configured on the AP so it should only accept WPA2-AES encryption but it also accepts TKIP making me believe something is configured incorrectly.
    should i change anything in the config on the AP to only allow WPA2-AES encryption?
    many thanks
    rogier

  • HLS Dynamic Encryption with AES 128 & Safari Support

    In the documentation ( http://msdn.microsoft.com/library/azure/dn783457.aspx/ ),
    to play the video, it says client need to "Request the key from the key delivery service" .
    But I don't know how to add Authorization header when Safari requests to key service URI.
    How can I add some headers to key request? or Is there other solutions to play?

    Hi,
    If you are using Token-authentication for Safari native playback, it is not so straightforward to put in Token in the authentication header. We are not yet supporting it yet. However, if you use Open Auth, Safari can play back AES encrypted HLS natively
    without any extra step.
    I will keep you posted on the solution. 
    Cheers,
    Mingfei Yan 

  • IPad: Open AES-encrypted zip files?

    Is there an app which allows one to open zip files that were encrypted with AES-128 or AES-256?  There was a discussion last year (https://discussions.apple.com/message/12429143) saying that there were none at the time, but I'm hoping for some progress since then.  GoodReader, Filer LIte, and USB Disk Pro all failed to read files encrypted with either algorithm.  Thanks,
    John

    Is there an app which allows one to open zip files that were encrypted with AES-128 or AES-256?  There was a discussion last year (https://discussions.apple.com/message/12429143) saying that there were none at the time, but I'm hoping for some progress since then.  GoodReader, Filer LIte, and USB Disk Pro all failed to read files encrypted with either algorithm.  Thanks,
    John

  • Invalid stream header Exception - AES PBE with SealedObject

    I am trying to do an PBE encryption with AES algorithm and SunJCE provider, using the SealedObject class to encrypt/decrypt the data...
    And Im still getting the "invalid stream header" exception. Ive searched this forum, readed lots of posts, examples etc...
    Here is my code for encryption (i collected it from more classes, so hopefully I didnt forget anything...):
        //assume that INPUT_STREAM is the source of plaintext
        //and OUTPUT_STREAM is the stream to save the ciphertext data to
        char[] pass; //assume initialized password
        SecureRandom r = new SecureRandom();
        byte[] salt = new byte[20];
        r.nextBytes(salt);
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");
        Cipher ciph = Cipher.getInstance("AES/CTR/NoPadding");
        ciph.init(Cipher.ENCRYPT_MODE, key);
        ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
        int ch;
        while ((ch = INPUT_STREAM.read()) >= 0) {
          byteOut.write(ch);
        SealedObject sealed = new SealedObject(byteOut.toByteArray(), ciph);
        BufferedOutputStream bufOut = new BufferedOutputStream(OUTPUTSTREAM);
        ObjectOutputStream objOut = new ObjectOutputStream(bufOut);   
        objOut.writeObject(sealed);
        objOut.close();
      }And here is my code for decrypting:
        //assume that INPUT_STREAM is the source of ciphertext
        //and OUTPUT_STREAM is the stream to save the plaintext data to
        char[] pass; //assume initialized password
        SecureRandom r = new SecureRandom();
        byte[] salt = new byte[20];
        r.nextBytes(salt);
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");
        BufferedInputStream bufIn = new BufferedInputStream(INPUT_STREAM);    //MARK #1
        ObjectInputStream objIn = new ObjectInputStream(bufIn);   
        SealedObject sealed = (SealedObject) objIn.readObject();   
        byte[] unsealed = (byte[]) sealed.getObject(key);          //MARK #2
        ByteArrayInputStream byteIn = new ByteArrayInputStream(unsealed);
        int ch;
        while ((ch = byteIn.read()) >= 0) {
          OUTPUT_STREAM.write(ch);
        OUTPUT_STREAM.close();Everytime I run it, it gives me this exception:
    Exception in thread "main" java.io.StreamCorruptedException: invalid stream header: B559ADBE
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
         at javax.crypto.SunJCE_i.<init>(DashoA13*..)
         at javax.crypto.SealedObject.unseal(DashoA13*..)
         at javax.crypto.SealedObject.getObject(DashoA13*..)
         at oopsifrovanie.engine.ItemToCrypt.decrypt(ItemToCrypt.java:91)  //MARKED AS #2
         at oopsifrovanie.Main.main(Main.java:37)    //The class with all code below MARK #1I've also found out that the hashCode of the generated "key" object in the decrypting routine is not the same as the hashCode of the "key" object in the ecrypting routine. Can this be a problem? I assume that maybe yes... but don't know what to do...
    When I delete the r.nextBytes(salt); from both routines, the hashCodes are the same, but that's not the thing I want to do...
    I think, that the source of problem can be this part of code (generating the key):
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");But I derived it from posts like: [http://forums.sun.com/thread.jspa?threadID=5307763] and [http://stackoverflow.com/questions/992019/java-256bit-aes-encryption] and they claimed it's working there...
    Is there anyone that can help me?
    Btw, I don't want to use any other providers like Bouncycastle etc. and I want to use PBE with AES and also SealedObject to store the parameters of encryption...

    Yes, it really uses only one Cipher object, but it does decoding in a little nonstandard (not often used) way, by using the SealedObject class and its getObject(Key key) method. You can check these links for documentation: [http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#SealedObject] and [http://java.sun.com/javase/6/docs/api/javax/crypto/SealedObject.html] So the question is, why it doesn't work also with the AES routines, because it should.
    Btw, according to [http://java.sun.com/javase/6/docs/technotes/guides/security/SunProviders.html#SunJCEProvider] PBEWithSHA1AndDESede/CBC/PKCS5Padding is a valid JCE algorithm for the Cipher class.
    Firstly, I was generating the key for AES enc./decryption this way and it was working:
    char[] pass; //assume initialized password
    byte[] bpass = new byte[pass.length];
        for (int i = 0; i < pass.length; i++) {
          bpass[i] = (byte) pass;
    SecretKeySpec key = new SecretKeySpec(bpass, "AES");
    But I think, that it really wasn't secure, so I wanted to build a key from the password using the PBE.
    Maybe there's also a way how to do this part of my AES PBE algorithm: *KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);* manually (with my own algorithm), but I dont know how to do it and I'd like it to be really secure.
    Btw, thanks for your will to help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Install HRCS 9.0 R5 with Linux Issue: upgrade Database HRCS 9.0 from PT8.52 to PT8.53

    Folks,
    Hello. I have been installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and client machine is Windows XP.  My internet architecture is WebLogic11g/Tuxedo11g/OracleDatabase 11gR1. Peopletools 8.53 runs correctly in browser.
    In Oracle Linux 5.10 Database Server machine, I run the scripts "createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql" one by one. Then I use Data Mover to load data from Windows XP into Oracle Linux 5.10 DB instance HRCS90. The Data Mover script hrcs90ora.dms completes successfully in Windows XP. Configuration Manager is set up correctly.  But when I login into Application Designer, I cannot login and get the message as below:
    "Security Table Manager (Get): The database is at release 8.52.  The PeopleTools being run require databases at release 8.53."
    I have been following the document http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf to upgrade HCM and Human Resources 9.0 Revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. I have been following chapter 4 task by task to do. Actually, I have run 4 scripts into HRCS90 as below:
    Task 4-3-5: run rel853.sql at SQL> in Linux.
    Task 4-3-6: run grant.sql at SQL> in Linux.
    Task 4-5-3: run ddlora.dms in Windows XP Data Mover into HRCS90.
    Task 4-6: run msgtlsupg.dms in Windows XP Data Mover into HRCS90.
    Then need to run Task 4-7 to copy project ppltls84cur Project in Application Designer. When login into Application Designer with Database HRCS90 and UserID and pwd PS, I get the same error message as below:
    "The database is at release 8.52. The PeopleTools being run require Database at release 8.53."
    Application Designer is supposed to login by Task 4-7 to copy projects but it cannot. I have tried to fing out what's wrong as below:
    In task 4-1-3: I cannot run script dbtsfix.sqr in Linux and Windows XP.
    In task 4-1-9: script ptupgibdel.sql does not have the string "End of PT8.53". There is no script ptupgibdel853.sql to run.
    In task 4-3-6: when run script grant.sql, table PSSTATUS and PSACCESSPRFL don't exist. There is only PSOPRDEFN table.
    I continue to do task by task in chapter 4 until task 4-27 that's the end, but Application Designer still cannot login. All of Application Engine Programs and SQR Programs cannot run.
    My questions are:
    First, does Oracle Database HRCS90 has table PSOPRDEFN only without table PSSTATUS and PSACCESSPRFL ?
    Second, what's the error by task 4-7 when Application Designer still cannot login ?
    Third, why Application Designer still cannot login a the end of doing chapter 4 task 4-27 ? How to solve the issue ?
    Thanks.
    Thanks.

    I'm not quite sure what you are missing, but it looks like you missed a script which could cause problems.  You need to look through your logs for errors. Are you running rel853 as the AccessID user?  I don't know how you would trash PSSTATUS in this process.
    You don't mention running this.
    Task 4-3-2:  Creating Tablespaces
    This step runs the PTDDLUPG script, which builds new tablespaces as part of the upgrade to the new PeopleSoft release.
    It creates tablespace PSIMAGE2, which doesn't exist in the datamover load you did.  Oracle moves and puts around 208 tables here when you run rel853 from what I see.
    The first line of rel853 is
    UPDATE PSSTATUS SET TOOLSREL='8.53',
                      LASTREFRESHDTTM = SYSDATE
    This is what changes the tools release, sometimes people just run this one update to gain quick and dirty access to a different version.
    I pulled this download and ran through it myself without incident doing all the steps you say, adding in 4-3-2 which you seemed to have skipped.  I built a system database.
    My hcengs.log shows
    Importing  PSSTATUS
    Creating Table  PSSTATUS
    Import  PSSTATUS  1
    Building required indexes for PSSTATUS
    Updating statistics for PSSTATUS
    Records remaining: 7686
    After import, PSSTATUS is
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.52
    After running rel853n it's now
    SQL> COMMIT
      2  ;
    Commit complete.
    SQL> SPOOL OFF
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.53
    I ran the other 3 quick scripts.  Not sure if it was necessary, but I reset the passwords and re-encrypted them with the new 8.53 datamover for the new salted encryption and fired up app designer.  It works.  By the way, you should probably run rel853n, it utilizes "newer" (for PeopleSoft that is) data-types than just rel853.sql that were delivered with the 9.0 application line.  Since this is a new 9.0 based app build it should be used.

  • Install HRCS 9.0 R5 with Linux Issue: upgrade HRCS 9.0 from PT8.52 to PT8.53

    Folks,
    Hello. I have been installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and client machine is Windows XP.  My internet architecture is WebLogic11g/Tuxedo11g/OracleDatabase 11gR1. Peopletools 8.53 runs correctly in browser.
    In Oracle Linux 5.10 Database Server machine, I run the scripts "createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql" one by one. Then I use Data Mover to load data from Windows XP into Oracle Linux 5.10 DB instance HRCS90. The Data Mover script hrcs90ora.dms completes successfully in Windows XP. Configuration Manager is set up correctly.  But when I login into Application Designer, I cannot login and get the message as below:
    "Security Table Manager (Get): The database is at release 8.52.  The PeopleTools being run require databases at release 8.53."
    I have been following the document http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf  to upgrade HCM and Human Resources 9.0 Revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. I have been following chapter 4 task by task to do. Actually, I have run 4 scripts into HRCS90 as below:
    Task 4-3-5: run rel853.sql at SQL> in Linux.
    Task 4-3-6: run grant.sql at SQL> in Linux.
    Task 4-5-3: run ddlora.dms in Windows XP Data Mover into HRCS90.
    Task 4-6: run msgtlsupg.dms in Windows XP Data Mover into HRCS90.
    Then need to run Task 4-7 to copy project ppltls84cur Project in Application Designer. When login into Application Designer with Database HRCS90 and Username PSADMIN, I get the same error message as below:
    "The database is at release 8.52. The PeopleTools being run require Database at release 8.53."
    Application Designer is supposed to login by Task 4-7 to copy projects but it cannot. I have tried to fing out what's wrong as below:
    In task 4-1-3: I cannot run script dbtsfix.sqr in Linux and Windows XP.
    In task 4-1-9: script ptupgibdel.sql does not have the string "End of PT8.53". There is no script ptupgibdel853.sql to run.
    In task 4-3-6: when run script grant.sql, table PSSTATUS and PSACCESSPRFL don't exist. There is only PSOPRDEFN table.
    I continue to do task by task in chapter 4 and chapter 5, but Application Designer still cannot login and all of Application Engine Programs cannot run. Windows XP cannot run SQR programs. Tuxedo Application Server cannot boot in Linux. Both Application Designer and Tuxedo Application Server gets the same error message: "The database is at release 8.52. The PeopleTools being run require Database at release 8.53."
    My questions are:
    First, does Oracle Database HRCS90 has table PSOPRDEFN only without table PSSTATUS and PSACCESSPRFL ?
    Second, what's the error by task 4-7 when Application Designer still cannot login ?
    Third, why Application Designer still cannot login and get the same error message after finish doing chapter 4 and chapter 5 ? How to solve the issue ?
    Thanks.

    I'm not quite sure what you are missing, but it looks like you missed a script which could cause problems.  You need to look through your logs for errors. Are you running rel853 as the AccessID user?  I don't know how you would trash PSSTATUS in this process.
    You don't mention running this.
    Task 4-3-2:  Creating Tablespaces
    This step runs the PTDDLUPG script, which builds new tablespaces as part of the upgrade to the new PeopleSoft release.
    It creates tablespace PSIMAGE2, which doesn't exist in the datamover load you did.  Oracle moves and puts around 208 tables here when you run rel853 from what I see.
    The first line of rel853 is
    UPDATE PSSTATUS SET TOOLSREL='8.53',
                      LASTREFRESHDTTM = SYSDATE
    This is what changes the tools release, sometimes people just run this one update to gain quick and dirty access to a different version.
    I pulled this download and ran through it myself without incident doing all the steps you say, adding in 4-3-2 which you seemed to have skipped.  I built a system database.
    My hcengs.log shows
    Importing  PSSTATUS
    Creating Table  PSSTATUS
    Import  PSSTATUS  1
    Building required indexes for PSSTATUS
    Updating statistics for PSSTATUS
    Records remaining: 7686
    After import, PSSTATUS is
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.52
    After running rel853n it's now
    SQL> COMMIT
      2  ;
    Commit complete.
    SQL> SPOOL OFF
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.53
    I ran the other 3 quick scripts.  Not sure if it was necessary, but I reset the passwords and re-encrypted them with the new 8.53 datamover for the new salted encryption and fired up app designer.  It works.  By the way, you should probably run rel853n, it utilizes "newer" (for PeopleSoft that is) data-types than just rel853.sql that were delivered with the 9.0 application line.  Since this is a new 9.0 based app build it should be used.

  • Install HRCS 9.0 R5 with Linux Issue: Upgrade HRCS 9.0 Database PT8.52 to PT8.53

    Folks,
    Hello. I have been installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and client machine is Windows XP.  My internet architecture is WebLogic11g/Tuxedo11g/OracleDatabase 11gR1. Peopletools 8.53 runs correctly in browser.
    In Oracle Linux 5.10 Database Server machine, I run the scripts "createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql" one by one. Then I use Data Mover to load data from Windows XP into Oracle Linux 5.10 DB instance HRCS90. The Data Mover script hrcs90ora.dms completes successfully in Windows XP. Configuration Manager is set up correctly.  But when I login into Application Designer, I cannot login and get the message as below:
    "Security Table Manager (Get): The database is at release 8.52.  The PeopleTools being run require databases at release 8.53."
    I have been following the document http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf  to upgrade HCM and Human Resources 9.0 Revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. I have been following chapter 4 task by task to do. Actually, I have run 4 scripts into HRCS90 as below:
    Task 4-3-5: run rel853.sql at SQL> in Linux.
    Task 4-3-6: run grant.sql at SQL> in Linux.
    Task 4-5-3: run ddlora.dms in Windows XP Data Mover into HRCS90.
    Task 4-6: run msgtlsupg.dms in Windows XP Data Mover into HRCS90.
    Then need to run Task 4-7 to copy project ppltls84cur Project in Application Designer. When login into Application Designer with Database HRCS90 and UserID and pwd PS, I get the same error message as below:
    "The database is at release 8.52. The PeopleTools being run require Database at release 8.53."
    Application Designer is supposed to login by Task 4-7 to copy projects but it cannot. I have tried to fing out what's wrong as below:
    In task 4-1-3: I cannot run script dbtsfix.sqr in Linux and Windows XP.
    In task 4-1-9: script ptupgibdel.sql does not have the string "End of PT8.53". There is no script ptupgibdel853.sql to run.
    In task 4-3-6: when run script grant.sql, table PSSTATUS and PSACCESSPRFL don't exist. There is only PSOPRDEFN table.
    My questions are:
    First, does Oracle Database HRCS90 has table PSOPRDEFN only without table PSSTATUS and PSACCESSPRFL ?
    Second, what's the error by task 4-7 when Application Designer still cannot login ?
    Thanks.

    I'm not quite sure what you are missing, but it looks like you missed a script which could cause problems.  You need to look through your logs for errors. Are you running rel853 as the AccessID user?  I don't know how you would trash PSSTATUS in this process.
    You don't mention running this.
    Task 4-3-2:  Creating Tablespaces
    This step runs the PTDDLUPG script, which builds new tablespaces as part of the upgrade to the new PeopleSoft release.
    It creates tablespace PSIMAGE2, which doesn't exist in the datamover load you did.  Oracle moves and puts around 208 tables here when you run rel853 from what I see.
    The first line of rel853 is
    UPDATE PSSTATUS SET TOOLSREL='8.53',
                      LASTREFRESHDTTM = SYSDATE
    This is what changes the tools release, sometimes people just run this one update to gain quick and dirty access to a different version.
    I pulled this download and ran through it myself without incident doing all the steps you say, adding in 4-3-2 which you seemed to have skipped.  I built a system database.
    My hcengs.log shows
    Importing  PSSTATUS
    Creating Table  PSSTATUS
    Import  PSSTATUS  1
    Building required indexes for PSSTATUS
    Updating statistics for PSSTATUS
    Records remaining: 7686
    After import, PSSTATUS is
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.52
    After running rel853n it's now
    SQL> COMMIT
      2  ;
    Commit complete.
    SQL> SPOOL OFF
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.53
    I ran the other 3 quick scripts.  Not sure if it was necessary, but I reset the passwords and re-encrypted them with the new 8.53 datamover for the new salted encryption and fired up app designer.  It works.  By the way, you should probably run rel853n, it utilizes "newer" (for PeopleSoft that is) data-types than just rel853.sql that were delivered with the 9.0 application line.  Since this is a new 9.0 based app build it should be used.

  • Install HRCS 9.0 R5 with Linux Issue: upgrade HRCS 9.0 PT8.52 to PT8.53

    Folks,
    Hello. I have been installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and client machine is Windows XP.  My internet architecture is WebLogic11g/Tuxedo11g/OracleDatabase 11gR1. Peopletools 8.53 runs correctly in browser.
    In Oracle Linux 5.10 Database Server machine, I run the scripts "createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql" one by one. Then I use Data Mover to load data from Windows XP into Oracle Linux 5.10 DB instance HRCS90. The Data Mover script hrcs90ora.dms completes successfully in Windows XP. Configuration Manager is set up correctly.  But when I login into Application Designer, I cannot login and get the message as below:
    "Security Table Manager (Get): The database is at release 8.52.  The PeopleTools being run require databases at release 8.53."
    I have been following the document http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf to upgrade HCM and Human Resources 9.0 Revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. I have been following chapter 4 task by task to do. Actually, I have run 4 scripts into HRCS90 as below:
    Task 4-3-5: run rel853.sql at SQL> in Linux.
    Task 4-3-6: run grant.sql at SQL> in Linux.
    Task 4-5-3: run ddlora.dms in Windows XP Data Mover into HRCS90.
    Task 4-6: run msgtlsupg.dms in Windows XP Data Mover into HRCS90.
    Then need to run Task 4-7 to copy project ppltls84cur Project in Application Designer. When login into Application Designer with Database HRCS90 and UserID and pwd PS, I get the same error message as below:
    "The database is at release 8.52. The PeopleTools being run require Database at release 8.53."
    Application Designer is supposed to login by Task 4-7 to copy projects but it cannot. I have tried to fing out what's wrong as below:
    In task 4-1-3: I cannot run script dbtsfix.sqr in Linux and Windows XP.
    In task 4-1-9: script ptupgibdel.sql does not have the string "End of PT8.53". There is no script ptupgibdel853.sql to run.
    In task 4-3-6: when run script grant.sql, table PSSTATUS and PSACCESSPRFL don't exist. There is only PSOPRDEFN table.
    My questions are:
    First, does Oracle Database HRCS90 has table PSOPRDEFN only without table PSSTATUS and PSACCESSPRFL ?
    Second, what's the error by task 4-7 when Application Designer still cannot login ?
    Thanks.

    I'm not quite sure what you are missing, but it looks like you missed a script which could cause problems.  You need to look through your logs for errors. Are you running rel853 as the AccessID user?  I don't know how you would trash PSSTATUS in this process.
    You don't mention running this.
    Task 4-3-2:  Creating Tablespaces
    This step runs the PTDDLUPG script, which builds new tablespaces as part of the upgrade to the new PeopleSoft release.
    It creates tablespace PSIMAGE2, which doesn't exist in the datamover load you did.  Oracle moves and puts around 208 tables here when you run rel853 from what I see.
    The first line of rel853 is
    UPDATE PSSTATUS SET TOOLSREL='8.53',
                      LASTREFRESHDTTM = SYSDATE
    This is what changes the tools release, sometimes people just run this one update to gain quick and dirty access to a different version.
    I pulled this download and ran through it myself without incident doing all the steps you say, adding in 4-3-2 which you seemed to have skipped.  I built a system database.
    My hcengs.log shows
    Importing  PSSTATUS
    Creating Table  PSSTATUS
    Import  PSSTATUS  1
    Building required indexes for PSSTATUS
    Updating statistics for PSSTATUS
    Records remaining: 7686
    After import, PSSTATUS is
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.52
    After running rel853n it's now
    SQL> COMMIT
      2  ;
    Commit complete.
    SQL> SPOOL OFF
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.53
    I ran the other 3 quick scripts.  Not sure if it was necessary, but I reset the passwords and re-encrypted them with the new 8.53 datamover for the new salted encryption and fired up app designer.  It works.  By the way, you should probably run rel853n, it utilizes "newer" (for PeopleSoft that is) data-types than just rel853.sql that were delivered with the 9.0 application line.  Since this is a new 9.0 based app build it should be used.

  • Loop-aes/mount with gpg-agent

    Hey,
    this is not really an Arch related problem, but as this is the only forum I'm using, I'll try it here. The system I'm testing on is Debian etch. loop-aes and gpg-agent alone work fine, when I decrypt data with gpg, pinentry is called and gpg-agent stores the passphrase. I can encrypt/decrypt partitions with loop-aes using a keyfile etc. Now the problem: to decrypt encrypted partitions I want to use a keyfile which is encrypted with gpg. The fstab entry is like this:
    /dev/hda10 /yyy ext3 defaults,loop=/dev/loop4,encryption=AES128,gpgkey=/root/key.asc 0 0
    When I now mount /yyy, the system asks for the passphrase, but not with pinentry. So gpg-agent doesn't store the passphrase. Any ideas?

    Hey,
    this is not really an Arch related problem, but as this is the only forum I'm using, I'll try it here. The system I'm testing on is Debian etch. loop-aes and gpg-agent alone work fine, when I decrypt data with gpg, pinentry is called and gpg-agent stores the passphrase. I can encrypt/decrypt partitions with loop-aes using a keyfile etc. Now the problem: to decrypt encrypted partitions I want to use a keyfile which is encrypted with gpg. The fstab entry is like this:
    /dev/hda10 /yyy ext3 defaults,loop=/dev/loop4,encryption=AES128,gpgkey=/root/key.asc 0 0
    When I now mount /yyy, the system asks for the passphrase, but not with pinentry. So gpg-agent doesn't store the passphrase. Any ideas?

  • WPA2 Aes encryption on cisco 1121G AP

    hi
    i wanted to increase the security on my 1121G accesspoint by enabling wpa2 with aes encryption. in a test environment i set this up and i configured my wireless client to connect, my wireless client (ibm thinkpad t42p with 11a/b/g Wireless LAN Mini PCI Adapter II has the ability to either select WPA or WPA2 and whether you use TKIP or AES. i selected WPA2 and AES enter the encryption key which i had entered on the AP and i connected,
    i change the settings on the client to WPA and TKIP and entered the same encryption key and i managed to connect as well, which puzzles me, when i enter an incorrect encryption key it won't associate.
    is this normal behaviour or do you think i have configured something incorrectly on the 1121G AP?
    i have attached my config and have removed some personal data.
    many thanks
    rogier

    i have finally figured it out, it is the windows client or mac clients being very smart, if you configure your windows client to use WPA instead of WPA2 and select TKIP instead of AES encryption somehow it figures out this is incorrect and automatically sets the WPA to WPA2 settings and changes TKIP to AES encryption, i am amazed, i finally figured it out when a windows machine which did not have the windows patch to allow it to connect to WPA2 could not connect, only after installing the WPA2 patch would it connect. in the AP log it always showed as logging in with the WPA2 EAS encryption.
    i guess windows xp is a bit smarter than i originally thought

  • AES Encryption for Windows Phone

    Hi,
    We are developing a windows phone app and the same app is also being developed in Android and IOS. All three platforms are using a JSON web service for data access. Parameters to be passed are encrypted using AES algorithm.
    The web service uses the Encryption and Decryption as shown in the following link : 
    https://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged(v=vs.110).aspx
    The same is Encryption is available in IOS and Android and working fine.
    I am unable to achieve the same encryption in Windows Phone as System.Security.Cryptography is not available in Windows Phone. I did browse around and found a few alternatives as shown below but i am not getting the desired result i.e. Encrypted data is
    not the same and hence Decryption is not giving the same result in server side.
    public static byte[] Encrypt(string plainText, string pw, string salt)
    IBuffer pwBuffer = CryptographicBuffer.ConvertStringToBinary(pw, BinaryStringEncoding.Utf8);
    IBuffer saltBuffer = CryptographicBuffer.ConvertStringToBinary(salt, BinaryStringEncoding.Utf16LE);
    IBuffer plainBuffer = CryptographicBuffer.ConvertStringToBinary(plainText, BinaryStringEncoding.Utf16LE);
    // Derive key material for password size 32 bytes for AES256 algorithm
    KeyDerivationAlgorithmProvider keyDerivationProvider = Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider.OpenAlgorithm("PBKDF2_SHA1");
    // using salt and 1000 iterations
    KeyDerivationParameters pbkdf2Parms = KeyDerivationParameters.BuildForPbkdf2(saltBuffer, 1000);
    // create a key based on original key and derivation parmaters
    CryptographicKey keyOriginal = keyDerivationProvider.CreateKey(pwBuffer);
    IBuffer keyMaterial = CryptographicEngine.DeriveKeyMaterial(keyOriginal, pbkdf2Parms, 32);
    CryptographicKey derivedPwKey = keyDerivationProvider.CreateKey(pwBuffer);
    // derive buffer to be used for encryption salt from derived password key
    IBuffer saltMaterial = CryptographicEngine.DeriveKeyMaterial(derivedPwKey, pbkdf2Parms, 16);
    // display the buffers – because KeyDerivationProvider always gets cleared after each use, they are very similar unforunately
    string keyMaterialString = CryptographicBuffer.EncodeToBase64String(keyMaterial);
    string saltMaterialString = CryptographicBuffer.EncodeToBase64String(saltMaterial);
    SymmetricKeyAlgorithmProvider symProvider = SymmetricKeyAlgorithmProvider.OpenAlgorithm("AES_CBC_PKCS7");
    // create symmetric key from derived password key
    CryptographicKey symmKey = symProvider.CreateSymmetricKey(keyMaterial);
    // encrypt data buffer using symmetric key and derived salt material
    IBuffer resultBuffer = CryptographicEngine.Encrypt(symmKey, plainBuffer, saltMaterial);
    byte[] result;
    CryptographicBuffer.CopyToByteArray(resultBuffer, out result);
    return result;
    public static string Decrypt(byte[] encryptedData, string pw, string salt)
    IBuffer pwBuffer = CryptographicBuffer.ConvertStringToBinary(pw, BinaryStringEncoding.Utf8);
    IBuffer saltBuffer = CryptographicBuffer.ConvertStringToBinary(salt, BinaryStringEncoding.Utf16LE);
    IBuffer cipherBuffer = CryptographicBuffer.CreateFromByteArray(encryptedData);
    // Derive key material for password size 32 bytes for AES256 algorithm
    KeyDerivationAlgorithmProvider keyDerivationProvider = Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider.OpenAlgorithm("PBKDF2_SHA1");
    // using salt and 1000 iterations
    KeyDerivationParameters pbkdf2Parms = KeyDerivationParameters.BuildForPbkdf2(saltBuffer, 1000);
    // create a key based on original key and derivation parmaters
    CryptographicKey keyOriginal = keyDerivationProvider.CreateKey(pwBuffer);
    IBuffer keyMaterial = CryptographicEngine.DeriveKeyMaterial(keyOriginal, pbkdf2Parms, 32);
    CryptographicKey derivedPwKey = keyDerivationProvider.CreateKey(pwBuffer);
    // derive buffer to be used for encryption salt from derived password key
    IBuffer saltMaterial = CryptographicEngine.DeriveKeyMaterial(derivedPwKey, pbkdf2Parms, 16);
    // display the keys – because KeyDerivationProvider always gets cleared after each use, they are very similar unforunately
    string keyMaterialString = CryptographicBuffer.EncodeToBase64String(keyMaterial);
    string saltMaterialString = CryptographicBuffer.EncodeToBase64String(saltMaterial);
    SymmetricKeyAlgorithmProvider symProvider = SymmetricKeyAlgorithmProvider.OpenAlgorithm("AES_CBC_PKCS7");
    // create symmetric key from derived password material
    CryptographicKey symmKey = symProvider.CreateSymmetricKey(keyMaterial);
    // encrypt data buffer using symmetric key and derived salt material
    IBuffer resultBuffer = CryptographicEngine.Decrypt(symmKey, cipherBuffer, saltMaterial);
    string result = CryptographicBuffer.ConvertBinaryToString(BinaryStringEncoding.Utf16LE, resultBuffer);
    return result;
    public static string AES_Encrypt(string input, string pass)
    SymmetricKeyAlgorithmProvider SAP = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesEcbPkcs7);
    CryptographicKey AES;
    HashAlgorithmProvider HAP = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Md5);
    CryptographicHash Hash_AES = HAP.CreateHash();
    string encrypted = "";
    try
    byte[] hash = new byte[32];
    Hash_AES.Append(CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(pass)));
    byte[] temp;
    CryptographicBuffer.CopyToByteArray(Hash_AES.GetValueAndReset(), out temp);
    Array.Copy(temp, 0, hash, 0, 16);
    Array.Copy(temp, 0, hash, 15, 16);
    AES = SAP.CreateSymmetricKey(CryptographicBuffer.CreateFromByteArray(hash));
    IBuffer Buffer = CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(input));
    encrypted = CryptographicBuffer.EncodeToBase64String(CryptographicEngine.Encrypt(AES, Buffer, null));
    return encrypted;
    catch (Exception ex)
    return null;
    public static string AES_Decrypt(string input, string pass)
    SymmetricKeyAlgorithmProvider SAP = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesEcbPkcs7);
    CryptographicKey AES;
    HashAlgorithmProvider HAP = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Md5);
    CryptographicHash Hash_AES = HAP.CreateHash();
    string decrypted = "";
    try
    byte[] hash = new byte[32];
    Hash_AES.Append(CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(pass)));
    byte[] temp;
    CryptographicBuffer.CopyToByteArray(Hash_AES.GetValueAndReset(), out temp);
    Array.Copy(temp, 0, hash, 0, 16);
    Array.Copy(temp, 0, hash, 15, 16);
    AES = SAP.CreateSymmetricKey(CryptographicBuffer.CreateFromByteArray(hash));
    IBuffer Buffer = CryptographicBuffer.DecodeFromBase64String(input);
    byte[] Decrypted;
    CryptographicBuffer.CopyToByteArray(CryptographicEngine.Decrypt(AES, Buffer, null), out Decrypted);
    decrypted = System.Text.Encoding.UTF8.GetString(Decrypted, 0, Decrypted.Length);
    return decrypted;
    catch (Exception ex)
    return null;
    Both methods shown above are not giving the same result.
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Hex : 356F65678C82C137BDBB2A2C8F824A68
    Encrypted Text : 5oegåÇ¡7Ωª*,èÇJh
    Request you to please suggest alternative to obtain the same AES Encryption using a Key and IV in Windows Phone.
    Thanks in advance.
    Regards,
    Vinay D

    Hi,
    The encryption and decryption in : http://dotnetspeak.com/2011/11/encrypting-and-decrypting-data-in-winrt-2 is
    not giving me the desired result.
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Encrypted Text : 5oegåÇ¡7Ωª*,èÇJh
    But what i am getting from the above link is : 
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Encrypted Text : NW9lZ4yCwTe9uyosj4JKaA==
    As u can see the encrypted string is not the same and hence i would get a different decrypt string on the server.
    I cannot change the server as it is in production and working with Android and IOS.
    Regards,
    Vinay D

  • WPA2 AES encryption Key Sizes

    Hi all,
    Just looking at the AES standard, or wiki of it
    http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
    It mentions that AES supports the following (in the notes just at the bottom of the web page)
    Key sizes of 128, 160, 192, 224, and 256 bits are supported by the Rijndael algorithm, but only the 128, 192, and 256-bit key sizes are specified in the AES standard.
    Block sizes of 128, 160, 192, 224, and 256 bits are supported by the Rijndael algorithm, but only the 128-bit block size is specified in the AES standard.
    What does the WLCs use for an AES key size when you enable a WPA2 policy with AES encryption?
    Many thx
    Ken

    128 bits was supported on the autonomous code, so I'm sure the LWAPP solution also uses 128 bits with three possible key lengths 128, 192 and 256 bits.

  • AES Encryption No Longer Working

    Last week we had users complaining that they could no longer connect to wireless.  They were receiving a limited or no connectivity message.  Upon researching the issue, I found that if I removed the AES encryption, from WPA2, users were able to connect again with TKIP.  In speaking to a few admins, they stated that TKIP was the preferred method that was chosen years ago.  My first question is this.....In our WLAN's, we had the options for WPA/TKIP-AES, and WPA2/TKIP-AES.  I'm assuming this would allow the PC to use whichever encryption method was preferred.  However, this doesn't seem to be the case.  The PC chose AES, which caused the issue that they were having.  Would this be something PC based?   I'm assuming the controller only gives the ability.  It won't actually dictate which encryption method is used, unless one of the options is turned off (like we did with AES).  My second question is this....TKIP, being a weaker encryption method, isn't what I want our users using.  How could I migrate to AES?  Are there specific instructions to move from TKIP to AES?  Is it more than just putting a check mark on the AES options, under WLAN security?  Thanks for any help!

    Its best to only use either WPA/TKIP or WPA2/AES, not both or a mix of either.  This does cause issues with devices so its hit or miss.  If you had configured everything for WPA2/TKIP, well... your stuck with a non standard IEEE setting, and you will have to just configure that on the WLC.  It's the same if you were using WPA/AES.  
    The best way to move to a standard, is if your devices were domain machines and you can push out a GPO.  Non domain machines, you would need to manually enter those unless you had a tool that manages them.

Maybe you are looking for

  • How to use PL/SQL table

    Hi all, can you guys suggest me how can I use pl/sql tables for the below query to incresing the performance. DECLARE     TYPE cur_typ IS REF CURSOR;     c           cur_typ;     total_val varchar2(1000);     sql_stmt varchar2(1000);     freeform_nam

  • Need suggestion on restore and recover

    Hi, Need your suggestion on restore and recovery scenario. It is like: There is Server A on which there is database with SID= XYZ Server B on which there is database with SID= PQR I have taken backup of both databases. Then done cloning/refresh PQR d

  • Xml of IDOC in R/3

    Scenario is IDOC to File. My ABAP team given some ref Idoc numbers which are there in R/3 system for test data.They are not posting Idoc from R/3 system to XI.They are asking me to take the data from R/3 system and post it thru XI RWB. So,how can I g

  • Recording converter for microsoft office live meeting: the sound is lost after a minute

    I have a recording of a WebEx Live Meeting (ReplayMeeting.htm and all directories below) that I want to convert using the Recording Converter. I have a problem with the sound: after a minute or so the sound is lost from the converted .wmv file.  When

  • Same album repeatedly updates when syncing with iPhone

    I have many many albums and tracks purchased via the iTunes store both through iTunes directly and via the iPhone. They all synchronise properly and are on iTunes eventually. There's one album, though, purchased via the iTunes app in June this year.