Maximum TDES length data to cipher

Hi,
I have been testing with the creation of TDES keys, and using to cipher data, and with the results I'm receiving i'm wondering If there is any limit on TripleDes with the length of the data to cipher because I'm only able to cipher data from 8,16 bytes, up to 32 it returns me an 6F00 error also doing a try catch:
cipher= Cipher.getInstance(Cipher.ALG_DES_CBC_NOPAD,false);
cipher.init(des,Cipher.MODE_DECRYPT,new byte[]{0,0,0,0,0,0,0,0},(short)0,(short)8);
     try{
               cipheredataL=cipher.doFinal(data2cipher,(short)0, (short)32, randomD_cipher, (short)0);
     }catch(CryptoException crypto){
          if (crypto.getReason() == CryptoException.UNINITIALIZED_KEY)
                    ISOException.throwIt(ISO7816.SW_FILE_FULL);
               else if (crypto.getReason() == CryptoException.INVALID_INIT)
                    ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
               else if (crypto.getReason() == CryptoException.ILLEGAL_USE)
                    ISOException.throwIt(ISO7816.SW_FILE_INVALID);
               else
                    ISOException.throwIt(ISO7816.SW_RECORD_NOT_FOUND);
Thanks for your help another time :)

I am not aware of a size limit for<tt> cipher.doFinal </tt>.
Could it be that your<tt> data2cipher </tt> variable is shorter than 32 bytes, or/and its allocation fails?

