xipki / pkcs11wrapper

PKCS#11 Wrapper for Java. Deprecated. Please use xipki/ipkcs11wrapper (preferred) or xipki/jpkcs11wrapper instead.
Other
34 stars 13 forks source link

Update Session.java #14

Closed venkatsaisastra closed 1 year ago

venkatsaisastra commented 1 year ago

Added methods to accept and return key handle as parameters. It was observed that with most of the HSM's if we want to perform multiple key operations within a single session like derive and wrap, doing a findObject every time seems to very costly. Instead we can do findObject once within a given session and use the handle elsewhere of the returned object. This seems to have around 3 times better performance.

xipki commented 1 year ago

Thanks. I adapted the changes, see https://github.com/xipki/pkcs11wrapper/commit/e6e39cf5e71f8b1aae73d12d516d48e35dcc2318