AES output has always 32byte length

Hello
I have one question about decrypted data via AES. My code is following:
byte [] key = Hex.decode("000102030405060708090A0B0C0D0E0F");   
byte [] input = Hex.decode("000102030405060708090A0B0C0D0E0F");                               
byte [] output = null;
SecretKey secretKey = new SecretKeySpec(key, "AES");
Cipher cipher = Cipher.getInstance("AES", "BC");
cipher.init(Cipher.ENCRYPT_MODE, secretKey);
output = cipher.doFinal(input);The input data have 16 byte length but I got always 32 byte large output. When I put only 15 byte input then I got 16 byte large output.
Can anyone explain me why I have 32 bytes instead of 16bytes, because input is exactly 16 byte and I expect same size.
Note,that first 16 bytes are equal as output in Crypto ++.
What is
Thanks
I'm simulating example from Crypto ++ in which output is always 16 byte by 16 byte large input.

By default you get PKCS5Padding so you will get 16 bytes of encrypted padding. Specify
Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding", "BC");

Similar Messages

  • Looking to stop sending IDOC if output has been already processed for PO

    Hi,
    I am using the Message type ORDERS to trigger the IDOC for the purchase order based on the output type. But my requirment is that if the output is already processed for a  specfic purchase order then it should not allow to process the output again for that purchase order. So i am writing a logic in user exit that if NAST table entry is already exist and proccessed for the output type for specfic purchase order then i want to stop sending the idoc.  As NAST entries doesn't contains any segment data due to that i am unable to set the ALE filter in BD64 transtaction .So could you please anyone give me any suggestion how can i stop sending the IDOC if output has been already proceessed  so that it will helpful for me.
    Thanks in advance for your help .
    Regards,
    Kiran

    >
    divyesh vasani wrote:
    > Hi Shabarish,
    > Thanks for your reply.
    > I was working on solution proposed by  NALLAM GUNA RANJAN.
    > But as you and Jai mentioned, but I think Maintain Order At Runtime option is available with Interface determination not with Receiver determination.
    > In my case, From same Input file(from which Text file is generated) mail report has to be generated but after creation of text file only.
    >
    > Thanks
    > Best Regards,
    > Divyesh
    1. In case you intend to use maintain runtime then use a single receiver and add multiple inbound interfaces. This is the easiest solution
    2. use a BPM. use send steps in serial. First send step should be File (request for acknowledgment) and then followed by send step for mail.
    Do not go for scripts etc unless no other solution persists since maintenance and support in the future will always be an issue.
    let me know if u still have issues.

  • I have wifi in my home and it has always worked fine. Then I went to Ireland and used the iPad there.  Since I have been home, it won't work in the house. I took it to another location where I have logged in before and it worked perfectly.  Any ideas?

    I have wi-fi in my home and it has always worked fine with my iPad.  Then I went to Ireland and used the iPad there.  Since I have been home, it won't work in my house.  I can't get my wi-fi connecton.  I took it to anothe location where I have logged in in the past, and it worked perfectly.  Any ideas as to why I can't get a connection at home?
    Thank you.

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • TS3789 I have similar problem, my apple tv which has always worked properly with my Samsung tv will no longer play any audio after the latest 5.1 upgrade. Very frustrating as it was working perfectly before. I am starting to not trust apple upgrades until

    I have similar problem, my apple tv which has always worked properly with my Samsung tv will no longer play any audio after the latest 5.1 upgrade. Very frustrating as it was working perfectly before. I am starting to not trust apple upgrades until proven for example ios6 on iPhone with that stupid map app instead of google maps.
    I just want to buy and hear my iTunes music and videos on my apple tv, could before cant now. Thank you apple. Time to pack up the apple tv and start torrenting without the ios-bs.
    Disheartened apple fan.

    Welcome to the  discussion forums.
    Try going to synching in the sources menu on your tv and selecting 'change itunes library', when it gives you the passcode check itunes to see if the tv is showing up as a new device, if so try entering the pass code. It may be that your tv is seeing itunes as a different library because of a recent upgrade.

  • My Facetime has always worked and now all the sudden when I try to log on from my Macbook it says the server has encountered an error with the server registration. This will not allow me to sign in. Anyone know how to fix this?

    My Facetime will not work on my Macbook Pro. This has always worked in the past and now all the sudden it says that I have encountered a problem with the server and registration. I tried to check the date and time zone which is correct and I have no restrictions set.

    I have the same issue. Does anybody know why this has happened

  • My iMessage stopped working when I did the latest update on my phone. I have literally tried everything to reset it. I am currently not in the US, but my iMessage has always worked when I was in wifi and my phone is still activated.

    My iMessage stopped working when I did the latest update on my phone. I have literally tried everything to reset it. I am currently not in the US, but my iMessage has always worked when I was in wifi and my phone is still activated. I have tried to reset my network settings, my location, and even the reset all settings. When I click on my settings and iMessage it says that it is still waiting for activation... and my phone number is grayed out. I am able to recieve an iMessage to my email and that could work for right now but i'm not sure how to start a conversation the defaults to being sent from my email and not my cell phone number. please help!

    Hi shanny202.
    Really strange problem you have there. I have a few questions though.
    Please try again and try to make the phone as a new without restoringen with you iCloud-data or backup-data from iTunes. Maybe it is something wrong with the data (strange).
    Anyway, i think you should call Apple Support or visit an Apple Store, don't forgot to make a Genius Bar reservation.
    You locate the nearest Apple Store here: http://www.apple.com/retail/storelist/
    And here is Apples phone numbers around the world for support: http://support.apple.com/kb/HE57

  • Hey! I have had an Ipod touch for about 7 years and it has always worked but i connected it to my laptop and it is detected on windows but it is not being detected on Itunes. Ive tried everything and need help!

    Hey! I have had an Ipod touch for about 7 years and it has always worked! but for some reason i plugged it into my laptop and my computer is recognizing that it is plugged in but my itunes isnt what do I do?

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - Then do the other actions of:
    iOS: Device not recognized in iTunes for Windows
    paying special attention to item #5
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • My iPad 3 seems to take forever to charge. It will easily take 6 hours plus to fully charge to 100%, it has always been like this so thought it was normal, however my friends point out it isn't. Does anyone else have similar charging times? Thanks, Claire

    Hi All,
    I have had my iPad 3 since Feb 2012 and have always commented on it's slowness to charge. I was just wondering if it's meant to take 6 hours plus to charge to 100% or if this is a bit excessive?
    As it has always done it, I have never really thought of it but a lot of my friends are now commenting that it's a really long time and it shouldn't take that long.
    Thanks,
    Claire

    The quickest way (and really the only way) to charge your iPad is with the included 10W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • Error Message Translation, Please: Master Output Has Been Reset?

    Can anyone help me understand the following Audition 3 error message? I couldn't find anything in Adobe's help system and there's remarkably little about it out on The Google. Thanks.
    The output device Xonar Essence STX bit-perfect A specified in the session is not currently available. The Master output has been automatically reset to the currently available default port. You will need to change the outputs on tracks and busses manually to the ports available on the new device to hear all output.
    Confusing thing is, I don't know what "bit-perfect A" is and I don't recall changing it.
    Thanks for any insight.
    --Jeremy

    I'm having the same prob. can brows itunes but can't login. I also can't access the mac software updater. My iphone can't DL anything when I'm using wireless but works fine using 3G. It seems to only have happend since I updated to 3.0 OS and 10.5.7 on my imac(which was done on the same day. Is it possible that its that new security on .7 and 3.0 don't support my router setting? its werid because I can surf the web, play games etc. but can't do anything apple related

  • Why am I getting messages such as "The command "Image Size" is not currently available" when trying to run an Action that has always worked in the past and when the particular Commands do work if used by themselves?

    Why am I getting messages such as "The command Image Size is not currently available whenever I try to run an Action that uses the particular command (and which has always worked fine previously) and when the particular command works fine when used on its own?

    I would think that image size would always be available when there is an active document in Photoshop.  The only time I remember seeing messages like that where they should work was during the five month period when Adobe released CS6 with so many bugs which took Adobe five months to fix.  During those five month messages like that that should not have happen were common when action switch between documents.  Adobe would start processing the next Action step before the document switch completed, Any step that required an active document could fail with a mess stating the command is not available.
    Are you by some chance using CS6 version 13.0 CS6 without any updates.  Use Photoshop menu Help>About Photoshop.  If it shows CS6 version 13.0 you need to update CS6. .

  • I sold my ipod (which has always been backed up to Itunes/computer)and am waiting for my new ipad.  Do I have to manually download all my apps on the ipad, or will itunes sync my old ipod apps/music to the ipad?

    I sold my ipod (which has always been backed up to itunes/computer) and am waiting for a new Ipad.
    Do I have to manually download all my apps on the ipad, or will itunes allow me to sync my old ipod apps and music to the ipad?

    Welcome to the Apple Community.
    You can sync your music and apps from iTunes. However since you are moving from an iPod to an iPad, many of the apps will have iPad versions which you will need to redownload.

  • I have 2nd generation apple tv, and this has always worked well with Lion, have now upgraded to Mountain Lion, and now can not connect to itunes, all other things work, can buy or rent films.

    I have 2nd generation apple tv, and this has always worked well with Lion, have now upgraded to Mountain Lion, and now can not connect to itunes, all other things work, can buy or rent films, but can not listen to my music or show photos. Can anybody help please?

    I have 2nd generation apple tv, and this has always worked well with Lion, have now upgraded to Mountain Lion, and now can not connect to itunes, all other things work, can buy or rent films, but can not listen to my music or show photos. Can anybody help please?

  • How do you change a brush tool color in Photoshop13. The color chart that has always been on the right side of the screen is gone and I cannot find out how to turn it on

    How do you change a brush tool color in Photoshop13. The color chart that has always been on the right side of the screen is gone and I cannot find out how to turn it on

    I now have the pallete on the right side of my screen. But, I am unable to change the color of the brush. I move the eye dropper over red and click on it. A panel comes saying 'Pure Red', I click ok but the brush color does not change.
    David Miller
    [email protected]

  • Why can't I log in to the itunes store it has always worked in the past? gives me and error and closes the program

    Why Can't I log in to the I-Tunes store it has always worked in the past?  It gives me an error then closes I-Tunes
    Thanks

    Hello gidgetfarms,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Have a nice day,
    Mario

  • While playing music on my iphone 5, i am now unable to play, pause, or skip songs while my phone is locked. I can still change the volume and slide the scrub through songs.  This has always worked for me until now. I have not changed any settings

    While playing music on my iphone 5, i am now unable to play, pause, or skip songs while my phone is locked. I can still change the volume and scrub through songs.  This has always worked for me until now. As far as i know, i have not changed any settings.  This is whle my phone is locked both on the slide up toolbar/menu interface and on the normal screen before i slide to unlock.

    I skimmed through this very long post but from what I read, this sounds much more like a coverage issue with your network than a device issue.  I have not seen or heard of this issue before and I do not have this issue personnally and & I use the music app quite frequently while working in the yard.
    The DND feature should not be a factor at all if you're sure it's turned off.  I always recommend restarting your phone by holding down the home button + the lock button for 10-12 seconds until the Apple logo appears.  Once the phone reboots, do a test to see if this has helped to resolve the issue.
    If not, go to Settings > General > Reset > Reset Network Settings.  Then, test it out again.  Post back if neither of these solutions solve your issue.

Maybe you are looking for