Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error. #14

Closed
3874 opened this issue Feb 12, 2020 · 2 comments
Closed

Compile error. #14

3874 opened this issue Feb 12, 2020 · 2 comments

Comments

@3874
Copy link

3874 commented Feb 12, 2020

** Help me **
When I run CryptoLib.Tests, I got below messages in ClpDigest file.

[dcc32 Error] ClpDigest.pas(178): E2003 Undeclared identifier: 'IXOF'
[dcc32 Error] ClpDigest.pas(181): E2015 Operator not applicable to this operand type
[dcc32 Error] ClpDigest.pas(215): E2003 Undeclared identifier: 'Clone'
[dcc32 Fatal Error] ClpDigestUtilities.pas(268): F2063 Could not compile used unit 'ClpDigest.pas'
Failed

Source code

function TDigest.DoFinal(const output: TCryptoLibByteArray;
outOff: Int32): Int32;
var
buf: TCryptoLibByteArray;
Limit, LXOFSizeInBits: Int32;
begin

if Supports(FHash, IXOF) then
begin
LXOFSizeInBits := (System.Length(output) - outOff) * 8;
(FHash as IXOF).XOFSizeInBits := LXOFSizeInBits;
Limit := LXOFSizeInBits shr 3;
end

Because of it, I can't compile this. Please let me what's the matter.

@Xor-el
Copy link
Owner

Xor-el commented Feb 12, 2020

Hi, please state which compiler and version you get the error in.
I can't seem to reproduce it locally.
Besides, what exactly do you want to do? I might be able to provide a better approach.

Regards.

@Xor-el
Copy link
Owner

Xor-el commented Feb 13, 2020

closing issue as no feedback was gotten.

@Xor-el Xor-el closed this as completed Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants