Page 1 of 1

LENGTH_EC_FP_256 cannot be resolved or is not a field

Posted: Mon Feb 20, 2023 1:11 pm
by LozCodes
I have the following code:

import javacard.security.KeyBuilder;

public KeyPair key = new KeyPair(KeyPair.ALG_EC_FP, KeyBuilder.LENGTH_EC_FP_256);

but am getting the error message 'LENGTH_EC_FP_256 cannot be resolved or is not a field'

What could be the reason for this?

Thank you