예제 #1
0
        public CKR C_EX_UnwrapKey(NativeULong session,
                                  ref CK_MECHANISM derivationMechanism,
                                  NativeULong baseKey, ref CK_MECHANISM unwrappingMechanism,
                                  byte[] wrappedKey, NativeULong wrappedKeyLen,
                                  CK_ATTRIBUTE[] keyTemplate, NativeULong keyAttributeCount,
                                  ref NativeULong key)
        {
            if (_disposed)
            {
                throw new ObjectDisposedException(GetType().FullName);
            }

            NativeULong rv = _rutokenDelegates.C_EX_UnwrapKey(session,
                                                              ref derivationMechanism,
                                                              baseKey, ref unwrappingMechanism,
                                                              wrappedKey, wrappedKeyLen,
                                                              keyTemplate, keyAttributeCount,
                                                              ref key);

            return((CKR)rv);
        }