Similar Messages

  • SQL Loader-704: Internal error: Maximum record length must be = [10000000]

    Hi,
    running SQL*Loader (Release 8.1.7.2.1) causes an error "SQL*Loader-704: Internal error: Maximum record length must be <= [10000000]". This error occurs when SQLLoader is trying to load several thousand records into a database table. Each record is less than 250 bytes in length.
    Any idea what could cause the problem?
    Thanks in advance!
    Ingo
    And here's an extract from the log file generated by SQLLoader :
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 1360 rows, maximum of 10485760 bytes
    Continuation: none specified
    Path used: Conventional
    Table "SYSTEM"."BASICPROFILE$1", loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    UUID FIRST * O(X07) CHARACTER
    DOMAINID NEXT * O(X07) CHARACTER
    LASTMODIFIED NEXT * O(X07) DATE DD/MM/YYYY HH24:MI:SS
    ANNIVERSARY NEXT * O(X07) CHARACTER
    BIRTHDAY NEXT * O(X07) CHARACTER
    COMPANYNAME NEXT * O(X07) CHARACTER
    DESCRIPTION NEXT * O(X07) CHARACTER
    FIRSTNAME NEXT * O(X07) CHARACTER
    COMPANYNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    FIRSTNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    GENDER NEXT * O(X07) CHARACTER
    HOBBIES NEXT * O(X07) CHARACTER
    HONORIFIC NEXT * O(X07) CHARACTER
    JOBTITLE NEXT * O(X07) CHARACTER
    KEYWORDS NEXT * O(X07) CHARACTER
    LASTNAME NEXT * O(X07) CHARACTER
    LASTNAMETRANSCRIPTION NEXT * O(X07) CHARACTER
    NICKNAME NEXT * O(X07) CHARACTER
    PREFERREDLOCALE NEXT * O(X07) CHARACTER
    PREFERREDCURRENCY NEXT * O(X07) CHARACTER
    PROFESSION NEXT * O(X07) CHARACTER
    SECONDLASTNAME NEXT * O(X07) CHARACTER
    SECONDNAME NEXT * O(X07) CHARACTER
    SUFFIX NEXT * O(X07) CHARACTER
    TITLE NEXT * O(X07) CHARACTER
    CONFIRMATION NEXT * O(X07) CHARACTER
    DEFAULTADDRESSID NEXT * O(X07) CHARACTER
    BUSINESSPARTNERNO NEXT * O(X07) CHARACTER
    TYPECODE NEXT * O(X07) CHARACTER
    OCA NEXT * O(X07) CHARACTER
    SQL*Loader-704: Internal error: Maximum record length must be <= [10000000]

    As a second guess, the terminator changes or goes missing at some point in the data file. If you are running on *NIX, try wc -l data_file_name.  This will give a count of the number of lines (delimited by CHR(10) ) that are in the file.  If this is not close to the number you expected, then that is your problem.
    You could also try gradually working through the data file loading 100 records, then 200, then 300 etc. to see where it starts to fail.
    HTH
    John

  • Maximum record length in internal table?

    Is there a maximum record length in an internal table?  Please note:  My question is NOT related to table space.  I'm referring only to the length of an individual record (A.K.A. row length).
    I am using a work area to insert data into an internal table.  Both the work area and internal table are defined by the same structure.
    The structure has a total length of 672 bytes.  For the sake of this discussion I'll point out that at the end of the structure, bytes 669, 670, 671, and 672 are four separate fields of 1 character each.
    When viewing the work area record in the debugger I'm seeing all the fields and all the values.  When viewing the internal table in the debugger after a record is inserted, the internal table ends with the field defined at Byte 670.  The internal table does not include the two fields defined at Bytes 671 and 672.
    Am I to assume from the above explanation that the length of a record ( A.K.A. row) in an internal table cannot exceed 670 bytes?
    Thank you.

    Manish,
    False alarm!  While, technically, you didn't answer my question, your request for code ended up helping me answer my own question.
    To provide you with some code I wrote a simple test program using the record layout referred to above, with a DO loop to put some records into the internal table, followed by a LOOP AT, with accompanying WRITE statements to display the contents of the internal table and demonstrate that the last two fields weren't being stored.
    However, when I ran the test program, the last two fields were being displayed.
    It was at that point, when stepping through the debugger that I noticed the scroll arrows above the last column of my internal table that allowed me to scroll to the right and see my final two fields.
    Apparently, because of the large number of fields in my internal table I had reached the default display length of the debugger.  While I was obviously aware of the scroll bar found at the bottom of the display, I had never worked with an internal table of that width in the past and hadn't even noticed the scroll arrows above the last column before.
    Thanks for taking the time to respond helping me get to the solution.

  • SQL Azure Reporting - There was an exception running the extensions specified in the config file. --- Maximum request length exceeded.

    I am trying to deploy an RDL file (5MB) to SQL Azure Reporting server in South Central US using the deploy function in SQL Server Data Tools but facing the following error during deployment to Azure Reporting server.
    "There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded."
    Is there any limit on the size of RDL files which can be deployed to Azure Reporting server? I have seen some online posts which talk about increasing the maxRequestLength in httpruntime of web.config in Reporting server. But in case of Azure Reporting server
    how can be make modification to this configuration?
    I have tried to upload it directly to SQL Azure Reporting server from the Management Portal --> Upload Report function which still resulted in error.
    Thanks & Regards, Deep

    Thanks for your question. Unfortunately we are in the process of deprecating SQL Reporting services.  Full details are available at http://msdn.microsoft.com/en-us/library/gg430130.aspx
    Thanks Guy

  • Maximum file size data that can be send to MQ using mq adapter

    Dear All,
    What is the maximum file size data that can be send to MQ using mq adapter ?
    The file can be csv, fixed , xml.
    Please let me know if anybody is aware of any limitations
    Best Regards
    Arc

    If you are on 10g then you are looking at a limit of 7MB, although any messages over 1MB will require some tuning.
    You can integrate using the native schema, or xml so you can use csv, fixed length, and xml files.
    cheers
    James

  • Data type: variables of this type should hold maximum amount of data

    Dear all,
    In SAP we have any field like Richtext field in Lotunotes, which can hold anyamount of data, I mean it can store arbitary amount of data based on the input.
    I have came across certain fileds called LCHR, but it has got a limitation. Fields of this type must be located at the end of transparent tables (in each table there can be only one such field) and must be preceded by a length field of type INT2.
    But I need to know about a  field which can hold maximum amount of data at a time.
    Regards,
    Giri

    Hi Ramada,
    starting with ECC600 and in all unicode systems the length of a character is system-dependent.
    Fields of type STRING store an arbitrary amount of characters, type XSTRING stores an arbitrary amount of BYTES.
    AFAIK a Notes Richtext field will hold much more: formatting, data and document type an what else.
    There is nothing directly comparable in ABAP.
    Regards
    Clemens

  • "Maximum Session Length in Seconds" Not Working In Apex 3.2

    Hello.
    I am using Apex 3.2 and have noticed that pages are session timing out after just 10 minutes of inactivity. I am aware of the new security attributes "Maximum Session Length in Seconds" and "Maximum Session Idle Time in Seconds".
    I asked our Apex admin and he reported that these attributes are set to 8 hours on the instance level. Within my own Apex application, these two attributes are not set at all. According to the popup help window associated
    with these attributes, if they are not set, then there is no timeout at all that is enforced.
    So, does anyone know why my application pages are session timing out after just 10 minutes of inactivity and users are forced to login again?
    Thank you.
    Elie

    Scott,
    Thank you for your help on this.
    I've uploaded my Apex app called "Online Model", App ID 62063 in my workspace EEG on the Oracle hosted site apex.oracle.com.
    Workspace = EEG
    Username = [email protected]
    Password = galaxy (I'll change the password after you're done helping me)
    Orginally, this app had "Database Authentication" set. I changed this to "DAD Authentication" so that you can simply run it without having to login.
    If I open up the app in developer mode and simply leave it alone for, say, 30 minutes and then click on the "developer bar" to see the definition of one of the pages, Apex instead prompts me to re-login again into Apex. I've not placed any values in any of the "Session Timeout" fields on any of the pages in this app.
    When the same app is run as a user (that is, no "developer bar" appears at bottom of pages), again the page will time out after about 30 minutes of in-activity.
    And as mentioned in my original posting, our Apex Admin has the "Administrator Timeout Session" field set to 8 hours.
    The Apex 3.2 docs say that if no value is placed in these Timeout Session fields, then there is no timeout imposed.
    Thank you for your help. It's much appreciated.
    Elie

  • How to find Maximum of a date field using BEx

    We are trying to just display the maximum of a date field in a BEx report along with some fixed text .
    If we need to create a formula using Maximum function , how to use the same?
    For ex, we have a field "Flight Date" in the cube and cube has been updated with flight date till 10.09.2006.
    we want to display in the BEx report something like "Flight details are available only till <maximum of the flight date field from the cube>"
    Please help.

    Srilakshmi,
    Create a formula on the data and then sort the query on the date , that way the latest date would come on top. I am not sure if you can have something the way you have described..
    an option could be :
    Have a query on the cube with a condition of top date where the date could be a formula , this way you would get the latest date. se this as a value set to filter another query that displays only the date and nothing else , have some static text beside the query to indicate that this is the latest date.
    Hope it helps..
    Arun
    Assign points if helpful

  • ADAPTER.SOAP_EXCEPTION:Maximum request length exceeded.

    Hi frnds,
    Plz look for the error i am getting when sending large record...
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PARSING">ADAPTER.SOAP_EXCEPTION</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>soap fault: System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded. at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.get_InputStream() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    What could be the possible solution .
    Thanks,
    Adhir

    Hi Ahdir,
    First of all check the URL in your receiver SOAP adapter. The error comes from the web service server. It says that the request message is wrong.
    U have to fill field SOAPAction in the receiver soap adapter
    U may find the related information here
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm
    Please check this
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    There are multiple soap actions listed there.
    Regards,
    Divya

  • What's the maximum size of data a coherence cluster can hold?

    What's the maximum size of data a coherence cluster can hold before it starts noticing a degradation in performance?
    Assume a partitioned topology is used with only one backup for each partition.

    Hi,
    Coherence partitioned cache is designed for linear scalability and it does it quite well. I don't see any reasons of performance degrations with increase in data size given, you have enough cores and memory for processing the requests and managing the data.
    Cheers,
    _NJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Maximum statement length of 8192 Error

    Hello folks. I'm using OBIEE 10.1.3.3.3 and got the following error when building a pivot table report with a large of calculated fields.
    "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59036] The resulting SQL statement exceeded the maximum statement length of 8192. (HY000)"
    Does anybody know how to resolve this?

    Check this doc, its same for all versions of BI
    Sec: A.6.8
    http://docs.oracle.com/cd/E21764_01/bi.1111/e10541/configfileref.htm#CACECAFJ
    Pls mark as correct if helps

  • How to deal with variable length data struct in C/JNI

    I have another JNI related question. How do you handle variable length
    data structures in Java and pointer to a pointer?
    Basically, I have a backend in C which has records but we don't know
    how many. The API looks like
    typedef struct rec_list_s {
    int rec_list_cnt;
    rec_list_data_t rec_list_data[1];
    } rec_list_t;
    int rec_list_show(void handle, rec_list_t *list_ptr);
    /* Code snippet for rec_list_show */
    int rec_list_show(void handle, rec_list_t *list_ptr)
    rec_list_t *ptr;
    sz = sizeof (rec_list_t) +
    ((record_count - 1) * sizeof (rec_list_data_t));
    ptr = malloc(sz);
    /* fill the data */
    *list_ptr = ptr;
    return (0);
    So I need to wrap rec_list_show() in JNI call so I can have Java call
    it. How do i pass a pointer to a pointer from Java? I tried in the
    native C code for JNI to return the pointer to pointer as a result
    and store in a member in the Java class rec_list_t and then I pass
    that to JNI call for rec_list_show. The C backend code was fine
    since it got the pointer to pointer but Java become unhappy when
    the object it was referencing changed memory location (I suspect
    the garbage collection becomes unhappy).
    So what would be a good way to deal with this kind of code?
    Thanks,
    Sunay
    Edited by: st9 on Aug 30, 2010 5:47 PM

    I did not imply that you don't know C but you are implying that I don't understand C. Perhaps
    google Sunay Tripathi and click I am feeling lucky so that we don't get into teaching C
    discussions :) On the other hand, I am definitely looking for someone to teach me Java
    otherwise I wouldn't be asking.
    Anyway, let me explain again. The sample function rec_list_show() runs on the backend. It
    is a different process with a different VM space. It of course knows the size of the array
    and what to fill in. As a caller to that API (which is a separate process), I don't know
    what that size is but I need to get the size and corresponding data in one shot because
    the backend locks the table when its providing me the info to make sure its synchronous.
    Now I (the Java process) needs to get that count and data in one shot. Since the C library
    underneath me (wrapped around my JNI interface) has private IPC mechanism to copy
    the contiguous memory from the backend into my memory space, all I need is to provide
    a pointer to a pointer which gets filled in by backend and is available to my process. So
    my equivalent C frontend just passes a pointer to a pointer and casts the return value in
    rec_list_t. The rec_list_cnt tells it how many members it got. The first member is part of
    the struct itself but then following members are right after.
    Another way to help you understand this is with this code snippet from front end C program
    rec_list_t     *ptr, *save_ptr;
    rec_list_data_t *data_ptr;
    int          cnt;
    save_ptr = ptr = malloc(sizeof(rec_list_t));
    rec_list_show(handle, &ptr);
    assert(save_ptr != ptr);
    cnt = ptr->rec_list_cnt;
    for (i = 0; i < cnt; i++) {
         data_ptr = &ptr->rec_list_data;
    Notice the assert(). Also notice the for loop. How do I expect to walk more that one
    member when rec_list_data is a fixed size array of one member?typedef struct rec_list_s {
         int               rec_list_cnt;
         rec_list_data_t          rec_list_data[1];
    } rec_list_t;
    Anyway, I do understand that Java will not allow me to get a reference to a long and
    how Java memory management works. But the JNI native implementation is C
    and I was wondering if people have managed to do some tricks there between C
    and Java.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Maximum cable lengths for USB / FW / DVI & sVGA?

    I've hunted around on the net and can't find any kind of definitive answer regarding maximum cable lengths for USB, Firewire 400/800 and DVI / sVGA monitors. Can anyone shed some light?
    I'm about to shift my studio into a new room, and have the oppourtunity to stick my G5 and external drives into a corridor cupboard adjacent to where my studio is - in other words, noise free bliss! But....
    ...if I map out how far my computer monitors, keyboard and audio interface will be from the cupboard, and take into account the twists and turns involved in neat routing, I'm looking at a distance of about 10 meters. I need to know if any of these devices will be OK with such a long run of cable, and if not, if it's possible to achieve a good result using hubs or repeaters?
    So, can anyone help me out with info on:
    an Apogee Ensemble (Firewire 400)
    an Apple keyboard (USB 2.0)
    an LCD flatscreen (DVI)
    and another LCD flatscreen (sVGA)
    Many thanks!

    I was just researching the very same thing, though it does not  sound like my studio setup will be as sweet as yours. Here are a few things I ran across:
    FIREWIRE-
    "The maximum cable length specified by the IEEE1394 standard is 4.5 meters. However, more recent tests have shown that certain high quality firewire cables can achieve longer lengths without significantly affecting transmission quality. Several manufacturers sell firewire cables longer than 5 meters (some up to 50 meters)."
    ~http://www.focusrite.com/answerbase/article.php?id=206
    I found an example of a company who claims to sell a firewire cable of that length:
    http://www.expansys.com/pf.aspx?i=102956
    USB-
    There is forum discussion on the topic I was reading yesterday:
    http://www.everythingusb.com/forums/showthread.php?threadid=804
    But don't go past the 11th post or so, they go off on another subject... the use of hubs & the words "active extension" in that post caught my eye. A quick google search came up with this site:
    http://www.everythingusb.com/forums/showthread.php?threadid=804
    There were a bunch sites with devices claiming to do this.
    Finally I have this chart, which seems to support what what the articles say, without of course any other extension technology/solutions:
    http://www.extron.com/company/article.aspx?id=dedigform10
    I'm not making any claims at all about how true these sources are, I just have the same questions and decided to toss what I've been looking at into the discussion. Feel free anyone to jump in and tell me its all wrong - I'd love to hear whats right.
    ~sam

  • Windows service, error Maximum request length exceeded

    What is causing this error, from the windows service?
    There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded

    Hi Nick,
    Per my understanding you got this error "Maximum request length exceeded" about your reporting services, right?
    It seems the issue is caused by the request reach the max length.
    To solve the issue, please made the changes in web.config of both the Report Server and the Report Manager:
    <httpRuntime executionTimeout = "9000" maxRequestLength=" 2097151" />
    If the solution above does not help, please post the error logs of the Report Server. The error logs will help us more about troubleshooting and also provide us details information about what actions you are doing when causing this error.
    We can get the logs from:
    <Install Driver>:\Program Files\Microsoft SQL Server\MSSQL.<X>\Reporting Services\LogFiles
    Please feel free to ask, if you have any more questions.
    Regards
    Vicky Liu

  • Maximum request length exceeded

    I'm trying to upload a file to mobile services .NET backend, however I'm getting the error "Maximum request length exceeded". I tried increasing the limit in web.config file, but it only worked on the local version and still throws the error when
    published to Azure.
    As far as I understand the mobile services is ignoring the web.config file. So is there any other way to increase the upload limit?

    good news.. found a fix for this.
    it's actually the same fix for file uploads that exceed the default 4mb set by IIS. however, the change needs to made to the report manager web.config file and not the report server web.config file. that's why it didn't work for me the first time.
    here is an article that talks about it http://support.softartisans.com/kbview_825.aspx
    if you have kept the default installation directory, the file you edit is:
    C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\Web.config
    Just add the maxRequestLength property here and set a size appropriate to you. Not to large to discourage DoS attacks.
    The example below is 10mb
    <httpRuntime executionTimeout="9000"  maxRequestLength="10240"/>
    hope it helps.

Maybe you are looking for

  • Unable to get Field Names from Archived File

    Hi All, We have a ECC 6 Ehp4 system. When i retrieve Idocs archived using SARA, the data only contains application data. There is no field names available - eg: posting date, tax code etc. Please find below the background on this issue. I configured

  • When I try back up my ipod it says error cant back up

    I connected my ipod to itunes and pressed the backup button on it and it started and stoped and said error so i restored it that didnt work reinstaled itunes but still it didnt work please help

  • Problem w/ audio out to TV

    I have a MBP 5,2, 17", mid-2009, and am trying to get audio and video out to my TV. I have the Moshi MDP to HDMI adapter, and I've connected it to the DVI input on the TV. I have a cable with a headphone jack that splits into 2 RCA plugs for sound, a

  • Traffic Lights in ALVgrid

    Hi, I am using 'CL_GUI_ALV_GRID' method to display data via ALV. I have a requirement of displaying the succesful records with green light and unsuccessful ones with red lights. Can somebody tell me which field to use in field catalog for that icon o

  • How to make blog in servlet

    i want to make blog in my projects ..which is servlet a simple blog in which we can post text only text.. and it show blog text with date?? which technic i use in servlet