EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Looking for info about El3DESSymmetricCrypto

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#4214
Posted: 11/05/2007 04:34:44
by Tomasz Kaczanowski (Standard support level)
Joined: 04/10/2007
Posts: 16

There is El3DESSymmetricCrypto class. I couldn't find any information abaout constructors for this class.
There is no information in manual.
There are some infos in source, but I can see:
constructor Create; overload; override;
constructor Create(AlgID : integer;Mode: TSBSymmetricCryptoMode = cmDefault;CryptoProvider : TElCustomCryptoProvider = nil); overload; override;
constructor Create(const AlgOID : BufferType;Mode: TSBSymmetricCryptoMode = cmDefault;CryptoProvider : TElCustomCryptoProvider = nil); overload; override;
constructor Create(Mode : TSBSymmetricCryptoMode = cmDefault;CryptoProvider : TElCustomCryptoProvider = nil); overload; override;
but non of them coudn't compile.
I can compile only with:
constructor Create(AlgID : integer)
but I need set also mode...
Is there any way to do it?
#4215
Posted: 11/05/2007 04:49:23
by Ken Ivanov (Team)

1. It is recommended to use TElSymmetricCryptoFactory class and its CreateInstance() method to create instances of symmetric crypto classes.

2. What exactly compilation errors are you encountering?
#4216
Posted: 11/05/2007 04:53:57
by Tomasz Kaczanowski (Standard support level)
Joined: 04/10/2007
Posts: 16

Quote
Innokentiy Ivanov wrote:
2. What exactly compilation errors are you encountering?


[Pascal Error] tescik.pas(36): E2250 There is no overloaded version of 'Create' that can be called with these arguments

BDS2006
#4217
Posted: 11/05/2007 05:03:45
by Ken Ivanov (Team)

Would you be so kind to provide the exact line of code that produces the error?
#4218
Posted: 11/05/2007 05:11:11
by Tomasz Kaczanowski (Standard support level)
Joined: 04/10/2007
Posts: 16

symetric:=TEl3DESSymmetricCrypto.Create(SB_ALGORITHM_CNT_3DES,cmECB{,nil});
#4219
Posted: 11/05/2007 05:31:27
by Ken Ivanov (Team)

Please try to specify the explicit location of cmECB:

TEl3DESSymmetricCrypto.Create(SB_ALGORITHM_CNT_3DES, SBSymmetricCrypto.cmECB, nil);

BTW, does TElSymmetricCryptoFactory.CreateInstance() expose the same problem?
#4220
Posted: 11/05/2007 05:38:32
by Tomasz Kaczanowski (Standard support level)
Joined: 04/10/2007
Posts: 16

SBSymmetricCrypto.cmECB - it helps - thx.

Quote
BTW, does TElSymmetricCryptoFactory­.CreateInstance() expose the same problem?

Yes, It was the same problem. Now it works - thx again.
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

Topic viewed 2985 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!