Giter Club home page Giter Club logo

opensc-sm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

opensc-sm's Issues

Release OpenSC 0.13.1

pkcs15init:

erase erase app. create PKCS15 create PIN generate key RSA generate key EC import key import PKCS12 import cert import data delete key delete cert delete data
IAS/ECC generic n/a ok n/a n/a ok ok ok ok ok ok ok ok
IAS/ECC admin(*) n/a ok n/a n/a ok ok ok ok ok ok ok ok

(IAS/ECC *) -- currently public key value is stored into PuKDF as 'direct' value. Default size of PuKDF in 'admin' application can be not sufficient to store more then one entry.

pkcs15-tool:

list objects read cert read pubkey RSA read pubkey EC read data change PIN unblock PIN
IAS/ECC ok ok ok ok ok ok

pkcs15-crypt:

sign pkcs1 sign pkcs1 sha1 sign raw decipher
IAS/ECC ok ok n/a ok

pkcs11

FF: generate RSA FF: import cert FF: import PKS#12 FF: auth ThunderBird: sign ThunderBird: decrypt
IAS/ECC ok ok ok ok ok

minidriver

IE: generate RSA IE: import cert IE: auth sign decrypt smartcard logon sc logon: change PIN sc logon: unblock PIN
IAS/ECC ok ok ok ok ok ok

Running C_FindObjectsInit on a CKO_SECRET_KEY AES key segfaults

Hi,
I am using PKCS#11 to create a AES 256 bit key using C_GenerateKey. I then use C_FindObjectsxxx to search for the key handle and get a segfault.

Here is the code
static int find_object(CK_SESSION_HANDLE sess, CK_OBJECT_CLASS cls, CK_OBJECT_HANDLE_PTR ret, const unsigned char *id, size_t id_len, int obj_index)
{
CK_ATTRIBUTE attrs[2];
unsigned int nattrs = 0;
CK_RV rv;

  attrs[0].type = CKA_CLASS;
  attrs[0].pValue = &cls;
  attrs[0].ulValueLen = sizeof(cls);
  nattrs++;

  rv = pfunc11->C_FindObjectsInit(sess, attrs, nattrs);    --> segfault

......

The call to C_GenerateKey appears successful or else this code would not have been called.

This is the call to the above code -
CK_OBJECT_HANDLE key;
if (find_object(session, CKO_SECRET_KEY, &key, id, sizeof(id), 0))
{
printf("Key handle found\n");
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.