IBM Crypto Education Community

IBM Crypto Education Community

IBM Crypto Education Community

Join the IBM Crypto Education community to explore and understand IBM cryptography technology. This community is operated and maintained by the IBM Crypto Development team.

 View Only
  • 1.  Cipher Text Translate

    Posted Thu May 30, 2019 06:29 AM

    I seem to be having a brain cramp and can not get past VERB CALL: CSNBCTT2 RETURN CODE: 08 REASON CODE: 2AF8

    The value specified for length parameter for a key
    token, key, or text field is not valid.          
    User action: Correct the appropriate length field
    parameter.                                       

    These are the parms I have set up: (assembler format)

    RETURN_CODE=F'0'

    REASON_CODE=F'0'

    EXIT_LEN=F'0'

    EXIT_DATA=F'0'

    RULE_ARRAY_COUNT=F'4'                        
    RULE_ARRAY=CL32'I-CBC   O-CBC   IKEY-DESOKEY-DES'
    KEY_IDENTIFIER_IN_LENGTH=F'64'               
    KEY_IDENTIFIER_IN=CL64'INPUT.CTTKEY'                       
    INITIALIZATION_VECTOR_IN_LENGTH=F'8'         
    INITIALIZATION_VECTOR_IN=D'0' 
    CIPHER_TEXT_IN_LENGTH=F'8'                   
    CIPHER_TEXT_IN=CL8'12345678'        
    CHAINING_VECTOR_LENGTH=F'128'                
    CHAINING_VECTOR=XL128'00'                       
    KEY_IDENTIFIER_OUT_LENGTH=F'64'              
    KEY_IDENTIFIER_OUT=CL64'OUTPUT.CTTKEY'                      
    INITIALIZATION_VECTOR_OUT_LENGTH=F'8'      
    INITIALIZATION_VECTOR_OUT=D'0'             
    CIPHER_TEXT_OUT_LENGTH=F'32'                
    CIPHER_TEXT_OUT=XL32'00'                        
    RESERVED1_LENGTH=F'0'                     
    RESERVED1=F'0'                            
    RESERVED2_LENGTH=F'0'                      
    RESERVED2=F'0'                             

    Ernest_Nachtigall


  • 2.  Re: Cipher Text Translate

    Posted Fri May 31, 2019 10:03 AM

    Hi Ernie -

    Still at it I see ....

    I tested your parameters in a rexx clist and the testcase worked successfully for me.  So check your call to CSNBCTT2.

    EChan_pok


  • 3.  Re: Cipher Text Translate

    Posted Fri May 31, 2019 01:14 PM

    Still at it, darn stuff got embedded into my DNA, wanted to name my daughter DEStiny  ;-) and if I had a son, mAEStro  Nachtigall.

    Thanks

    Ernest_Nachtigall


  • 4.  Re: Cipher Text Translate

    Posted Sun June 02, 2019 10:12 AM

    Can you share your REXX since I am still having the same issue.

    Ernest_Nachtigall


  • 5.  Re: Cipher Text Translate

    Posted Mon June 03, 2019 10:15 AM

     

    EChan_pok

    Attachments



  • 6.  Re: Cipher Text Translate

    Posted Mon June 03, 2019 03:14 PM

    Can't believe I posted

    INITIALIZATION_VECTOR_OUT_LENGTH=F'8'      

    then coded length of 128.  So when I posted, I knew better!

     

    Thanks again!!

    Ernest_Nachtigall