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.  T31X - DATAM

    Posted Fri August 03, 2018 01:33 PM

    Hi,

     

    Having some trouble trying to export a DATAM key into TR-31 block, getting a CV error.

    MAC seems to work just fine, and the only difference I notice in the CV is the key-form bits.

     

    Attached REXX for your convenience, will have to replace the samp_kek.

    hermanpun


  • 2.  Re: T31X - DATAM

    Posted Tue August 07, 2018 10:02 AM

    I think the problem was with the token generation.  I've attached some modified code that works.


     

    rjedick

    Attachments



  • 3.  Re: T31X - DATAM

    Posted Tue August 07, 2018 01:41 PM

    Thanks for taking a look Ronald, but I think you're creating a MAC token in your code?

    I know it works with MAC tokens, but I would like to use DATAM tokens.

    hermanpun


  • 4.  Re: T31X - DATAM

    Posted Wed August 08, 2018 03:10 PM

    To export the DATAM key token you will need to get it into it's external form. 

    I've attached some code to demonstrate this.

    rjedick

    Attachments



  • 5.  Re: T31X - DATAM

    Posted Wed August 08, 2018 03:26 PM

    Thank you!

    hermanpun


  • 6.  RE: Re: T31X - DATAM

    Posted Thu March 20, 2025 08:02 AM

    Hello,

    Please, can you put the attach again? The link doesn´t work. 

    I have to export a HMAC key into TR-31 block. I think i have to call CSNBT31X but I don´t know how to do it.  I will apreciatte a REXX example.

    Thanks.



    ------------------------------
    Victor Ramos
    ------------------------------



  • 7.  RE: Re: T31X - DATAM

    Posted Thu March 20, 2025 08:02 AM

    Hello,

    Please, can you put me the attached Rexx again?

    I have to export a HMAC key into TR-31 block. I think i have to use CSNBT31X , but I don´t know how to do. I will appreciate a REXX example.

    Thanks.



    ------------------------------
    Victor Ramos
    ------------------------------



  • 8.  RE: Re: T31X - DATAM

    Posted Tue May 20, 2025 05:20 PM

    My apologies for the delay in replying. Ron (rjedick) retired from IBM about 7 years ago, so I don't know what his sample contained.

    I don't have a good sample handy right now but let me know if you need me to find one.



    ------------------------------
    Eric Rossman
    ------------------------------