commit | f8c948a674b5bdfbd5b6ce79ef736e697b241d86 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Aug 12 19:45:32 2013 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Aug 20 20:46:04 2013 +0200 |
tree | 4c67a70aee17b7f2cba5b8cbddcef78f8a748f74 | |
parent | 835eb59c6a6e2453e18c326dc437f375e1904c9a [diff] [blame] |
Add name and get_size() members in PK
diff --git a/include/polarssl/pk.h b/include/polarssl/pk.h index a2d166f..43b9f09 100644 --- a/include/polarssl/pk.h +++ b/include/polarssl/pk.h
@@ -89,6 +89,12 @@ /** Public key type */ pk_type_t type; + /** Type name */ + const char *name; + + /** Get key size in bits */ + size_t (*get_size)( void * ); + /** Tell if the context implements this type (eg ECKEY can do ECDSA) */ int (*can_do)( pk_type_t type );