below is the code which is producing error, but i am unable to understand that actually what is the problem, plz someone help.
Type
PBLOWFISH_CTX = ^BLOWFISH_CTX;
BLOWFISH_CTX = record
P:array [0..18] of LongInt;
S:array [0..4,0..256] of LongInt;
End;
Procedure Blowfish_Init(ctx : PBLOWFISH_CTX; Key : PByteArray; KeyLen : Integer); cdecl; external;
.....
Var
ctx : PBLOWFISH_CTX;
S : String;
Key : TByteArray;
Begin
S := 'TESTKEY';
FillChar(Key,SizeOf(Key),0);
Move(S[1],Key,Min(SizeOf(Key),Length(Key)));
=> Error : Blowfish_Init(ctx,@Key,Length(S));
Assembler Code
Blowfish_Init
00423220 55 push %ebp
00423221 57 push %edi
00423222 56 push %esi
00423223 53 push %ebx
00423224 83ec24 sub $0x24,%esp
00423227 8b742438 mov 0x38(%esp),%esi
0042322B 8b6c243c mov 0x3c(%esp),%ebp
0042322F 31c9 xor %ecx,%ecx
00423231 31d2 xor %edx,%edx
00423233 8d3c31 lea (%ecx,%esi,1),%edi
00423236 6690 xchg %ax,%ax
00423238 8b9c9100b04200 mov 0x42b000(%ecx,%edx,4),%ebx
=>0042323F 895c9748 mov %ebx,0x48(%edi,%edx,4)
00423243 42 inc %edx
00423244 81fa00010000 cmp $0x100,%edx
0042324A 75ec jne 0x423238 <Blowfish_Init+24>