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

PACE bug #8

Open
advatar opened this issue Apr 24, 2024 · 0 comments
Open

PACE bug #8

advatar opened this issue Apr 24, 2024 · 0 comments

Comments

@advatar
Copy link

advatar commented Apr 24, 2024

I think this line

guard EC_POINT_point2oct(group, key, conversionForm, &bytes, size, nil) == 1 else {

Should be

        guard EC_POINT_point2oct(group, key, conversionForm, &bytes, size, nil) == size else {
            throw KeyAgreementError.ConversionToBytesFailed("Conversion from EC_POINT to bytes failed")
        }

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

1 participant