SC_GET_CHALLENGE

Section: OpenSC API reference (3)
Updated: 08/27/2008
Index Return to Main Contents
 

NAME

sc_get_challenge - Request a challenge from a card  

SYNOPSIS

#include <opensc.h>

int sc_get_challenge(struct sc_card *card, unsigned char *rnd, size_t len);
                

 

DESCRIPTION

This function requests a challenge (i.e. random bytes) from card. The returned data will be stored in rnd, and will be len bytes long.  

RETURN VALUE

Returns 0 if successful, or a negative value in case of error.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE

linux.jgfs.net manual pages