New issue
Advanced search Search tips

Issue 919126 link

Starred by 0 users

Issue metadata

Status: Available
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Task

Blocking:
issue 917955



Sign in to add a comment

chaps: Isolate the object specific checking to Object class.

Project Member Reported by menghuan@chromium.org, Jan 4

Issue description

Currently, we have some functions that only apply to object which is more suitable to move as a member function of Object.

1. WrapPrivateKey() in session_impl, change to IsTpmWrappable() and WrapWithTpm() in class.

2. We have some pattern like

    string n = key_object->GetAttributeString(CKA_MODULUS);
    rsa->n = ConvertToBIGNUM(n);

Perhaps, create a helper `AllocBIGNUMFromAttr(key_object, CKA_MODULUS);` for that
 
Blocking: 917955

Sign in to add a comment