1
0
Fork 0
forked from fun/fun

Added CRC32 and CRC32C classes to stdlib. (0.31.0)

This commit is contained in:
Johannes Findeisen 2025-11-26 20:36:40 +01:00
commit 3411a4d846
7 changed files with 425 additions and 2 deletions

View file

@ -79,6 +79,7 @@ class PCSC()
return m
*/
// This class is in a very early stage of development.
class PCSC()
fun get_readers(this)
ctx = pcsc_establish()
@ -109,7 +110,7 @@ class PCSC()
m["sw2"] = -1
m["code"] = -2
return m
// Actually selecting the second reader hardcode. This class is not in a very early stage of development.
// Actually selecting the second reader hardcoded.
handle = pcsc_connect(ctx, readers[1])
apdu = this.hex_to_bytes(hex_apdu)
res = pcsc_transmit(handle, apdu)