[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bouncycastle-crypto-dev
Subject:    [dev-crypto] Application Specific-Implicit encoding
From:       chinmaya <chinmaya+lists () gmail ! com>
Date:       2007-05-08 14:47:14
Message-ID: 3c722d570705080747y488f4a8ei9dd8a04de5f8d90e () mail ! gmail ! com
[Download RAW message or body]

Hi

I am trying to use BC ASN1 library to encode a Integer, which is implicit,
application-tag encoding.

For example if I have a integer value 9, and app-tag of 3
the result should be 43 01 09 (MSB byte: 0100 0011 -- Bit
8,7=>01=>application-specific. Bit 6=>0=>Un-constructed)

If I use DERTaggedObject I get: 83 01 09 (contect-specific, un-consturcted)
If I use DERApplicationSpecific I get: 63 03 02 01 09 (application-specific,
consturcted)

Do you think I am using the right API? Any idea how to get the expected
results?
Any help appreciated

thanks in advance
chinmaya

[Attachment #3 (text/html)]

Hi<br><br>I am trying to use BC ASN1 library to encode a Integer, which is implicit, \
application-tag encoding.<br><br>For example if I have a integer value 9, and app-tag \
of 3<br>the result should be 43 01 09 (MSB byte: 0100 0011 -- Bit \
8,7=&gt;01=&gt;application-specific. Bit 6=&gt;0=&gt;Un-constructed) <br><br>If I use \
DERTaggedObject I get: 83 01 09 (contect-specific, un-consturcted)<br>If I use \
DERApplicationSpecific I get: 63 03 02 01 09 (application-specific, \
consturcted)<br><br>Do you think I am using the right API? Any idea how to get the \
expected results? <br>Any help appreciated<br><br>thanks in advance<br>chinmaya<br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic