Lines Matching refs:dst_op
823 void TEE_CopyOperation(TEE_OperationHandle dst_op, TEE_OperationHandle src_op) in TEE_CopyOperation() argument
827 if (dst_op == TEE_HANDLE_NULL || src_op == TEE_HANDLE_NULL) in TEE_CopyOperation()
829 if (dst_op->info.algorithm != src_op->info.algorithm) in TEE_CopyOperation()
831 if (dst_op->info.mode != src_op->info.mode) in TEE_CopyOperation()
849 set_operation_key(dst_op, key1); in TEE_CopyOperation()
851 TEE_SetOperationKey2(dst_op, key1, key2); in TEE_CopyOperation()
854 dst_op->info.handleState = src_op->info.handleState; in TEE_CopyOperation()
855 dst_op->info.keySize = src_op->info.keySize; in TEE_CopyOperation()
856 dst_op->info.digestLength = src_op->info.digestLength; in TEE_CopyOperation()
857 dst_op->operationState = src_op->operationState; in TEE_CopyOperation()
859 if (dst_op->buffer_two_blocks != src_op->buffer_two_blocks || in TEE_CopyOperation()
860 dst_op->block_size != src_op->block_size) in TEE_CopyOperation()
863 if (dst_op->buffer != NULL) { in TEE_CopyOperation()
871 memcpy(dst_op->buffer, src_op->buffer, sz); in TEE_CopyOperation()
872 dst_op->buffer_offs = src_op->buffer_offs; in TEE_CopyOperation()
877 res = _utee_cryp_state_copy(dst_op->state, src_op->state); in TEE_CopyOperation()