Lines Matching refs:derive_key

6332 	STRUCT_DECL(crypto_derive_key, derive_key);  in object_derive_key()
6355 STRUCT_INIT(derive_key, mode); in object_derive_key()
6362 if (copyin(arg, STRUCT_BUF(derive_key), STRUCT_SIZE(derive_key)) != 0) { in object_derive_key()
6369 session_id = STRUCT_FGET(derive_key, dk_session); in object_derive_key()
6375 bcopy(STRUCT_FADDR(derive_key, dk_mechanism), &mech.cm_type, in object_derive_key()
6379 if (!copyin_key(mode, sp, STRUCT_FADDR(derive_key, dk_base_key), in object_derive_key()
6391 STRUCT_FADDR(derive_key, dk_mechanism), &mech, mode, &error); in object_derive_key()
6396 STRUCT_FADDR(derive_key, dk_mechanism), in object_derive_key()
6405 count = STRUCT_FGET(derive_key, dk_count); in object_derive_key()
6407 attributes = STRUCT_FGETP(derive_key, dk_attributes); in object_derive_key()
6421 STRUCT_FSET(derive_key, dk_object_handle, handle); in object_derive_key()
6424 &mech, STRUCT_FADDR(derive_key, dk_mechanism), in object_derive_key()
6450 STRUCT_FSET(derive_key, dk_return_value, rv); in object_derive_key()
6451 if (copyout(STRUCT_BUF(derive_key), arg, in object_derive_key()
6452 STRUCT_SIZE(derive_key)) != 0) { in object_derive_key()
6483 STRUCT_DECL(crypto_nostore_derive_key, derive_key); in nostore_derive_key()
6515 STRUCT_INIT(derive_key, mode); in nostore_derive_key()
6523 if (copyin(arg, STRUCT_BUF(derive_key), STRUCT_SIZE(derive_key)) != 0) { in nostore_derive_key()
6530 session_id = STRUCT_FGET(derive_key, ndk_session); in nostore_derive_key()
6536 bcopy(STRUCT_FADDR(derive_key, ndk_mechanism), &mech.cm_type, in nostore_derive_key()
6540 if (!copyin_key(mode, sp, STRUCT_FADDR(derive_key, ndk_base_key), in nostore_derive_key()
6552 STRUCT_FADDR(derive_key, ndk_mechanism), &mech, mode, &error); in nostore_derive_key()
6557 STRUCT_FADDR(derive_key, ndk_mechanism), in nostore_derive_key()
6566 in_count = STRUCT_FGET(derive_key, ndk_in_count); in nostore_derive_key()
6567 out_count = STRUCT_FGET(derive_key, ndk_out_count); in nostore_derive_key()
6569 in_attributes = STRUCT_FGETP(derive_key, ndk_in_attributes); in nostore_derive_key()
6576 out_attributes = STRUCT_FGETP(derive_key, ndk_out_attributes); in nostore_derive_key()
6592 &mech, STRUCT_FADDR(derive_key, ndk_mechanism), in nostore_derive_key()
6627 STRUCT_FSET(derive_key, ndk_return_value, rv); in nostore_derive_key()
6628 if (copyout(STRUCT_BUF(derive_key), arg, in nostore_derive_key()
6629 STRUCT_SIZE(derive_key)) != 0) { in nostore_derive_key()