 |
|
 |
I have created a Visualizer for Visual Studio based in your editor (but with my own implementation of the decoding, as i only needed reading the data, not creating). (It's at ASN1 Visualizer for Visual Studio 2008[^]) I would like your opinion if you can look at it for a moment (the article is not complete tho) Also, if you feel that something is wrong with the way i used your code (licensing, copyright or something like that, plz let me know). Thanks for all the work you put into this editor, it really helped me over the last year.
Juan Estrada
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I have signed data and i want to convert it to ASN1Node, so i can parse it. Can it be done using the converter, or any other way?
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
If the data is signed it should be "convertable" (if the data was originally asn1 encoded). Of course that the signature is an encoded BITSTRING so you wont be able to parse it.
A signed data structure is something like this:
Sequence: -> DATA -> Sequence ->-> Algorithm Information ->-> Signature (BitString)
The DATA part will be visible if it was originally encoded as ASN1
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I am involved in a project where i need to write a specification for an audio file that have to transfer form one computer to another.
I am new at using ASN.1 and i am not even sure what type i am supposed to specify the file as.
I wrote the following specification:
________________________________________________ Module-user DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
Voicemail ::= SEQUENCE {
mail OCTET STRING }
END _________________________________________________
and converted it to a c++ class using the ASN.1 c++ tools from OSS Nokalva, but the audio file is not being encoded.
I simply need to know how to write an asn1 specification that will allow me to properly encode a .WAV audio file.
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
 |
I need to convert a digitial certiifciate that is in BASE 64 format to DER format. thanks in advance. yetty
|
| Sign In·View Thread·PermaLink | 1.80/5 (4 votes) |
|
|
|
 |
|
 |
 Hi, sorry for my english, I don't speak so good! I have my request in txt format (the request is for example: SEQUENCE { OBJECT IDENTIFIER signedData (1 2 840 113549 1 7 2) [0] { SEQUENCE { .... ) and I want to convert this text file in Base64 and in DER. When I have DER File, I have to send with a httpwebrequest.
With your application it's possible to do it??? You can help me??
Thank you so much. Sara
Sara
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Sara,
The ASN.1 Editor doesn’t have the functionality to convert your text to DER file. You need to generate the DER data manually with the editor or you could do it by other programs. The data converter can help you convert the DER file into Base64 text.
Regards,
Liping
|
| Sign In·View Thread·PermaLink | 2.00/5 (3 votes) |
|
|
|
 |
|
 |
In a thread on April 03, I spoke about two new functions for ASN.1 Editor. Initially, I spoke about passing a filename as an argument (so that I can right-click Open With) to the editor and have it opened. I vaguely recall downloading a version of ASN.1 Editor with this functionality. I then suggested perhaps to display the open file in the title bar of the window so that I know which file I have open. I download the latest version and the functionality for opening a file as a command line argument has disappeared - perhaps you have updated the wrong version? Apologies if I have made a mistake somewhere.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Tony,
I just verified the latest post. It does support command line file name. You may want to double if the one you installed is newer. You should see "V2005.04.04 - V1.0.12" after you click "help->about".
Thanks,
Liping
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I've been using this library for awhile now to great success, however recently another engineer started looking at some of the DER output and noticed a problem.
When encoding an INTEGER with value 0, the resulting DER from this library is:
02 00
When in fact it should be:
02 01 00
I tried some hacky fixes in Asn1Node.SaveData and Asn1Util.DERLengthEncode, but I just ended up breaking other things. I'm hoping you have some thoughts on a cleaner way to fix this.
Thanks!
--Joe Hartford jhartford@corestreet.com
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Joe,
Sorry for the late reply. Somehow I didn’t receive the notification email from your posting; so I just got to know your question.
The library didn’t really implement the encoding routine to encode integer number. The editor only accepts a hex string as the integer content. The only thing the library does is calculating the data length and adjusts all the parent node data length. The library doesn’t verify the input data that included in the hex string.
You can provide “00” hex string as the integer value input to the editor. It will be encoded as “02 01 00”; which also means you need to set the integer node value to “00” after the new node is created by the library.
Best regards,
Liping www.lipingshare.com
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Is this ASN.1 Editor continuing development? Is it possible to have a command line argument passed that is the name of the file to open?
Tony Morris
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi Tony,
Yes, I still keep maintaining the project. Somehow, I got several requests for adding the command line support for the ASN.1 Editor. I just completed the minimal command line support for opening the binary and PEM formatted file this weekend. Here is the update URL: http://lipingshare.com/Asn1Editor/
Thanks,
Liping www.lipingshare.com
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
The reason for putting the updates on my site is I can update it very quickly and easily. Also, I want to keep the update history a while. I will consider sending a stabilized version to CodeProject for updating the source here after sometime.
Regards,
Liping
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Thanks for that mate. I hope you don't mind my further suggestion. It would be good to have the filename in the title bar. If I open 2 or 3 files, I forget which is which.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I think you may have an error in how you encode OIDs. Try encoding the OID 1.3.6.1.2.1.2.2.1.6.1604889. The problem is the last number of course. I get 0xe1 0xfa 0x19 but your encoding routine returns 0x80 0xe1 0xfa 0x19. Encoding with another tool agrees with my result, but that's not definitive. Why the extra 0x80? Am I missing an encoding rule here?
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Thanks for letting me know the bug. There was an extra leading 0x80 put in front of the encoded data when the [bit_precision % 7] == 0. It has been fixed. Here is the update URL: http://lipingshare.com/Asn1Editor.
Liping Email: lipingshare@yahoo.com Web: www.lipingshare.com
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
could you help me to understang what the different between BER and DER which are the format for asn.1 file
Hey Walley Walley
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
 |
DER (Distinguished Encoding Rules) is a subset of the BER (Basic Encoding Rules). DER has more restricted encoding rules. You can find the detail information from this book "ASN.1 - Communication between Heterogeneous Systems". It is free for download. Here is the URL: http://www.oss.com/asn1/booksintro.html.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi, first I want to say the tool and the sorce are really cool!! Thanks!
If you have the following data to be parsed: 30 0A 04 08 30 06 02 01 00 02 01 01
it corresponds to the following info: SEQUENCE tag=0x30 length=0x0A OCTET_STRING tag=0x04 length=0x08 SEQUENCE tag=0x30 length=0x06 INTEGER tag=0x02 length=0x01 value = 1 INTEGER tag=0x02 length=0x01 value = 1
I also saw for example: 30 0A 04 08 00 01 02 03 04 05 06 07 SEQUENCE length=0x0A OCTET_STRING length=0x08 value = "00 01 02 03 04 05 06 07"
So, how do you know if after OCTET_STRING length if it comes another tag or data?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |