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

Add function for primality testing #10

Open
petrs opened this issue Jul 24, 2019 · 1 comment
Open

Add function for primality testing #10

petrs opened this issue Jul 24, 2019 · 1 comment
Assignees

Comments

@petrs
Copy link
Member

petrs commented Jul 24, 2019

No description provided.

@mavroudisv mavroudisv self-assigned this Jul 24, 2019
@mavroudisv
Copy link
Member

I'm interested. I could implement it this or the coming week.

Are we aware of any methods checking the primality of their input parameters?
I think that would be the optimal way of doing it.

For example, the setFieldFP() seems to be a good candidate:

https://docs.oracle.com/javacard/3.0.5/api/javacard/security/ECKey.html#setFieldFP(byte[],%20short,%20short)

I believe we are already using this method, so it won't introduce new API dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants