News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

C header translation

Started by JK, March 16, 2021, 04:58:03 AM

Previous topic - Next topic

TouEnMasm

Ok,the one posted by Greenhorn seems to work:
Quote
.const
CRYPT_AES_256_KEY_STATE STRUCT
Key            byte 32 dup(?)
IV            byte 16 dup(?)
EncryptionState   byte 15 dup(16 dup(?))
DecryptionState   byte 15 dup(16 dup(?))
Feedback         byte 16 dup(?)
CRYPT_AES_256_KEY_STATE ENDS
.data
truc CRYPT_AES_256_KEY_STATE <>


Quote
mov al,byte ptr truc.EncryptionState [2  *16*sizeof(byte)]
OK

work also
Quote
   lea rbx,truc.EncryptionState
   mov r11,10   ;row  data
   shl r11,4 ;* 16                       [rbx + r11 * 16] 16 scale factor not allowed 1,2,4,8
   movq xmm0, [rbx + r11 ]
   mov rax ,sizeof truc



Fa is a musical note to play with CL