Crate jpki Copy item path Source ByteArray A struct represents a byte array.
Dependents can read it from ptr to ptr+len, and should ignore about cap.
ptr can be null pointer, so dependents must check the ptr is not null. NfcCard jpki_card_close ⚠ Closes the card. jpki_crypto_ap_auth ⚠ Sign the computed digest using the key-pair for user authentication. jpki_crypto_ap_close ⚠ Closes the opened JPKI application. jpki_crypto_ap_read_certificate_auth ⚠ Reads a certificate for user authentication.
If ca is true, reads a CA certificate instead. jpki_crypto_ap_read_certificate_sign ⚠ Reads a certificate for signing.
PIN is required.
If ca is true, reads a CA certificate instead. jpki_crypto_ap_sign ⚠ Sign the computed digest using the key-pair for signing. jpki_init Initiates the libjpki library.
Currently this occur no side effects, but it will be added in the future.
So dependents should call this before using other functions. jpki_last_error Returns the latest error occurred before calling this function.
If no error occurred before or failed to get the error, returns null pointer. jpki_new_card ⚠ Creates a new card from the NFC card.
This is an abstraction layer to support other protocols rather than NFC in the future. jpki_new_crypto_ap ⚠ Opens JPKI application on the card. jpki_new_nfc_card Creates a new NFC card delegate from the function pointer.
This provided function will be called on transmitting APDU commands into the card. jpki_nfc_card_close ⚠ Closes the NFC card.