Closed emillon closed 6 years ago
There was a repr type in CK_ATTRIBUTE used for internal operations. It turns out that it's pretty useful in P11_attribute as well.
repr
CK_ATTRIBUTE
P11_attribute
The idea is to do all operations in two steps:
This is a big simplification because pattern matching is only as wide as the repr type, not as P11_attribute_type.t.
P11_attribute_type.t
Thanks for the :eye: !
There was a
repr
type inCK_ATTRIBUTE
used for internal operations. It turns out that it's pretty useful inP11_attribute
as well.The idea is to do all operations in two steps:
repr
associated to a given attribute type (is it represented using an unsigned long? an ASCII string? a string containing hex data?)repr
.This is a big simplification because pattern matching is only as wide as the
repr
type, not asP11_attribute_type.t
.