On 10/28/2009 02:58 PM, Konstantin Andreev wrote:
>
>>
>> The only attributes you really only need to deal with on update is
>> CKA_LABEL and CKA_ID, both of which is handled in the key type
>> independent portion of the code (so you shouldn't have to do anything
>> special.
>
>
> Oh, no, no. I am not talking about attributes which 'softoken' allows
> to change to PKCS#11 users.
>
> I am talking about attributes, which 'softoken' itself can change on
> it's own. Certainly, inside itself 'softoken' could do what it wants:
> add, delete attributes, change their values. This is how it works.

Ah, I never interpreted it that way because softoken never does any of
these things except as a result of action from the PKCS #11 layer.
>
> However, the legacydb, softoken's myrmidon, serves well only part of
> attributes that it stores (cite above and link above). Why legacydb's
> boss can change CKA_PRIVATE_EXPONENT, but can't CKA_PRIME ?

It can't actually change either. The code you pointed out doesn't
actually change any attributes (and the comment points that out).
>
> Indeed, if there is no need for softoken to change attributes cited
> above, should we delete them from code for consistency ?

No, that's not what that code is doing. Just ignore the RSA case. (I
wouldn't spend a ton of time on optimizing the legacyDB code, it's only
there to help applications transition from that to shared db).

bob



-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to