check length of private key components before setting
the card functions only accepts key components of correct size so here we add 0 before if they're shorter (usually one byte shorter) thus fixing the issue where the card returned 6f00
This commit is contained in:
@@ -42,5 +42,6 @@ X509_NAME *parse_name(const char*);
|
||||
unsigned char get_algorithm(EVP_PKEY*);
|
||||
FILE *open_file(const char*, int);
|
||||
int get_object_id(enum enum_slot slot);
|
||||
bool set_component_with_len(unsigned char**, const BIGNUM*, int);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user