Download ByteDesigner For Mac 2.3

broken image


ByteDesigner v.2.3 ByteDesigner is the emerging enterprise tool for designing databases at all levels of an organization, using the same concepts found in tools costing thousands of dollars! Its a powerful database design tool, with advanced SQL Editor. ByteDesigner is the emerging enterprise tool for designing databases at all levels of an organization, using the same concepts found in tools costing thousands of dollars. Its a powerful database design tool, with advanced SQL Editor, and support for all major RDBMS, that can design complex systems. Upsilon 2000 serial.

Download ByteDesigner For Mac 2.3
edited Apr 7, 2010 10:56AM in Java Card
Download ByteDesigner For Mac 2.3
edited Apr 7, 2010 10:56AM in Java Card

Download Bytedesigner For Mac 2.3 Torrent

Hi all,
Working on java cards, I need to crypt a bytes array using a 3DES key like :
MAC = RetailMAC [S'] <Kmac>
- S' is the array
- Kmac is the 3DES key
- MAC is the result
(this is what I have in my spec).
The only information I have about RetailMAC is ISO ISO/IEC 9797-1 padding 2 algorithm 3.
Unfortunately, I don't have this ISO..
I'm looking for a class with method (in JAVA) which implement this algo.
I found this but don't know if it is correct or not :
but I don't know if 'ALG_DES_CBC_ISO9797_M2' is the correct argument.
[javadoc of cipher class |http://www.informatik.uni-augsburg.de/swt/lehre/javacard/JavaCard-2.1-API/javacardx.crypto.Cipher.html#ALG_DES_ECB_ISO9797_M2]
Any help is welcome !
Gilloull

Download Bytedesigner For Mac 2.3 Full

  • Hi,
    What version of Java Card are you using? From the lin I assume JC 2.1? Is this for your application code or is it for GP secure messaging? If it is for GP, there are classes to handle this for you.
    For a mac you actually want to use a Signature class not Cipher. The cipher you mentioned just encrypts using the padding scheme from 9797-1. [http://www.informatik.uni-augsburg.de/swt/lehre/javacard/JavaCard-2.1-API/javacard.security.Signature.html#ALG_DES_MAC8_ISO9797_M2]From memory (may be wrong), the 3 algorithms are the same with different initial and final transforms (what is done with the input before/after MACing). You may just need to perform actions on the input and output of this signature to get the correct MAC. I have a copy of ISO9797-1, but unfortunately it is as work so I can confirm this when I get back in to the office (unless someone else can fill in the blanks).
    Cheers,
    Shane
  • Hi,
    thanks for replying
    I am using javacard 2.2.1. (is there any differences with jc 2.2.2 ?)
    I am trying to initiate a Symmetric Device Authentication between my card and my terminal.
    I know that the initial value for the algorithm is IV = �00 00 00 00 00 00 00 00'.
    I will get a look about class Signature.
    Thanks a lot !
    Gilloull
  • edited Mar 1, 2010 9:27AM
    I created that, do you think it is enought ?
    Attributs of the class :
    In the constructor :and in my encrypt method :
    Where sbis is the bytes array to encrypt.
    Edited by: Gilloull on Mar 1, 2010 6:24 AM
  • Hi,
    That code looks fine for generating your MAC.
    Cheers,
    Shane
  • edited Mar 2, 2010 6:13AM
    hi,
    Thanks for confirming.
    An other question :
    My javacard has to send a byte array named SS (serial number of the terminal and a 8 byte random array), encrypted with 3DEScbc using a key (Kenc).
    It has also to send a byte array MAC as MAC = RetailMACC [SS] <Kmac>.
    The terminal has to decrypt SS with Kenc and
    (1) decrypt MAC with Kmac
    (2) decrypt SS with Kenc
    And then compare the serial number and the 8 byte random array acquired by both decrypted method.
    I am using Cipher Class to decrypt SS with Kenc but I don't know how to decrypt a retailMAC.
    ----------------------------------
    S = [][][][][][][][] [][][][][][][][] > SS = 3DEScbc[S] <Kenc> > MAC = RetailMac [SS] <Kmac>
    ----------------- ----------------
    The Card send SS and MAC.
    The termial decrypt SS :
    ----------------------------------
    SS = 3DEScbc[S] <Kenc> > S_1 = [][][][][][][][] [][][][][][][][]
    ----------------- ----------------
    The terminal Decrypt MAC
    ----------------------------------
    MAC = RetailMac [SS] <Kmac> > SS_2 = 3DEScbc[S] <Kenc> > S_2 = [][][][][][][][] [][][][][][][][]
    ----------------- ----------------
    Finally I have to compare S_1 and S_2
    Do you know the way to decrypt the MAC ?
    Thanks !
  • Hi,
    You cannot decrypt a MAC. It is a one way digest of a given set of data with a key (uses a cipher internally in feedback mode resulting in a single block of 'cipher text' as a MAC. What you need to do is perform the same operation with the same key and data and compare the results. The Signature (oncard) has two methods, sign and verify which illustrates this. The problem is off card, you will either have to find a library that performs retail MAC (bouncycastle may do this) or implement it yourself using a DESede cipher class.
    Cheers,
    Shane
  • Hi,
    I come back to you with some questions.
    I tried to use Bouncycastle library but I am completly lost.
    I found this Class : [ISO9797Alg3Mac|http://www.bouncycastle.org/docs/docs1.5/index.html] but I did not find examples using it.
    Have you already use it ?
    Thks
  • Hi,
    Just by looking at the Java Doc it would be something like this (DISCLAIMER: this code is not verified):
    Cheers,
    Shane
  • Thanks for replying.
    I don't understand how do you choose things like :
    - DESedeParameters or DESParameters
    And I also have compiling errors like :
    - 'The type java.lang.IllegalArgumentException cannot be resolved. it is indirectly referenced from required .class files'
    on both lines :
    Where rndicc is an array of 8 bytes.
    If you have any idea about it.
    And
    - Missing export file for package org/bouncycastle/crypto
    next to the package declaration.
    (I had not this error 10 min ago..)
  • edited Mar 9, 2010 9:39AM
    duplicate message
    Edited by: Gilloull on Mar 9, 2010 6:38 AM




broken image