Truncate data for ECDSA signature to the size of the key
Truncate data for ECDSA signature to the size of the key

Based on the paragraph from PKCS#11 MECHANISMS V2.30: 6.3.1 EC Signatures:

	If the length of the hash value is larger than the bit length of n, only
	the leftmost bits of the hash up to the length of n will be used. Any
	truncation is done by the token.

This is affecting NIST PIV Test cards with non-hashed mechanisms.

CardContact/OpenSC,martinpaljak/OpenSC,AktivCo/OpenSC,fabled/OpenSC,hongquan/OpenSC-main,martinpaljak/OpenSC,AktivCo/OpenSC,martinpaljak/OpenSC,LudovicRousseau/OpenSC,viktorTarasov/OpenSC-SM,viktorTarasov/OpenSC-SM,hongquan/OpenSC-main,rickyepoderi/OpenSC,fabled/OpenSC,rickyepoderi/OpenSC,OpenSC/OpenSC,jpki/OpenSC,dengert/OpenSC,frankmorgner/OpenSC,Jakuje/OpenSC,LudovicRousseau/OpenSC,OpenSC/OpenSC,philipWendland/OpenSC,mouse07410/OpenSC,Jakuje/OpenSC,frankmorgner/OpenSC,OpenSC/OpenSC,LudovicRousseau/OpenSC,philipWendland/OpenSC,nmav/OpenSC,CardContact/OpenSC,mtrojnar/OpenSC,rickyepoderi/OpenSC,hongquan/OpenSC-main,mtrojnar/OpenSC,mouse07410/OpenSC,jpki/OpenSC,nmav/OpenSC,frankmorgner/OpenSC,CardContact/OpenSC,philipWendland/OpenSC,metsma/OpenSC,hhonkanen/OpenSC,viktorTarasov/OpenSC-SM,fabled/OpenSC,nmav/OpenSC,Jakuje/OpenSC,dengert/OpenSC,frankmorgner/OpenSC,fabled/OpenSC,metsma/OpenSC,hhonkanen/OpenSC,jpki/OpenSC,hhonkanen/OpenSC,dengert/OpenSC,metsma/OpenSC,mtrojnar/OpenSC,AktivCo/OpenSC,Jakuje/OpenSC,mouse07410/OpenSC