Jump to content

How can I put comments in the array declaration?


rbhkamal
 Share

Recommended Posts

How can I put comments in the array declaration?

like this:

;{
Local $__aDisabledParams[5][11] = [ _
                            #cs
                               long                 - RSA Key length of 1024 bits
                               short                - RSA Key length of 512 bits
                               2k                   - RSA Key length of 2048 bits
                               4k                   - RSA Key length of 4096 bits
                            #ce
                            [ False , False , False , False ] , _
                            
                            #cs
                                none                 - Use no encryption
                                idea_cbc1            - Use IDEA encryption
                                tdes                 - Use Triple DES encryption
                                aes128               - Use AES 128 bit encryption
                                aes192               - Use AES 192 bit encryption
                                aes256               - Use AES 256 bit encryption
                                esp_des              - Use single DES with ESP coding
                                esp_tdes             - Use triple DES with ESP coding
                                des_cbc              - Use DES-CBC encryption
                                triple_des_cbc       - Use Triple DES-CBC encryption
                                nsc1                 - Use fast encryption
                            #ce
                            [ False , False , False , False , False , False , False , False , False , False , False ] , _
                            
                            #cs
                                none                 - Use no block integrity check
                                md5                  - Use MD5 data signature
                                hmac_md5             - Use HMAC-MD5 data signature
                                sha                  - Use Secure Hash Algorithm data signature
                                hmac_sha1            - Use FIPS 198 HMAC-SHA1 data signature
                                hmac_sha256          - Use HMAC-SHA256 data signature
                            #ce
                            [ False , False , False , False ,] , _
                            
                            #cs
                                none                 - Use no compression
                                lzs                  - Use HiFn LZS compression algorithm
                                lzsb                 - Use LZS with agile compression
                                deflate              - Use Deflate compression algorithm
                                aldc                 - Use IBM ALDC compress algorithm
                            #ce
                            [ False , False , False , False , False ] , _
                            
                            #cs
                                none                 - Use no replay prevention
                                ordering             - Use replay prevention and drop misordered packets
                                nonordering          - Use replay prevention but do not drop misordered packets
                            #ce
                            [ False , False , False ] ]
;}

RK

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
Share on other sites

Correction, Is it possible to do such thing? if so how?

Adding comments in the middle of declarations, functions... is not supported.

Just add a comment to point to the information

Local $__aDisabledParams[5][11] = [ _
        [ False , False , False , False ] , _ ; Ref. 1
        [ False , False , False , False , False , False , False , False , False , False , False ] , _ ; Ref. 2
        [ False , False , False , False ] , _ ; Ref. 3
        [ False , False , False , False , False ] , _ ; Ref. 4
        [ False , False , False ] ] ; Ref. 5
#cs
    Ref. 1
        long                 - RSA Key length of 1024 bits
        short                - RSA Key length of 512 bits
        2k                   - RSA Key length of 2048 bits
        4k                   - RSA Key length of 4096 bits
    Ref. 2
        none                 - Use no encryption
        idea_cbc1            - Use IDEA encryption
        tdes                 - Use Triple DES encryption
        aes128               - Use AES 128 bit encryption
        aes192               - Use AES 192 bit encryption
        aes256               - Use AES 256 bit encryption
        esp_des              - Use single DES with ESP coding
        esp_tdes             - Use triple DES with ESP coding
        des_cbc              - Use DES-CBC encryption
        triple_des_cbc       - Use Triple DES-CBC encryption
        nsc1                 - Use fast encryption
    Ref. 3
        none                 - Use no block integrity check
        md5                  - Use MD5 data signature
        hmac_md5             - Use HMAC-MD5 data signature
        sha                  - Use Secure Hash Algorithm data signature
        hmac_sha1            - Use FIPS 198 HMAC-SHA1 data signature
        hmac_sha256          - Use HMAC-SHA256 data signature
    Ref. 4
        none                 - Use no compression
        lzs                  - Use HiFn LZS compression algorithm
        lzsb                 - Use LZS with agile compression
        deflate              - Use Deflate compression algorithm
        aldc                 - Use IBM ALDC compress algorithm
    Ref. 5
        none                 - Use no replay prevention
        ordering             - Use replay prevention and drop misordered packets
        nonordering          - Use replay prevention but do not drop misordered packets
#ce
Link to comment
Share on other sites

Adding comments in the middle of declarations, functions... is not supported.

Just add a comment to point to the information

Local $__aDisabledParams[5][11] = [ _
        [ False , False , False , False ] , _ ; Ref. 1
        [ False , False , False , False , False , False , False , False , False , False , False ] , _ ; Ref. 2
        [ False , False , False , False ] , _ ; Ref. 3
        [ False , False , False , False , False ] , _ ; Ref. 4
        [ False , False , False ] ] ; Ref. 5
#cs
    Ref. 1
        long                 - RSA Key length of 1024 bits
        short                - RSA Key length of 512 bits
        2k                   - RSA Key length of 2048 bits
        4k                   - RSA Key length of 4096 bits
#ce
thanks ;)

RK

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...