IBM Crypto Education Community

  • 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